Building 1.10 on OSX 10.11 with Xcode 7.3.1

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.

Building 1.10 on OSX 10.11 with Xcode 7.3.1

Postby 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
glennr
Halfling
 
Posts: 81
Kudos: 2
Joined: 05 Jun 2008
Location: Hikutaia, New Zealand

Re: Building 1.10 on OSX 10.11 with Xcode 7.3.1

Postby 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.
paroj
OGRE Team Member
OGRE Team Member
 
Posts: 247
Kudos: 53
Joined: 30 Mar 2014

Re: Building 1.10 on OSX 10.11 with Xcode 7.3.1

Postby 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
User avatar
Eugene
OGRE Team Member
OGRE Team Member
 
Posts: 182
Kudos: 36
Joined: 24 Mar 2008
Location: Odessa, Ukraine

Re: Building 1.10 on OSX 10.11 with Xcode 7.3.1

Postby 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.
glennr
Halfling
 
Posts: 81
Kudos: 2
Joined: 05 Jun 2008
Location: Hikutaia, New Zealand


Return to Developer talk

Who is online

Users browsing this forum: No registered users and 9 guests