iOS build borked on 1.8.1 for XCode 3?

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
d000hg
Goblin
Posts: 257
Joined: Tue Sep 02, 2008 9:41 pm
x 1

iOS build borked on 1.8.1 for XCode 3?

Post by d000hg »

I had 1.8 RC building lovely. I've updated to 1.8.1 and the generated xcode 3 project is all screwed up. I HAVE wiped my build dir and started from scratch but it makes no difference, in fact I;ve spent pretty much all day trying to see what I've done wrong without finding anything so now I wonder if it's got bugs:

- The -msse compile option is set on every CPP file for both simulator AND device, which means the code can't compile for the device. This bug (http://www.ogre3d.org/mantis/view.php?id=255) says it's fixed but in my nice clean build, it still happens.

- [ARCHS] setting is "$(ARCHS_STANDARD_32_64_BIT)". Surely that shouldn't be.

I'm stumbling in the dark with XCode and CMake and I find it weird nobody would've noticed this before. Anyone?

edit: I manually addressed those things on OgreMain to test, and it doesn't even compile; OgreZip.cpp fails with the error
/usr/local/ogre/ogre1.8/iOSDependencies/include/zzip/zzip.h:259: error: extra ';'

Code: Select all

#ifdef __cplusplus
};
#endif
What's going on here? zzip.h isn't even part of Ogre.
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: iOS build borked on 1.8.1 for XCode 3?

Post by masterfalcon »

I'll have to double check the msse flag. We are telling CMake to explicitly remove it but obviously it's not the correct solution. The ARCHS setting should be correct. At one point that was the value that Apple used to specify both armv7 and armv6, though it doesn't really make sense.

As far as the error in zzip.h. Just remove the extra semicolon.
d000hg
Goblin
Posts: 257
Joined: Tue Sep 02, 2008 9:41 pm
x 1

Re: iOS build borked on 1.8.1 for XCode 3?

Post by d000hg »

I might be talking rubbish but isn't the CMake compiler flag check simply going to check if the native compiler supports SSE - and since Macs are Intel based it does? I simply used find/replace on the project file to strip these out which isn't TOO painful :)

Regarding the ';' the part which confuses me is, I haven't updated my iOSDependencies directory and it was working against Ogre 1.8 RC. In fact I don't think the pre-built iOSDependencies have changed? Weird!