[Solved] Building 1.8 for iPhone with xcode 4.3.1

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
AnotherBrian
Gnoblar
Posts: 16
Joined: Fri Feb 11, 2011 2:24 am
x 1

[Solved] Building 1.8 for iPhone with xcode 4.3.1

Post by AnotherBrian »

It's been a few months since I've tried building Ogre. I'm currently trying with xcode 4.3.1. I saw there is an issue with cmake. I downloaded the 2.8.8 rc1 from http://www.kitware.com/blog/home/post/248. It looks like the issue is supposed to be fixed in that issue.

It looks like cmake isn't picking up on the cmake modules that come with Ogre. When I run the build script, I get the following:

Code: Select all

CMake Error at CMakeLists.txt:16 (include):
  include could not find load file:

    PrecompiledHeader
Anyone seen this or have any ideas for what to try? Sadly, I don't have much experience using cmake. Thanks!
Last edited by AnotherBrian on Fri Mar 30, 2012 1:49 am, edited 1 time in total.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Building 1.8 for iPhone with xcode 4.3.1 and cmake 2.8.8

Post by masterfalcon »

How are you configuring? It works fine for me with the latest code in the 1.8 branch and has for quite a while.
AnotherBrian
Gnoblar
Posts: 16
Joined: Fri Feb 11, 2011 2:24 am
x 1

Re: Building 1.8 for iPhone with xcode 4.3.1 and cmake 2.8.8

Post by AnotherBrian »

I've been trying with the build script posted under "For Compatibility with the Template Project" on http://www.ogre3d.org/tikiwiki/Building ... e+-+iPhone.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Building 1.8 for iPhone with xcode 4.3.1 and cmake 2.8.8

Post by masterfalcon »

I have updated that wiki page with some additional instructions. I have a feeling that you need to either install the command line tools, set the xcode path or both.
AnotherBrian
Gnoblar
Posts: 16
Joined: Fri Feb 11, 2011 2:24 am
x 1

Re: Building 1.8 for iPhone with xcode 4.3.1 and cmake 2.8.8

Post by AnotherBrian »

Thanks. I'll give it a shot here when I get a chance. I noticed it had been updated since I last looked at it, so I was hoping it would work.
AnotherBrian
Gnoblar
Posts: 16
Joined: Fri Feb 11, 2011 2:24 am
x 1

Re: Building 1.8 for iPhone with xcode 4.3.1 and cmake 2.8.8

Post by AnotherBrian »

Resolved the problem by checking out a recent copy of the source instead of using the 1.8 release candidate source.
magengyu
Kobold
Posts: 35
Joined: Sat Jul 28, 2012 7:54 am
x 1

Re: [Solved] Building 1.8 for iPhone with xcode 4.3.1

Post by magengyu »

I met the same error on the 1.8.1 source "ogre_src_v1-8-1.tar.bz2".
I found the cause is because of unzip software. I download the file in windows, and uses alzip to unzip it.
the result directory is 169M in size.
if unzipped in Mac, the correct size is 337M.

I tried another unzip software 7zip, works fine. so it is the alzip's problems