lvgl / lv_port_pc_eclipse

PC simulator project for LVGL embedded GUI Library. Recommended on Linux and Mac.
https://docs.lvgl.io/v7/en/html/get-started/pc-simulator.html
MIT License
270 stars 213 forks source link

x86_64-w64-mingw32/bin/ld.exe: cannot find -lasan: No such file or directory ,cannot find -lubsan: No such file or directory #154

Open dancemanUK opened 6 days ago

dancemanUK commented 6 days ago

[build] [ 98%] Linking C static library ..\lib\liblvgl_examples.a [build] [ 99%] Built target lvgl_examples [build] [ 99%] Building C object CMakeFiles/main.dir/main.c.obj [build] [ 99%] Building C object CMakeFiles/main.dir/mouse_cursor_icon.c.obj [build] [100%] Linking CXX executable G:\soc\lvgl\v9.2\lv_port_pc_eclipse\bin\main.exe [build] D:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lasan: No such file or directory [build] D:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lubsan: No such file or directory [build] collect2.exe: error: ld returned 1 exit status [build] mingw32-make[2]: [CMakeFiles\main.dir\build.make:123: G:/soc/lvgl/v9.2/lv_port_pc_eclipse/bin/main.exe] Error 1 [build] mingw32-make[1]: [CMakeFiles\Makefile2:109: CMakeFiles/main.dir/all] Error 2 [build] mingw32-make: *** [Makefile:135: all] Error 2 [proc] 命令“D:\tools\CMake\bin\cmake.EXE --build g:/soc/lvgl/v9.2/lv_port_pc_eclipse/build --config Debug --target all -j 34 --”已退出,代码为 2 [driver] 生成完毕: 00:00:58.413

Thread model: win32 Supported LTO compression algorithms: zlib gcc version 13.2.0 (x86_64-win32-seh-rev1, Built by MinGW-Builds project)

in v9.2\lv_port_pc_eclipse

wechat_20240913214822
kisvegabor commented 19 hours ago

It happens because MinGW doesn't support ASAN.

For VSCode I suggest using this repo where ASAN is already disabled by default.