lvgl / lv_port_win_codeblocks

Windows PC simulator project for LVGL embedded GUI Library
MIT License
150 stars 86 forks source link

build error #56

Open earthgalaxy opened 3 months ago

earthgalaxy commented 3 months ago

||=== Build finished: 2 error(s), 4 warning(s) (1 minute(s), 38 second(s)) ===| error D:\LVGL\lv_port_win_codeblocks\lvgl\src\drivers\windows\lv_windows_context.c|142|error: 'CREATE_WAITABLE_TIMER_HIGH_RESOLUTION' undeclared (first use in this function)| D:\LVGL\lv_port_win_codeblocks\lvgl\src\drivers\windows\lv_windows_context.c|141|error: 'CREATE_WAITABLE_TIMER_MANUAL_RESET' undeclared (first use in this function)|

warning D:\LVGL\lv_port_win_codeblocks\lvgl\src\drivers\windows\lv_windows_display.c|61|warning: implicit declaration of function 'CreateEventExW'; did you mean 'CreateEventW'? [-Wimplicit-function-declaration]| D:\LVGL\lv_port_win_codeblocks\lvgl\src\drivers\windows\lv_windows_display.c|61|warning: assignment to 'HANDLE' {aka 'void *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]| D:\LVGL\lv_port_win_codeblocks\lvgl\src\drivers\windows\lv_windows_context.c|133|warning: implicit declaration of function 'GetTickCount64'; did you mean 'GetTickCount'? [-Wimplicit-function-declaration]| D:\LVGL\lv_port_win_codeblocks\lvgl\src\drivers\windows\lv_windows_context.c|138|warning: implicit declaration of function 'CreateWaitableTimerExW'; did you mean 'CreateWaitableTimerW'? [-Wimplicit-function-declaration]|

thank you

YobeZhou commented 3 months ago

Please read here: https://github.com/lvgl/lv_port_win_codeblocks?tab=readme-ov-file#tutorial-for-windows

image

ajayw commented 2 months ago

I am a newbie and encountered failures when following the tutorial, but finally compiled successfully. Here is a tip for those who are also newbies: If you upgrade mingw according to the tutorial, but the compilation still fails, please check whether the compiler installation directory is correct. If the path has been modified before, it is likely to cause your compilation to fail. sp20240921_143027_524 企业微信截图_17269012835360