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