lvgl / lv_web_emscripten

LVGL ported to Emscripten to be converted to JavaScript
MIT License
73 stars 27 forks source link

Online demo issue #11

Closed kisvegabor closed 3 years ago

kisvegabor commented 3 years ago

I was trying to update the widgets demo to v8 on https://lvgl.io/demos.

I've simply built it with CMake but the demo is not loaded. There is no obvious error in the console.

@embeddedt so you see what could be the problem?

embeddedt commented 3 years ago

It looks like lvgl_shell.html was not used in your version, as the custom scripts and styles are missing. That's weird, as it is explicitly requested in the CMakeLists file. The script is needed in order for the screen width and height to be chosen correctly.

I just tried a local build and it seems to have worked for me (Emscripten 2.0.4, CMake 3.20.2). The build on GitHub also works fine.

kisvegabor commented 3 years ago

Thanks! I've used the previous HTML file because I thought only the JS and WASM files matter.

Now it works well with the new HTML file.