Closed Eratz closed 7 months ago
@Eratz, I have the same issue and solved it by adding the defines. I am running in Windows 11 64bit and installed Code Blocks with mingw. If you are on a similar platform you can try to fix it by adding these lines to the top of \projects\lv_sim_codeblocks_win\lvgl\src\drivers\windows\lv_windows_context.c
#define CREATE_WAITABLE_TIMER_MANUAL_RESET 0x1
#define CREATE_WAITABLE_TIMER_HIGH_RESOLUTION 0x2
I put them on lines 18 and 19.
The first value is defined in synchapi.h but I couldn't modify that file. There are some links here:
https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-createwaitabletimerexw
and an issue here from mingw:
When this is done the demo compiles and runs. Note the warnings still exist, but the errors are cleared.
@Eratz . Also if you see (and me!) #45 , you also have an option of updating mingw in Codeblocks
Thanks you're a savior, i used the first solution. Im on 20.03 but my folder structure dont look the same as shown.
Followed the tuto, got this while building. Im clueless.