Building 1.10 on OSX 10.11 with Xcode 7.3.1

Problems building or running the engine, queries about how to use features etc.
Post Reply
glennr
Greenskin
Posts: 126
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 9

Building 1.10 on OSX 10.11 with Xcode 7.3.1

Post by glennr »

When attempting to build Ogre 1.10.8 (from bitbucket) using Xcode 7.3.1 on OSX 10.11 I get the following error:

Code: Select all

ogre/RenderSystems/GLSupport/include/OSX/OgreOSXCocoaWindow.h:67:9: error: unknown type name 'NSWindowStyleMask'
As far as I can tell the type NSWindowStyleMask is new in the 10.12 SDK [1][2].

The versions of Xcode that contain the 10.12 sdk only install on 10.12 so does this mean that it will never be possible to build 1.10 on older OSX versions?

Glenn

[1] https://developer.apple.com/documentati ... wstylemask
[2] https://developer.apple.com/library/con ... ppKit.html
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Building 1.10 on OSX 10.11 with Xcode 7.3.1

Post by paroj »

this part has been changed only recently:
https://github.com/OGRECave/ogre/commit ... fdf700da2a

feel free to guard this functionality by __MAC_OS_X_VERSION_MAX_ALLOWED and create a pull request.
User avatar
Eugene
OGRE Team Member
OGRE Team Member
Posts: 185
Joined: Mon Mar 24, 2008 4:54 pm
Location: Kraków, Poland
x 41

Re: Building 1.10 on OSX 10.11 with Xcode 7.3.1

Post by Eugene »

glennr wrote:When attempting to build Ogre 1.10.8 (from bitbucket) using Xcode 7.3.1 on OSX 10.11 I get the following error:

Code: Select all

ogre/RenderSystems/GLSupport/include/OSX/OgreOSXCocoaWindow.h:67:9: error: unknown type name 'NSWindowStyleMask'
The versions of Xcode that contain the 10.12 sdk only install on 10.12 so does this mean that it will never be possible to build 1.10 on older OSX versions?
Fixed. I choose to repeat declaration of NSWindowStyleMask rather than replace it by NSUInteger, should work with both 10.11 and 10.12 SDKs
glennr
Greenskin
Posts: 126
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 9

Re: Building 1.10 on OSX 10.11 with Xcode 7.3.1

Post by glennr »

Thanks. I'll try that tomorrow.

I did manage to work around it by using Xcode 8.2.1 on OSX 11, which was able to build it without issues.
Post Reply