On 2010-11-04, at 3:42 PM, Francois Magnan wrote:
Hi,
Thank you for your fast reply. I executed the script and 3 versions of Gambit get compiled on my Desktop.
When I try to use gsc I still get the following error:
/Users/magnan/Desktop/gambit-iPhoneSimulator/current/bin/gsc -link init.scm *** ERROR IN c#targ-start-dump -- Unknown error (#<procedure #2> "/Users/magnan/CDSCode/Experiments/gambit-iphone-example/lib/init.c")
What is wrong with my installation?
The gsc that you are trying to execute is the one compiled for the iPhone simulator (i.e. that gsc would have to be executed in the iPhone simulator... I'm not sure that's possible... does the iPhone simulator have a file system?). You want to use the Mac OS X version to compile/link init.scm (generating init.c and init_.c) then you use Xcode to create an iPhone project, you include the init.c and init_.c files, and link with the **iPhone** libgambc.a . Then you have an application that can run on the iPhone.
In other words, in the iPhone builds of Gambit, ignore gsi and gsc. You only want the libraries (libgambc.a, etc).
Marc
Afficher les réponses par date
Thank you!
Now I have problems getting __setup() to run. I always get:
Program received signal: “EXC_BAD_ACCESS”.
Here is my main.m file:
#define ___VERSION 406000
#import <UIKit/UIKit.h> #include "gambit.h" #include "stdlib.h"
___setup_params_struct setup_params;
int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
___setup_params_reset(&setup_params); setup_params.version = ___VERSION; ___setup(&setup_params);
int retVal = UIApplicationMain(argc, argv, nil, nil);
___cleanup(); [pool release]; return retVal; }
Do you have an "empty" working XCode template to use (some kind of Hello World)?
Thank you, Francois
On 2010-11-04, at 16:20, Marc Feeley wrote:
On 2010-11-04, at 3:42 PM, Francois Magnan wrote:
Hi,
Thank you for your fast reply. I executed the script and 3 versions of Gambit get compiled on my Desktop.
When I try to use gsc I still get the following error:
/Users/magnan/Desktop/gambit-iPhoneSimulator/current/bin/gsc -link init.scm *** ERROR IN c#targ-start-dump -- Unknown error (#<procedure #2> "/Users/magnan/CDSCode/Experiments/gambit-iphone-example/lib/init.c")
What is wrong with my installation?
The gsc that you are trying to execute is the one compiled for the iPhone simulator (i.e. that gsc would have to be executed in the iPhone simulator... I'm not sure that's possible... does the iPhone simulator have a file system?). You want to use the Mac OS X version to compile/link init.scm (generating init.c and init_.c) then you use Xcode to create an iPhone project, you include the init.c and init_.c files, and link with the **iPhone** libgambc.a . Then you have an application that can run on the iPhone.
In other words, in the iPhone builds of Gambit, ignore gsi and gsc. You only want the libraries (libgambc.a, etc).
Marc
gambit-iphone@iro.umontreal.ca