mirror of
https://github.com/eez-open/lvgl-template-web.git
synced 2026-11-17 05:58:55 +01:00
LVGL web simulator project with EEZ Studio
| assets | ||
| eez-framework@30298c57c5 | ||
| lv_drivers@8cdabe8d42 | ||
| lvgl@b55aad64f0 | ||
| src/ui | ||
| template | ||
| .gitignore | ||
| .gitmodules | ||
| CMakeLists.txt | ||
| confdef.txt | ||
| LICENSE | ||
| lv_conf.h | ||
| lv_drv_conf.h | ||
| lvgl_shell.html | ||
| lvgl-template-web.eez-project | ||
| main.c | ||
| mouse_cursor_icon.c | ||
| README.md | ||
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:
- Find the current version of SDL2:
apt-cache search libsdl2 (e.g. libsdl2-2.0-0) - Install SDL2:
sudo apt-get install libsdl2-2.0-0(replace with the found version) - Install SDL2 development package:
sudo apt-get install libsdl2-dev - 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.
git clone https://github.com/emscripten-core/emsdk.gitcd <path-to-emsdk>git pull./emsdk install latest./emsdk activate latestsource ./emsdk_env.sh
More info here: https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html
Build the project
cd {{projectDirPath}}mkdir buildcd buildemcmake cmake ..emmake make -j4- A file called
index.htmlwill 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.