Ran into a couple of problems when trying to compile with MSVC on a pretty early stage. First of all, the link for libraries pack download here wiki.vcmi.eu/index.php?title=How … I_(Windows only provides mingw libs despite the fact that the page is clearly related to Visual Studio.
Anyone here got an up to date lib bundle for MSVC? I could compile the libs myself ofc, but I’d rather prefer not to.
Download libraries separately. You need boost and zlib, additionally for VCMI_client you need sdl2 and ffmpeg. Boost, sdl2 and ffmpeg are easy to download from their websites. And you can get zlib using nuget package manager shipped with visual studio 2015: nuget.org/packages/zlib/
You also need qt for launcher but I do not play with launcher project.
Ye, I know - I know, my point is that the msvc bundle link is outdated and that the link that works, which is supposedly for msvc too, in fact only provides mingw libs
It will be good, if someone provides step-by-step instruction how to compile VCMI under VS2015.
I tried to do this not long ago (and still want to try), but got some compile errors not solved by me yet.
Anyone succeeded in compiling in VS2015? I followed the wiki, installed zlib, boost, ffmpeg, configured the lib path and include path, still have about 20 err (mostly missing include and LINK error)
“No such file or directory” - can’t find include file. This is perfectly clear to me. The same goes for linker which can’t find .lib files.
If VCMI_Liblib is not created at all (compilation failed) or is created in wrong directory, you get this error.
Just navigate project settings (for each projectr, starting from VCMI_Lib) and make sure files are in specified include directories. Or, more precisely, make sure the directories are set where files are.
I didn’t encounter this error. Not sure if this would help but I found QtWidgets in my boost folder.
Anyway, I was finally successfully solved those “cannot find…” errors. Now the only type of error I have left is the LINK error (there are like ~10 LINK errors). I looked it up and it seems like it has something to do with Linker -> Input under Properties. Any ideas to solve this?