How to migrate OGRE 3D to iOS 4.2

Source: Internet
Author: User

OGRE3D portingIOS4.2 The tutorial is the end of this Article. Suppose you have installedIOS4.2 SDK, which must be downloaded firstOGRESource code package of 1.7.2OgreSource package of _src_v1-7-2.tar.bz2 and iphone dependent LibraryOgre iOSDependencies Source. dmg, releasedOGRE1.7.2 source code package/Ogre_ Src_v1-7-2 directory, and then release the source code package of the dependent library/Ogre_ Src_v1-7-2/iPhoneDependencies directory, and finally download and install the CMAKE installation package, so far, the preparation is complete.

Open cmakelists.txt under/ogre_src_v1-7-2, and

 
 
  1. "com.yourcompany.\${PRODUCT_NAME:rfc1034identifier}" 

Change to the string corresponding to your device and save the file.

Open a terminal window and enter the following commands in sequence:

 
 
  1. cd /ogre_src_v1-7-2  
  2. mkdir build  
  3. cd build  
  4. cmake -D OGRE_BUILD_PLATFORM_IPHONE=1 -G Xcode ..  
  5. ../SDK/iPhone/fix_linker_paths.sh  
  6. xcodebuild -configuration Debug-iphoneos 

After about 20 minutes, the compilation was successful!

Connect your iPhone, iPod Touch, or iPad to your computer. Double-click it.

 
 
  1. /ogre_src_v1-7-2/build /OGRE.xcodeproj 

Project files.

Select "Run"> "Run" from the menu. The xcode integrated development environment will install and Run the compiled result from the command line on the device.

If the iOS version of your device is lower than 4.2, a message is prompted and the device refuses to run.

Then you can find the/ogre_src_v1-7-2/build/bin/Debug/SampleBrowser file, right-click, show Package content

Double-click info. plist and change MinimumOSVersion 4.2 to a lower version, such as 4.0. Save the file.

Select Run> Run from the xcode integrated development environment menu. The OGRE demo will Run on your device.

Summary:OGRE3D portingIOS4.2 The content of the tutorial is complete. I hope this article will help you!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.