webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and modern web technologies in the frontend, all in a lightweight portable library.
https://webui.me
MIT License
2.96k stars 172 forks source link

MinGW-W64-i686 compile 32bit dll file failure #295

Open zelsazgh opened 9 months ago

zelsazgh commented 9 months ago

I try to use Mingw-W64-i686 compile webui 32bit dll file encounter failure. mingw32-make display:

"Build WebUI library (gcc release static)..."
"Build WebUI library (gcc release dynamic)..."
D:/w64devkit/bin/ld.exe: webui.o:webui.c:(.text+0x32bd): undefined reference to `InitializeConditionVariable'
D:/w64devkit/bin/ld.exe: webui.o:webui.c:(.text+0x32ec): undefined reference to `SleepConditionVariableCS'
D:/w64devkit/bin/ld.exe: webui.o:webui.c:(.text+0x330d): undefined reference to `WakeConditionVariable'
collect2.exe: error: ld returned 1 exit status
make: *** [GNUmakefile:121: --release] Error 1

how to slove it?

hassandraga commented 9 months ago

This issue is related to a missing mutex lib. In Windows, mutexes and condition variables are typically part of the standard Windows API, which is available through Kernel32.lib and Synchronization.lib. Which OS version you are using?

zelsazgh commented 9 months ago

I am using Win 11,My Compiler Lib path have kerenl32.lib and synchronization.lib.