You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Martin Vladic
36ec1b3288
|
2 years ago | |
---|---|---|
assets | 2 years ago | |
build | 2 years ago | |
eez@fb7c4d5568 | 2 years ago | |
lv_drivers@2ed01feab0 | 2 years ago | |
lvgl@5545ffc925 | 2 years ago | |
src | 2 years ago | |
template | 2 years ago | |
.gitignore | 2 years ago | |
.gitmodules | 2 years ago | |
CMakeLists.txt | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
confdef.txt | 2 years ago | |
lv_conf.h | 2 years ago | |
lv_drv_conf.h | 2 years ago | |
lvgl-template-web.eez-project | 2 years ago | |
lvgl_shell.html | 2 years ago | |
main.c | 2 years ago | |
mouse_cursor_icon.c | 2 years ago |
README.md
LVGL web simulator project with EEZ Studio
How to get started
Install SDL
Downlad SDL (a graphics library to ope na 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.git
cd <path-to-emsdk>
git pull
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
More info here: https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html
Build the project
cd {{projectDirPath}}
mkdir build
cd build
emcmake cmake ..
emmake make -j4
- 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
.