(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
urm
Posts: 21
Joined: 02 Jun 2017, 16:05

(Solved) Problems building in VS2015

Post by urm » 03 Jun 2017, 00:23

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?

urm
Posts: 21
Joined: 02 Jun 2017, 16:05

Re: Problems building in VS2015

Post by urm » 03 Jun 2017, 00:33

adding WIN32 worked, but now I lack osg-ffmpeg-videoplayer.lib somehow :o

urm
Posts: 21
Joined: 02 Jun 2017, 16:05

Re: Problems building in VS2015

Post by urm » 03 Jun 2017, 10:24

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.

urm
Posts: 21
Joined: 02 Jun 2017, 16:05

Re: Problems building in VS2015

Post by urm » 03 Jun 2017, 15:07

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 » 04 Jun 2017, 14:01

Hi urm, sounds like your issue is resolved. Let us know if you need anymore help of course.
Macbook Air 2013 - 1.7GHz Intel i7 - 8 GB - 512 GB SSD - Intel HD 5000
Windows 10 PC - 4GHz Intel i7 - 16 GB - 512 GB SSD - EVGA GTX 1060 SSC

urm
Posts: 21
Joined: 02 Jun 2017, 16:05

Re: (Solved) Problems building in VS2015

Post by urm » 04 Jun 2017, 14:33

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