Building Ogre for iOS

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
xissburg
Halfling
Posts: 83
Joined: Sun Feb 21, 2010 4:58 pm
x 28

Building Ogre for iOS

Post by xissburg »

I am having a hard time to build Ogre for iOS. After having some trouble to get the Dependencies to build and setting up a lot of stuff in CMake (copying and pasting paths), I am still getting a weird error in cstdint.hpp like "No member name 'uint_least32' in the global namespace" (actually, lots of these).

I also tried the pre-built Ogre3D iOS SDK but the Xcode templates failed to install, and when trying run the SampleBrowser target I got this

Code: Select all

make -f /Users/xissburg/Documents/Projects/OgreSDK/CMakeScripts/ReRunCMake.make
make[1]: *** No rule to make target `/Applications/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/CMakeCCompiler.cmake.in', needed by `CMakeFiles/cmake.check_cache'.  Stop.
make: *** [/Users/xissburg/Documents/Projects/OgreSDK/CMakeFiles/ZERO_CHECK] Error 2
Command /bin/sh failed with exit code 2
Well, there must be a correct way to build Ogre3D for iOS. So, how does it have to be done?

Thanks…...
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Building Ogre for iOS

Post by masterfalcon »

What version of Xcode are you using?
xissburg
Halfling
Posts: 83
Joined: Sun Feb 21, 2010 4:58 pm
x 28

Re: Building Ogre for iOS

Post by xissburg »

Latest, Xcode 4.3.1, iOS SDK 5.1.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Building Ogre for iOS

Post by masterfalcon »

Ok, the current version of CMake doesn't support Xcode 4.3. All of your errors are probably related to that. The bug is here: http://www.cmake.org/Bug/view.php?id=12621

You can either build a new CMake yourself or wait for 2.8.8.