Page 1 of 1

Ogre 1.7.1 on iPad

Posted: Mon Jul 19, 2010 9:04 pm
by SufferinPup
Are there some newer updates to Ogre after 1.7.1 I should grab to make it run on the iPad simulator?

When I try to run it (samplebrowser or my own simple app), I get errors while trying to load scripts for parsing. It seems to be getting the filenames wrong, like if the material script is "Parsing script Models/ThreePigsTest02.material" I see "Parsing script 02.material" in the log then it crashes because it can't open the file.

Note that I haven't converted the target for "true" iPad support - I'm simply selecting the iPad simulator and running the compiled iPhone version (which works fine in the iPhone simulator). Maybe thats not okay. :) I figured it should work though.

Re: Ogre 1.7.1 on iPad

Posted: Mon Jul 19, 2010 9:13 pm
by DanielSefton
Yay, that's 2/2 of my problems confirmed. :P

It cuts off the first characters of resources and throws an exception that it doesn't exist, very strange.

Re: Ogre 1.7.1 on iPad

Posted: Mon Jul 19, 2010 9:49 pm
by masterfalcon
Yeah, I'm seeing this too but only intermittently. It's #1 on my bug fix list.

Re: Ogre 1.7.1 on iPad

Posted: Mon Jul 19, 2010 9:58 pm
by SufferinPup
While searching the forums I swear others have gotten it to work on iPad, so I figured some updates were required. Or is it luck of the draw? :)

Re: Ogre 1.7.1 on iPad

Posted: Tue Jul 20, 2010 5:49 am
by masterfalcon
It appears that things get all screwy only on iPad when using the iOS 4 SDK. Honestly, I have no idea why it doesn't work. Even the dependencies need to be compiled with the 3.2 SDK.

Re: Ogre 1.7.1 on iPad

Posted: Tue Jul 20, 2010 8:46 am
by pratty70
I no longer build the samples, just build the libs and then build my app against it. Mine works fine on the iPad itself, haven't tried the simulator for a short while. Will do some time today.

Re: Ogre 1.7.1 on iPad

Posted: Tue Jul 20, 2010 4:03 pm
by SufferinPup
pratty70 wrote:I no longer build the samples, just build the libs and then build my app against it. Mine works fine on the iPad itself, haven't tried the simulator for a short while. Will do some time today.
masterfalcon wrote:It appears that things get all screwy only on iPad when using the iOS 4 SDK. Honestly, I have no idea why it doesn't work. Even the dependencies need to be compiled with the 3.2 SDK.
So it looks like in order to get my game running on iPad, I need both the libs and dependencies compiled against 3.2 SDK? I can't compile them against 4.0 and use those same libs on both iPhone and iPad?

Masterfalcon, any chance you could post those 3.2 dependencies? :) I haven't tried tackling compiling those yet, they scare me.

Re: Ogre 1.7.1 on iPad

Posted: Tue Jul 20, 2010 5:36 pm
by pratty70
SufferinPup wrote: So it looks like in order to get my game running on iPad, I need both the libs and dependencies compiled against 3.2 SDK? I can't compile them against 4.0 and use those same libs on both iPhone and iPad?

Masterfalcon, any chance you could post those 3.2 dependencies? :) I haven't tried tackling compiling those yet, they scare me.
I use the same libs on 3.2 and 4.0 because I have a universal app running quite happily on 4.0 on iPhone and 3.2 on iPad.

Re: Ogre 1.7.1 on iPad

Posted: Tue Jul 20, 2010 5:58 pm
by SufferinPup
pratty70 wrote:I use the same libs on 3.2 and 4.0 because I have a universal app running quite happily on 4.0 on iPhone and 3.2 on iPad.
Are your libs "fat" libs that contain both 4.0 and 3.2? Or just 4.0? Because right now if I compile ogre's libs with SDK 4.0 (and set OS Deployment Target as 3.0) I get the problems parsing scripts on ipad. And from masterfalcon's comments it sounds like the problem is because its compiled against SDK 4.0.

Re: Ogre 1.7.1 on iPad

Posted: Tue Jul 20, 2010 6:33 pm
by pratty70
It sounds like I built it the same as you, SDK 4.0 with Deployment target 3.0. I've not seen any script issues on the actual iPad device.

Re: Ogre 1.7.1 on iPad

Posted: Tue Jul 20, 2010 7:31 pm
by SufferinPup
Ahah sorry I misunderstood, on the actual device this all works fine, I guess the problems I'm seeing are specific to the simulator. I tested my app on an actual device and it works fine. Very odd!

Re: Ogre 1.7.1 on iPad

Posted: Wed Jul 21, 2010 6:32 pm
by pratty70
I can confirm I'm seeing the same thing here - missing the first letter off the names of scripts in iPad simulator.

Re: Ogre 1.7.1 on iPad

Posted: Thu Sep 02, 2010 9:26 am
by pratty70
Any joy finding this one anyone?? By this I mean the missing char off the front of the script names in iPad simulator.