Hi all,
I've been trying to get James' example Gambit/iPhone application running without much success.
Currently, when I run the application in the simulator, the following things happen based on the "hardware version" of the simulator: - Version 2.0: crash ("The application tosser quit unexpectedly...") - Version 2.1, 2.2 and 2.2.1: simulator returns to main menu after about a second - Version 3.0: simulator just stand there with a black screen, nothing is shown.
I'm on Mac OS X 10.5.7, using the latest iPhone SDK (iphone_sdk_3.0__leopard__9m2736__final.dmg)
Here's what I did:
* Installed Gambit-C - downloaded the latest Gambit development tarball (gambc-v4_4_4-devel.tar.gz) - exported the CC variable with the following statement: export CC='/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk' - did a "./configure --prefix=/usr/local/Gambit-C/iPhoneSimulator && make && sudo make install"
* Retrieved James' example from github - did "git clone git://github.com/jlongster/gambit-iphone-example.git" - In Makefile: -- changed the commented version of the 'gcc' and 'sdk' variables to use those for the simulator -- removed the comment at the end of line 46 ("app_name=tosser.app # You'll probably have to customize some of these") because the comment is interfering with the definition of the variable 'app_name' and breaking the "tosser.app" target. - Did a "make deploy", started the simulator (the "tosser" app is there with a white icon) and when I try to run it I get the result described above.
I've tried multiple things (pointing to a different version of the SDK, like 2.2, 3.0, etc). but I keep getting the same result (except with SDK 3.0 where the example doesn't build right now).
I was wondering whether anybody else ran into the same problem and had a solution... Am I supposed to be running a remote debugger at the same time in order to see something happen? Is there something else I'm doing wrong?
Thanks in advance,
Guillaume
Afficher les réponses par date
On Tue, Jul 14, 2009 at 4:09 PM, Guillaume Germainguillaume.germain@gmail.com wrote:
- Version 3.0: simulator just stand there with a black screen, nothing is
shown.
Guillaume,
I can take a closer look at it later, but my first thought is that you do need to have the debugger server up and running when the app starts. This hang is probably cause by it trying to connect. Eventually, the simulator shuts the app down because it's took too long to start up.
I've been meaning to mention this somewhere, and more importantly, change the behavior so the app works when the debugger isn't running.
- James
On Tue, Jul 14, 2009 at 4:37 PM, James Long longster@gmail.com wrote:
I can take a closer look at it later, but my first thought is that you do need to have the debugger server up and running when the app starts.
Indeed, running "gsi gambit-iphone-example/lib/util/remote-debugger/debugger.scm" in a terminal before starting the application in the iphone emulator allowed it to run.
Thanks,
Guillaume
On Tue, Jul 14, 2009 at 4:09 PM, Guillaume Germainguillaume.germain@gmail.com wrote:
- Retrieved James' example from github
- did "git clone git://github.com/jlongster/gambit-iphone-example.git"
- In Makefile: -- changed the commented version of the 'gcc' and 'sdk' variables to use
those for the simulator -- removed the comment at the end of line 46 ("app_name=tosser.app # You'll probably have to customize some of these") because the comment is interfering with the definition of the variable 'app_name' and breaking the "tosser.app" target.
- Did a "make deploy", started the simulator (the "tosser" app is there with
a white icon) and when I try to run it I get the result described above.
...
Indeed, running "gsi gambit-iphone-example/lib/util/remote-debugger/debugger.scm" in a terminal before starting the application in the iphone emulator allowed it to run.
Great! I definitely need to disable the remote debugger by default until I get it auto-detecting the server.
Also, I just noticed that you are manually deploying the app instead of building it through Xcode. I haven't mentioned that part of the Makefile yet because it's a little brittle. In general, as you see, Xcode builds the app and names it according to a UUID, and throws it in ~/Library/Application Support/iPhone Simulator/User/Applications. I think there's an index that needs to be updated though, because sometimes the application wouldn't show up in the simulator. Building it with Xcode ensures that it gets installed properly.
On Tue, Jul 14, 2009 at 4:09 PM, Guillaume Germainguillaume.germain@gmail.com wrote:
Hi all,
I've been trying to get James' example Gambit/iPhone application running without much success.
Currently, when I run the application in the simulator, the following things happen based on the "hardware version" of the simulator:
- Version 2.0: crash ("The application tosser quit unexpectedly...")
- Version 2.1, 2.2 and 2.2.1: simulator returns to main menu after about a
second
- Version 3.0: simulator just stand there with a black screen, nothing is
shown.
I was reading over your email again to see we didn't solve anything else. I think you have the solution to the main problem, but I should also point out that it's crashing on all versions except 3.0 because you probably built the Gambit libraries with the 3.0 framework. You should build different Gambit libraries for every iPhone framework/version.
- James
gambit-iphone@iro.umontreal.ca