기타/Ogre3D2012. 12. 13. 11:26


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:

  1. xcode - I've downloaded and installed latest Xcode (xcode_3.2.3_and_ios_sdk_4.0.2.dmg) from apple developer page.
  2. cmake - usign existing macports I've installed cmake 2.8.2 (with command line
    Code:
    port install cmake
    ), I suppose that downloading compiled version from http://www.cmake.org/cmake/resources/software.htmlshould be even easier.
  3. source - using svn from command line, in my Documents folder I've executed
    Code:
    svn co http://gamekit.googlecode.com/svn/trunk/ gamekit-read-only
    . And checked out revision nr 615 of the source tree.
  4. crate project - cd into new gamekit-read-only directory, create buil directory and execute cmake
    Code:
    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
  5. build - run Xcode and open and build project OGREKIT.xcodeproj from gamekit-read-only/build/ . Building process took c.a. 20-30 minutes.
I've also tried to run it on real iPad device, with some problems, but finally it worked:
  1. change target config - Targeted Device Family - to iPad
  2. change Architecture i Valid Architecture to armv7
  3. put valid Code Signing Identity
  4. 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"
Ok, it's working now, but with some issues, I've only tried the "Debug" compile mode, maybe this is the source of some problems.
  • 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.

Posted by 삼스