Windows build instructions
Hi! I'm trying to use this library on Windows, but the build instructions are written for a Linux machine. I can see that the project is supposed to work on Windows, as cmake <repo dir> generates a bunch of Visual Studio projects and a .sln file, but attempting to build any of those fails (usually because something that doesn't exist on Windows is defined).
Can this project be built on Windows?
I think we need some work to be able to build it under Windows. There was an old version, maybe 1.2 which was windows compatible. Do you have the list of all the errors you are having? This way I could fix it and then we could provide a Windows version. Thanks!
There's a bunch, and I'm not sure how many of them are just a result of some build flags not quite working correctly. I'll try to summarize:
- There seems to be an issue with the
MINIZ_EXPORTmacro used by theminizheaders. Usage of the macro triggers anexpected a type specifiererror, and the token after it triggers anexpected '{'error. This triggers tons of compilation errors in most of the projects. -
unistd.hdoesn't exist on windows, and it's used in a few places, likesnapshot-file.corutils.c. - Same for
dirent.h. - Same for
ftw.h. -
bsd-snprintf.creports thatfunction 'int snprintf(char *const ,const size_t,const char *const ,...)' already has a body. I thinksnprintfone may be part of Microsoft's C runtime, and CMake just doesn't set the#definecorrectly, so it gets defined again here.