(Solved) Problems building in VS2015

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Post Reply
User avatar
urm
Posts: 83
Joined: 02 Jun 2017, 16:05
Gitlab profile: https://gitlab.com/uramer

(Solved) Problems building in VS2015

Post 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?
User avatar
urm
Posts: 83
Joined: 02 Jun 2017, 16:05
Gitlab profile: https://gitlab.com/uramer

Re: Problems building in VS2015

Post by urm »

adding WIN32 worked, but now I lack osg-ffmpeg-videoplayer.lib somehow :o
User avatar
urm
Posts: 83
Joined: 02 Jun 2017, 16:05
Gitlab profile: https://gitlab.com/uramer

Re: Problems building in VS2015

Post 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.
User avatar
urm
Posts: 83
Joined: 02 Jun 2017, 16:05
Gitlab profile: https://gitlab.com/uramer

Re: Problems building in VS2015

Post by urm »

nevermind, re-did it all from scratch and it worked :o
User avatar
Jyby
Posts: 408
Joined: 10 Dec 2013, 04:16

Re: Problems building in VS2015

Post by Jyby »

Hi urm, sounds like your issue is resolved. Let us know if you need anymore help of course.
User avatar
urm
Posts: 83
Joined: 02 Jun 2017, 16:05
Gitlab profile: https://gitlab.com/uramer

Re: (Solved) Problems building in VS2015

Post 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
Post Reply