I'm trying to compile the source with mingw on Windows. My problem is that I cannot get cmake to find any libraries. I don't want to compile them now (I tried that for one and it did not work either). Instead want to use the files I already have. First of all I should make sure I understand what is meant by a library. It refers to the .dll files, right? Or is it something else that it is looking for? I tried pasting the DLLs all over the place but to no avail.
The error stems from the following line in cmakelist.txt:
with a message 'could NOT find SDL (missing: SDL_LIBRARY)'
The error also occurs for dozens of similar lines for finding GLEW, zlib, etc.
Where and for what does this command search?
Using MingW32 is a bit more annoying because you have to configure all the paths yourself. Start up CMake GUI and for all the missing libraries, specify the paths. The libraries can either be found in your Mingw32 install or in the src/libs dir in the Unvanquished source tree. If you pick the libs from the Unvanquished source tree, make sure you pick the proper architecture.
Took me hours to understand that the variables are actually requesting input, and are not supposed to be automatically generated. It's quite an intimidating list of values it wants the user to enter... I typed in some things but it definitely feels like I'm doing it wrong--this could take months. To my further dismay, I realized there is no verification as to whether you entered something correctly. It will say it "found" a library even if you didn't enter a valid path. I wonder how much more noobish flailing I will do before giving up, lol. Perhaps it is simply a wrongheaded idea to try this on a Windows machine.
Took me hours to understand that the variables are actually requesting input, and are not supposed to be automatically generated. It's quite an intimidating list of values it wants the user to enter... I typed in some things but it definitely feels like I'm doing it wrong--this could take months. To my further dismay, I realized there is no verification as to whether you entered something correctly. It will say it "found" a library even if you didn't enter a valid path. I wonder how much more noobish flailing I will do before giving up, lol. Perhaps it is simply a wrongheaded idea to try this on a Windows machine.
I suppose that's true. You could use a free version of VS and get the benefit of the batch script though.
Cmake will try to find your libraries. If they're all in one place you can pass -DCMAKE_PREFIX_PATH="C:/path/to/folder" and CMake should be able to find them.
------ Build started: Project: INTERNAL_SDL, Configuration: Debug Win32 ------
Compiling...
SDL_dx5audio.c
c:\unvsource\unvanquished-master\src\libs\libsdl\src\audio\windx5\directx.h(78) : fatal error C1083: Cannot open include file: 'dsound.h': No such file or directory
SDL_dx5yuv.c
c:\unvsource\unvanquished-master\src\libs\libsdl\src\video\windx5\directx.h(78) : fatal error C1083: Cannot open include file: 'dsound.h': No such file or directory
SDL_dx5video.c
c:\unvsource\unvanquished-master\src\libs\libsdl\src\video\windx5\directx.h(78) : fatal error C1083: Cannot open include file: 'dsound.h': No such file or directory
SDL_dx5events.c
c:\unvsource\unvanquished-master\src\libs\libsdl\src\video\windx5\directx.h(78) : fatal error C1083: Cannot open include file: 'dsound.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\unvsource\Unvanquished-master\build-32\src\libs\libsdl\INTERNAL_SDL.dir\Debug\BuildLog.htm"
INTERNAL_SDL - 4 error(s), 0 warning(s)
I attached CMakeCache.txt. It is plain text, not zipped. I had to rename it because the forum refused to upload it when the extension was txt.