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?
(Solved) Problems building in VS2015
- urm
- Posts: 83
- Joined: 02 Jun 2017, 16:05
- Gitlab profile: https://gitlab.com/uramer
- urm
- Posts: 83
- Joined: 02 Jun 2017, 16:05
- Gitlab profile: https://gitlab.com/uramer
Re: Problems building in VS2015
adding WIN32 worked, but now I lack osg-ffmpeg-videoplayer.lib somehow
- urm
- Posts: 83
- Joined: 02 Jun 2017, 16:05
- Gitlab profile: https://gitlab.com/uramer
Re: Problems building in VS2015
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.
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.
- urm
- Posts: 83
- Joined: 02 Jun 2017, 16:05
- Gitlab profile: https://gitlab.com/uramer
Re: Problems building in VS2015
nevermind, re-did it all from scratch and it worked
Re: Problems building in VS2015
Hi urm, sounds like your issue is resolved. Let us know if you need anymore help of course.
- urm
- Posts: 83
- Joined: 02 Jun 2017, 16:05
- Gitlab profile: https://gitlab.com/uramer
Re: (Solved) Problems building in VS2015
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
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