lvgl / lv_web_emscripten

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

Compile failed! #6

Closed lilengqiang closed 4 years ago

lilengqiang commented 4 years ago

图片

embeddedt commented 4 years ago

It works for me using the latest version of Emscripten. What version of it are you using? Are you using the latest version of this repository from master, with submodules updated (git submodule update --init --recursive)?

Please try a clean build (make clean) with a fresh copy of the latest version of Emscripten and see if the problem persists.

kisvegabor commented 4 years ago

Have you installed SDL? What is the output for sdl2-config?

embeddedt commented 4 years ago

@kisvegabor I'm pretty sure having SDL installed on the host doesn't affect Emscripten (since it uses its own version), but it's worth a try.

lilengqiang commented 4 years ago

sudo apt-get install libsdl2-dev

incity commented 4 years ago

image @kisvegabor @embeddedt what's the problem?

kisvegabor commented 4 years ago

These are present on https://lvgl.io/demos too but it's still working

incity commented 4 years ago

yes i know, but i want to compile one on my localhost, and came out this problem.

embeddedt commented 4 years ago

Try running it so that lvgl.html is in the root folder (i.e.. serve the emscripten folder as the HTML root directory).

embeddedt commented 4 years ago

The streaming error shouldn't break the webpage; it's just letting you know that the site will fall back to a different way of downloading the WASM.

incity commented 4 years ago

@embeddedt Yes, that's what I did

incity commented 4 years ago

how can i correct it?

kisvegabor commented 4 years ago

Please try in Firefox without a webserver. Pay attention to this: https://github.com/lvgl/lv_sim_emscripten#known-issue-with-firefox

incity commented 4 years ago

yes, i did it, but it failed(same error reason), so i put it to the web server.

incity commented 4 years ago

image

incity commented 4 years ago

image

stale[bot] commented 4 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.