Hi,
I tried to compile Gambit 4.6.0 for the iPhone with iOS4.1 and after many different tries I was unsuccessful. I tried to follow James Long instructions, I tried to apply Alex Quieroz patch, I tried with earlier versions of Gambit. It always fails for me.
I pasted parts of a sample compile session below. It seems that configure doesn't work as expected since make runs it again. If somebody on this list could compile the latest Gambit for Simulator and iOS and make it available somewhere it would be greatly appreciated. I offer myself to host those files if needed.
Thank you, Francois Magnan
fmagnan-imac-2:~ magnan$ cd /Users/magnan/Downloads/gambc-v4_6_0 fmagnan-imac-2:gambc-v4_6_0 magnan$ export CC='/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk' fmagnan-imac-2:gambc-v4_6_0 magnan$ fmagnan-imac-2:gambc-v4_6_0 magnan$ patch -p1 < ~/Desktop/0001-Checking-also-for-struct-stat64.patch patching file configure.ac patching file include/config.h.in patching file lib/os.h fmagnan-imac-2:gambc-v4_6_0 magnan$ ./configure checking build system type... i386-apple-darwin10.4.0 checking host system type... i386-apple-darwin10.4.0 checking target system type... i386-apple-darwin10.4.0 checking for gcc... /Developer/Platforms/iPhoneSimulator.platform/
.....
config.status: creating prebuilt/windows/makefile config.status: creating prebuilt/windows/build-phase2 config.status: creating include/config.h configure: ************************************************************************** *** The option "--enable-single-host" was not specified to the *** *** configure script. The Gambit-C system will compile correctly but *** *** the code generated by the C compiler will be suboptimal and the *** *** executables will run considerably slower than if *** *** "--enable-single-host" is specified. On the other hand the build *** *** process will be faster and require less memory. If you have lots *** *** of RAM memory (>= 500 Mbytes) and you are willing to wait for the *** *** longer build try the configure option "--enable-single-host". *** **************************************************************************
......
fmagnan-imac-2:gambc-v4_6_0 magnan$ make cd . && autoconf configure.ac > configure && chmod 755 configure configure.ac:537: warning: AC_CACHE_VAL(C_COMP_GNUC, ...): suspicious cache-id, must contain _cv_ to be cached ../../lib/autoconf/general.m4:2018: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2039: AC_CACHE_CHECK is expanded from... configure.ac:445: AC_CHECK_C_COMPILER_DEF is expanded from... configure.ac:537: the top level configure.ac:537: warning: AC_CACHE_VAL(C_COMP_GNUC, ...): suspicious presence of an AC_SUBST in the second argument, where no actions should be taken configure.ac:538: warning: AC_CACHE_VAL(C_COMP_VISUALC, ...): suspicious cache-id, must contain _cv_ to be cached configure.ac:538: the top level configure.ac:538: warning: AC_CACHE_VAL(C_COMP_VISUALC, ...): suspicious presence of an AC_SUBST in the second argument, where no actions should be taken
.......
make install
gsc -link init.scm *** ERROR IN c#targ-start-dump -- Unknown error (#<procedure #2> "/Users/magnan/CDSCode/Experiments/gambit-iphone-example/lib/init.c")
Afficher les réponses par date
On 2010-11-04, at 2:10 PM, Francois Magnan wrote:
Hi,
I tried to compile Gambit 4.6.0 for the iPhone with iOS4.1 and after many different tries I was unsuccessful. I tried to follow James Long instructions, I tried to apply Alex Quieroz patch, I tried with earlier versions of Gambit. It always fails for me.
I pasted parts of a sample compile session below. It seems that configure doesn't work as expected since make runs it again. If somebody on this list could compile the latest Gambit for Simulator and iOS and make it available somewhere it would be greatly appreciated. I offer myself to host those files if needed.
Thank you, Francois Magnan
I'm in the process of making an iPhone sample application to include with the Gambit distribution. I'm hoping to finish that soon. In the meantime I can give you a script I have used successfully to build the Gambit runtime for the iPhone, both the actual device and the simulator. Just run the shell script. It downloads Gambit, builds it for Mac OS X, iPhone device, and iPhone simulator.
Marc
gambit-iphone@iro.umontreal.ca