下载ogre1.9和相应的dependencies,
http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Building+Ogre+With+CMake
解压dependencies
You need CMake (http://www.cmake.org). In a console, type:
> cd /path/to/ogredeps
> mkdir build
> cd build
> cmake ..
> make
> make install
解压ogre1.9,依次执行命令。
mkdir build
cd build
cmake -D OGRE_BUILD_PLATFORM_APPLE_IOS=1 -G Xcode ..
进入到./SDK/IOS目录
cd SDK/ios
./make_ios.sh
若出现库找不到的问题:
1) xcode-select must point to the correct xcode location, for example run the following line in Terminal:
$ sudo xcode-select –switch /Applications/Xcode.app/Contents/Developer
2) You must agree xcode license in Terminal
$ sudo xcodebuild -license
$ xcodebuild -license