http://blenderartists.org/forum/showthread.php?155310-GameKit-new-Blender-game-engine-using-Ogre-Bullet-DirectX-OpenGL-Mac-Linux-iPhone&p=1701697#post1701697
I am newbie in the area of opengl and iphone development, but I found this project very interesting and spent a few days to get know it better . Following this steps I successfully run that demo on iPhone Simulator:
- xcode - I've downloaded and installed latest Xcode (xcode_3.2.3_and_ios_sdk_4.0.2.dmg) from apple developer page.
- cmake - usign existing macports I've installed cmake 2.8.2 (with command line), I suppose that downloading compiled version from http://www.cmake.org/cmake/resources/software.htmlshould be even easier.Code:
port install cmake
- source - using svn from command line, in my Documents folder I've executed. And checked out revision nr 615 of the source tree.Code:
svn co http://gamekit.googlecode.com/svn/trunk/ gamekit-read-only
- crate project - cd into new gamekit-read-only directory, create buil directory and execute cmakeCode:
cd gamekit-read-only mkdir build && cd build cmake .. -G Xcode -D OGREKIT_BUILD_IPHONE=1 -D OGREKIT_BUILD_GLESRS=1 OGREKIT_BUILD_GLRS=0
- build - run Xcode and open and build project OGREKIT.xcodeproj from gamekit-read-only/build/ . Building process took c.a. 20-30 minutes.
- change target config - Targeted Device Family - to iPad
- change Architecture i Valid Architecture to armv7
- put valid Code Signing Identity
- check off Compile for Thumb - I'm not sure if this is right solution, but with this option checked on I got 6 compile errors f.e."error: branch out of range in Engine/AI/gkNavPath.cpp"
- It is staring/loading - 40 seconds.
- It starts only once, or only run via Xcode and usb cable. After disconecting from mac, and trying to run by pressing app icon it just shows black screen for 40 seconds and switches off.
- It looks and sounds great, render fast, but it restponds to touch events after 15-20 seconds.