Page 1 of 1

(Solved) Problems building in VS2015

Posted: 03 Jun 2017, 00:23
by urm
Hello! Trying to build OpenMW on Windows in VS2015 here.
I have WINGDIAPI undefined in gl.h, adding WIN64 or _WIN64 to preprocessing doesn't fix it, including <windows.h> in gl.h (yes, BAD move) fixes this problem, but that causes double-definition of RELATIVE (in OSG and Windows library)
CMake finished just fine, so could someone please tell me what am I doing wrong?

Re: Problems building in VS2015

Posted: 03 Jun 2017, 00:33
by urm
adding WIN32 worked, but now I lack osg-ffmpeg-videoplayer.lib somehow :o

Re: Problems building in VS2015

Posted: 03 Jun 2017, 10:24
by urm
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
1>LINK : fatal error LNK1181: cannot open input file '..\..\extern\osg-ffmpeg-videoplayer\Debug\osg-ffmpeg-videoplayer.lib'
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(638,5): error MSB6006: "link.exe" exited with code 1181.

Re: Problems building in VS2015

Posted: 03 Jun 2017, 15:07
by urm
nevermind, re-did it all from scratch and it worked :o

Re: Problems building in VS2015

Posted: 04 Jun 2017, 14:01
by Jyby
Hi urm, sounds like your issue is resolved. Let us know if you need anymore help of course.

Re: (Solved) Problems building in VS2015

Posted: 04 Jun 2017, 14:33
by urm
yes, it's fine now
consider adding some info on -c argument in https://gist.github.com/ace13/de7f30454e99b3952405
I think my problem was caused by CMake building some stuff for Debug and some stuff for Release, so neither option actually worked