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
Halfling
Posts: 83
Joined: Thu Jun 05, 2008 3:26 am
Location: Hikutaia, New Zealand

Building 1.10 on OSX 10.11 with Xcode 7.3.1

Post by glennr » Wed Sep 13, 2017 4:08 am

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
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 307
Joined: Sun Mar 30, 2014 2:51 pm
Contact:

Re: Building 1.10 on OSX 10.11 with Xcode 7.3.1

Post by paroj » Wed Sep 13, 2017 10:36 pm

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.
0 x

User avatar
Eugene
OGRE Team Member
OGRE Team Member
Posts: 182
Joined: Mon Mar 24, 2008 4:54 pm
Location: Odessa, Ukraine

Re: Building 1.10 on OSX 10.11 with Xcode 7.3.1

Post by Eugene » Fri Sep 15, 2017 8:10 am

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
0 x

glennr
Halfling
Posts: 83
Joined: Thu Jun 05, 2008 3:26 am
Location: Hikutaia, New Zealand

Re: Building 1.10 on OSX 10.11 with Xcode 7.3.1

Post by glennr » Fri Sep 15, 2017 10:17 am

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.
0 x

Post Reply