I followed the instructions on the wiki to build Ogre for the iPhone. I even installed all the optional components including Boost. I'm using Xcode 3.2.3. I'm not sure what the sample code is supposed to do, but on the simulator I see a greenish gray screen with the Ogre logo. About 2 minutes later, I see a 90 degree rotated screen. On my iPhone 4, I see the same greenish gray screen with the Ogre logo. 6 seconds later the screen goes black. I waited but didn't see anything else hapen. When I touch the screen I get a:
Assertion failed: (index < mViewportList.size() && "Index out of bounds"), function getViewport, file /Users/mbenson/ogre/OgreMain/src/OgreRenderTarget.cpp, line 444.
Has anybody else run into this? Is there an obvious solution to this?
Sample iPhone code starts but crashes
-
- Gnoblar
- Posts: 14
- Joined: Thu Sep 02, 2010 4:47 am
-
- OGRE Retired Team Member
- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: Sample iPhone code starts but crashes
Could you post the log too?
-
- Gnoblar
- Posts: 14
- Joined: Thu Sep 02, 2010 4:47 am
Re: Sample iPhone code starts but crashes
I tried the prebuilt iPhone binary and that seems to work.
-
- Gnoblar
- Posts: 14
- Joined: Thu Sep 02, 2010 4:47 am
Re: Sample iPhone code starts but crashes
Sorry. I tried to run it again, but it appears my Ogre libraries are now corrupt. Any attempt to compile or link anything Ogre related causes Xcode to lock up.
-
- Gnoblar
- Posts: 14
- Joined: Thu Sep 02, 2010 4:47 am
Re: Sample iPhone code starts but crashes
I think I built it incorrectly. After several other attempts, I think I finally got a clean install. Everything seems to work now.