Build fix for Windows

Everything about development and the OpenMW source code.
corristo
Posts: 495
Joined: 12 Aug 2011, 08:29

Re: Build fix for Windows

Post by corristo »

mikazo wrote: can you tell me how to use openmw without the launcher?
I'm not Gus, but: just launch openmw.exe directly, and if something is wrong, create config file & add some settings (see settings-default for examples)
User avatar
Ace (SWE)
Posts: 887
Joined: 15 Aug 2011, 14:56

Re: Build fix for Windows

Post by Ace (SWE) »

I have 32 and 64-bit versions of all of the libraries, same versions on all of them.
MMD
Posts: 14
Joined: 13 Jul 2012, 22:15

Re: Build fix for Windows

Post by MMD »

Can any of you build the latest revision on Windows?

I had it compiling a few weeks ago after making some changes to the cmake scripts. The first problem I bumped into is a problem with FindMyGUI.cmake which messes up the path for FindMyGUI. I have reported the issue at http://bugs.openmw.org/issues/353

Furhermore, the OGRE_PLUGIN_DEBUG_SUFFIX is not defined anywhere? Finally I get a bunch of possible related errors. One of them is that uint is not defined in terrainmaterial.cpp
Last edited by MMD on 30 Jul 2012, 19:22, edited 1 time in total.
User avatar
gus
Posts: 390
Joined: 11 Aug 2011, 15:41

Re: Build fix for Windows

Post by gus »

I pushed a fix in my objectRotationandScaling branch.
MMD
Posts: 14
Joined: 13 Jul 2012, 22:15

Re: Build fix for Windows

Post by MMD »

gus wrote:I pushed a fix in my objectRotationandScaling branch.
Thanks gus! I see fixes for the code issues.

How about FindMyGUI.cmake? Is your MyGUI located in a path without spaces?
MMD
Posts: 14
Joined: 13 Jul 2012, 22:15

Re: Build fix for Windows

Post by MMD »

MMD wrote:
gus wrote:I pushed a fix in my objectRotationandScaling branch.
Thanks gus! I see fixes for the code issues.

How about FindMyGUI.cmake? Is your MyGUI located in a path without spaces?
Could I get you to test my workaround for FindMyGUI.cmake?

https://github.com/MichaelMcDonnell/ope ... 7fc03a2afc
MMD
Posts: 14
Joined: 13 Jul 2012, 22:15

Re: Build fix for Windows

Post by MMD »

Gus I tried the fix in your branch. It fixes most of the issues, but not the OGRE_PLUGIN_DEBUG_SUFFIX completely. It is also undefined in graphicspage.cpp.

Maybe OGRE_PLUGIN_DEBUG_SUFFIX should be defined in the cmake file instead of the code?
MMD
Posts: 14
Joined: 13 Jul 2012, 22:15

Re: Build fix for Windows

Post by MMD »

MMD wrote:Gus I tried the fix in your branch. It fixes most of the issues, but not the OGRE_PLUGIN_DEBUG_SUFFIX completely. It is also undefined in graphicspage.cpp.

Maybe OGRE_PLUGIN_DEBUG_SUFFIX should be defined in the cmake file instead of the code?
I found out the root cause was a bug in the cmake file. Here is a fix for it:

https://github.com/MichaelMcDonnell/ope ... ed9b65d5ce
MMD
Posts: 14
Joined: 13 Jul 2012, 22:15

Re: Build fix for Windows

Post by MMD »

gus wrote:I pushed a fix in my objectRotationandScaling branch.
Hi Gus. My fix for OGRE_PLUGIN_DEBUG_SUFFIX is in the main branch. Could you make a new branch for your fixes (sans defining OGRE_PLUGIN_DEBUG_SUFFIX) and make a pull request? Or would you like me to do it for you?

Thanks
User avatar
gus
Posts: 390
Joined: 11 Aug 2011, 15:41

Re: Build fix for Windows

Post by gus »

Well, if you have a fix, just send a pull request to Zini ;)
Post Reply