LVGL web simulator project with EEZ Studio
Go to file
2024-10-08 12:18:46 +02:00
assets added counter demo 2022-10-29 13:34:36 +02:00
eez-framework@30298c57c5 updated to eez-flow.cpp 2024-10-08 12:18:46 +02:00
lv_drivers@8cdabe8d42 updated to eez-flow.cpp 2024-10-08 12:18:46 +02:00
lvgl@b55aad64f0 updated to eez-flow.cpp 2024-10-08 12:18:46 +02:00
src/ui updated to eez-flow.cpp 2024-10-08 12:18:46 +02:00
template update eez-framework 2024-04-09 10:01:19 +02:00
.gitignore Update .gitignore 2022-10-29 14:29:34 +02:00
.gitmodules update eez-framework 2022-11-25 12:08:17 +01:00
CMakeLists.txt update eez-framework 2022-11-25 12:08:17 +01:00
confdef.txt Initial commit 2022-10-29 13:11:00 +02:00
LICENSE Initial commit 2022-10-29 13:11:00 +02:00
lv_conf.h added counter demo 2022-10-29 13:34:36 +02:00
lv_drv_conf.h added counter demo 2022-10-29 13:34:36 +02:00
lvgl_shell.html Initial commit 2022-10-29 13:11:00 +02:00
lvgl-template-web.eez-project updated to eez-flow.cpp 2024-10-08 12:18:46 +02:00
main.c update eez-framework 2022-11-20 12:12:44 +01:00
mouse_cursor_icon.c Initial commit 2022-10-29 13:11:00 +02:00
README.md Update README.md 2022-11-05 11:47:43 +01:00

LVGL web simulator project with EEZ Studio

How to get started

Install SDL

Downlad SDL (a graphics library to open a window and handle the mouse). On Linux:

  1. Find the current version of SDL2: apt-cache search libsdl2 (e.g. libsdl2-2.0-0)
  2. Install SDL2: sudo apt-get install libsdl2-2.0-0 (replace with the found version)
  3. Install SDL2 development package: sudo apt-get install libsdl2-dev
  4. If build essentials are not installed yet: sudo apt-get install build-essential

Install Emscripten SDK

Download the Emscripten SDK and make sure it is in your PATH.

  1. git clone https://github.com/emscripten-core/emsdk.git
  2. cd <path-to-emsdk>
  3. git pull
  4. ./emsdk install latest
  5. ./emsdk activate latest
  6. source ./emsdk_env.sh

More info here: https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html

Build the project

  1. cd {{projectDirPath}}
  2. mkdir build
  3. cd build
  4. emcmake cmake ..
  5. emmake make -j4
  6. A file called index.html will be generated. Run this in your browser.

Known issue with Google Chrome browser

Chrome can't open the generated html file offline. It works if you copy the files to a server. Use Firefox or other browser for offline testing.

Known issue with Firefox

Firefox can't open the generated html file offline unless you go to about:config and change privacy.file_unique_origin to false.