Open raccoman opened 11 months ago
Hello,
Unfortunately, I don't know much on windows build or mingw64, I believe it's possible since I think other were able to build it, but I wouldn't know how.
Alo.
Sorry, we do not understand this issue.
I've been looking into this as well and still haven't found a smooth solution to building ulfius on windows
However, maybe trying zig cc command to build on windows.
link your libs and stuff and disable websockets to build easier for windows
zig cc -I /path/to/libmicrohttpd/bin -I /path/to/orcania -I /path/to/yder -o ulfius.o ulfius.c
I've never used zig in my life. However, if it works fine on different platforms and/or OSes (e.g. Mac, Linux & Windows), we should give it a try. More than happy to assist.
Describe the issue I'm trying to link ulfius to my cmake project on Windows. I would like to have ulfius sourcecode inside my
libs/
folder, then let cmake compile usingadd_subdirectory(libs/ulfius)
and directly linking targetulfius_static
. It seems to works just fine except for microhttpd.To Reproduce I cloned ulfius inside
libs/
folder, then I downloadedmicrohttpd-w32-bin.zip
extracted thelibmicrohttpd-0.9.77-w32-bin\x86_64\MinGW\static\mingw64
contents insidelibs/
. Then I copied an Ulfius example and compiled my porject using Cmake (crf. Additional Context)Expected behavior It should successfully compile
Screenshots![immagine](https://github.com/babelouest/ulfius/assets/48388138/47412f75-b8cf-43fe-87b3-47edb22d4e84)
System (please complete the following information):
Additional context Here is my CMakeLists.txt