Skip to main content

History: ogreOnIphoneFast

Source of version: 5 (current)

Copy to clipboard
            !__How to get Ogre3D running on iOS in 15 minutes!__

This tutorial details how to use the iOS Ogre3D SDK to get an Ogre project up and running FAST!

This tutorial was made using Ogre 1.7.3 and Xcode 4. 
This tutorial assumes you are running OSX, have Xcode installed, and a dev capable device connected.


!!!Step 1) Download the iOS SDK
All SDKs for Ogre, including the Ogre iOS SDK can be found [http://www.ogre3d.org/download/sdk|HERE|Ogre SDK downloads page]

Once downloaded, copy it to an appropriate directory.  
I like to set up my builds as shown in the example below:
{img fileId="2071" thumb="y" rel="box[g]" width="600"}




!!!Step 2) Install Xcode project templates (for Ogre3D/iOS)
You can find Xcode project templates [http://sourceforge.net/projects/ogre/files/|HERE|Ogre Files on sourceforge]
Follow the path into: __ogre-dependencies-mac > your ogre version > download the proper template for your version of Xcode__

Follow the steps of the installer (if you have Xcode open you don't need to close it).




!!!Step 3) Open Xcode and start a new project.
Choose the appropriate template,  be sure to choose the iOS template and not to choose the OSX template.
{img fileId="2069" thumb="y" rel="box[g]" width="600"}



!!!Step 4) Configure Project

Point the template to the directory you used in Step 1
{img fileId="2072" thumb="y" rel="box[g]" width="600"}




!!!Step 5) Fix paths
If you used the Ogre SDK and did not build Ogre from the source, you likely need to change the library paths.
For SDK Users,  go to your __project > build settings > Library Search Paths__
If you used the same paths I did above, the paths should be as shown:
{img fileId="2070"}




!!!Step 6) Run
After it compiles BEHOLD the Ogre head on your device!