Staok / lvgl_port_win-linux_vscode

LVGL移植win端(SDL或windrv)模拟显示流畅解决方案,并且同时支持linux端(DRM或FB)。VsCode工程,cmake 构建,可 F5 一键运行。使用 SquareLine 生成前端 UI 文件。
10 stars 1 forks source link

编译 lv_demo_benchmark(); 和 lv_demo_music();出现以下错识,其它demo无问题。 #1

Open dancemanUK opened 3 months ago

dancemanUK commented 3 months ago

//lv_demo_benchmark();

lv_demo_music();

build] [ 18%] Built target lv_examples [build] [ 24%] Built target lv_drivers [build] [ 99%] Built target lvgl [build] [ 99%] Building C object CMakeFiles/test_lvgl_win_sdl2.dir/main.c.obj [build] [100%] Linking C executable test_lvgl_win_sdl2.exe [build] D:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lv_examples/liblv_examples.a(lv_demo_music_list.c.obj):lv_demo_music_list.c:(.rdata$.refptr.lv_font_montserrat_16[.refptr.lv_font_montserrat_16]+0x0): undefined reference to lv_font_montserrat_16' [build] D:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lv_examples/liblv_examples.a(lv_demo_music_list.c.obj):lv_demo_music_list.c:(.rdata$.refptr.lv_font_montserrat_12[.refptr.lv_font_montserrat_12]+0x0): undefined reference tolv_font_montserrat_12' [build] D:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lv_examples/liblv_examples.a(lv_demo_music_main.c.obj): in function create_ctrl_box': [build] G:/opencv/lvgl/lvgl_port_win-linux_vscode/2-lvgl_sim_vscode_sdl_win_show/lv_examples/src/lv_demo_music/lv_demo_music_main.c:473: undefined reference tolv_imgbtn_create' [build] D:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: G:/opencv/lvgl/lvgl_port_win-linux_vscode/2-lvgl_sim_vscode_sdl_win_show/lv_examples/src/lv_demo_music/lv_demo_music_main.c:474: undefined reference to lv_imgbtn_set_src' [build] D:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: G:/opencv/lvgl/lvgl_port_win-linux_vscode/2-lvgl_sim_vscode_sdl_win_show/lv_examples/src/lv_demo_music/lv_demo_music_main.c:475: undefined reference tolv_imgbtn_set_src' [build] D:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lv_examples/liblv_examples.a(lv_demo_music_main.c.obj): in function spectrum_draw_event_cb': [build] G:/opencv/lvgl/lvgl_port_win-linux_vscode/2-lvgl_sim_vscode_sdl_win_show/lv_examples/src/lv_demo_music/lv_demo_music_main.c:743: undefined reference tolv_draw_polygon' [build] D:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: G:/opencv/lvgl/lvgl_port_win-linux_vscode/2-lvgl_sim_vscode_sdl_win_show/lv_examples/src/lv_demo_music/lv_demo_music_main.c:749: undefined reference to `lv_draw_polygon' [build] collect2.exe: error: ld returned 1 exit status [build] mingw32-make[2]: [CMakeFiles\test_lvgl_win_sdl2.dir\build.make:119: test_lvgl_win_sdl2.exe] Error 1 [build] mingw32-make[1]: [CMakeFiles\Makefile2:137: CMakeFiles/test_lvgl_win_sdl2.dir/all] Error 2 [build] mingw32-make: *** [Makefile:90: all] Error 2 [proc] 命令“D:\tools\CMake\bin\cmake.EXE --build g:/opencv/lvgl/lvgl_port_win-linux_vscode/2-lvgl_sim_vscode_sdl_win_show/build --config Debug --target all -j 34 --”已退出,代码为 2 [driver] 生成完毕: 00:00:01.795 [build] 生成已完成,退出代码为 2

Staok commented 3 months ago

看报错信息。可能是一些文件没有找到,我可以有时间在我本地再编译试试,可能是cmakelist的问题,如果你熟悉cmake可以先尝试着解决看看。我近期没什么闲心来看这个,有缘再看。

dancemanUK commented 3 months ago

看报错信息。可能是一些文件没有找到,我可以有时间在我本地再编译试试,可能是cmakelist的问题,如果你熟悉cmake可以先尝试着解决看看。我近期没什么闲心来看这个,有缘再看。

大佬辛苦了!