lvgl / lv_web_emscripten

LVGL ported to Emscripten to be converted to JavaScript
MIT License
80 stars 28 forks source link

build error on lvgl module (last master branch) #17

Open kay54068 opened 2 years ago

kay54068 commented 2 years ago

Hi

I want to update lvgl and lv_driver on git submodule , but i got some error about this:

/home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers/sdl/sdl.c:17:3: warning: "MONITOR is deprecated, use SDL instead. See lv_drivers/sdl/sdl.c" [-W#warnings]
# warning "MONITOR is deprecated, use SDL instead. See lv_drivers/sdl/sdl.c"
  ^
/home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers/sdl/sdl.c:21:3: warning: "KEYBOARD is deprecated, use SDL instead. See lv_drivers/sdl/sdl.c" [-W#warnings]
# warning "KEYBOARD is deprecated, use SDL instead. See lv_drivers/sdl/sdl.c"
  ^
/home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers/sdl/sdl.c:25:3: warning: "MOUSE is deprecated, use SDL instead. See lv_drivers/sdl/sdl.c" [-W#warnings]
# warning "MOUSE is deprecated, use SDL instead. See lv_drivers/sdl/sdl.c"
  ^
/home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers/sdl/sdl.c:29:3: warning: "MOUSEWHEEL is deprecated, use SDL instead that. See lv_drivers/sdl/sdl.c" [-W#warnings]
# warning "MOUSEWHEEL is deprecated, use SDL instead that. See lv_drivers/sdl/sdl.c"
  ^
/home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers/sdl/sdl.c:113:24: error: use of undeclared identifier 'quit_filter'                    
    SDL_SetEventFilter(quit_filter, NULL);
                       ^
/home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers/sdl/sdl.c:262:9: error: call to undeclared function 'mouse_handler'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        mouse_handler(&event);
        ^
/home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers/sdl/sdl.c:263:9: error: call to undeclared function 'mousewheel_handler'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        mousewheel_handler(&event);
        ^
/home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers/sdl/sdl.c:264:9: error: call to undeclared function 'keyboard_handler'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        keyboard_handler(&event);
        ^
/home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers/sdl/sdl.c:284:8: error: use of undeclared identifier 'sdl_quit_qry'                    
    if(sdl_quit_qry) {
       ^
4 warnings and 5 errors generated.                                                                                                            
emcc: error: '/home/psx/nfs/test/lv_web/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration -I/home/psx/nfs/test/lv_web/emsdk/upstream/emscripten/cache/sysroot/include/SDL2 --sysroot=/home/psx/nfs/test/lv_web/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -DLV_CONF_INCLUDE_SIMPLE -DLV_LVGL_H_INCLUDE_SIMPLE -I/home/psx/nfs/test/lv_web/lv_web_emscripten -isystem /home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers -isystem /home/psx/nfs/test/lv_web/lv_web_emscripten/lvgl -O2 -MD -MT lv_drivers/CMakeFiles/lv_drivers.dir/sdl/sdl.c.o -MF CMakeFiles/lv_drivers.dir/sdl/sdl.c.o.d -c /home/psx/nfs/test/lv_web/lv_web_emscripten/lv_drivers/sdl/sdl.c -o CMakeFiles/lv_drivers.dir/sdl/sdl.c.o' failed (returned 1)
make[2]: *** [lv_drivers/CMakeFiles/lv_drivers.dir/build.make:317: lv_drivers/CMakeFiles/lv_drivers.dir/sdl/sdl.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:229: lv_drivers/CMakeFiles/lv_drivers.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
kisvegabor commented 2 years ago

Please use the release/v8.3 branches of lvgl and lv_drivers.

stale[bot] commented 1 year 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.