Hi, Is there anybody working on compiling Guile for Android?
Here are some notes when trying to compile stable-2.0. First important note: I had to move "AC_CHECK_LIB(m, cos)" (which btw could be rewritten at LT_LIB_M()) before gl_INIT in configure.ac, otherwise libunistring would fail to be detected. The compilation fails when libgc tries to use pthread features not implemented under Android (btw ./configure was happy to start compiling even if libgc wasn't present). Not sure where to go from here, maybe other projects use libgc and already faced the issue? Which version of libgc do you recommend? Cheers! Sylvain ----- /usr/src/android-ndk-r9d/build/tools/make-standalone-toolchain.sh \ --platform=android-12 --install-dir=/usr/src/ndk-standalone-12 PATH=/usr/src/ndk-standalone-12/bin:$PATH aptitude install lzip WGET=wget VERSION=2.4.2 $WGET http://ftp.igh.cnrs.fr/pub/gnu/libtool/libtool-$VERSION.tar.xz tar xf libtool-$VERSION.tar.xz cd libtool-$VERSION/ mkdir cross-android/ && cd cross-android/ ../configure --host=arm-linux-androideabi --prefix=/usr/src/ndk-standalone-12/sysroot/usr make -j$(nproc) make install VERSION=6.0.0a VERSIONDIR=6.0.0 $WGET https://gmplib.org/download/gmp/gmp-$VERSION.tar.lz tar xf gmp-$VERSION.tar.lz cd gmp-$VERSIONDIR/ mkdir cross-android/ && cd cross-android/ ../configure --host=arm-linux-androideabi --prefix=/usr/src/ndk-standalone-12/sysroot/usr make -j$(nproc) make install VERSION=0.9.3 $WGET http://ftp.gnu.org/gnu/libunistring/libunistring-0.9.3.tar.gz tar xf libunistring-$VERSION.tar.gz mkdir cross-android/ && cd cross-android/ cp -a /usr/share/misc/config.{guess,sub} ../build-aux/ ../configure --host=arm-linux-androideabi --prefix=/usr/src/ndk-standalone-12/sysroot/usr make -j$(nproc) make install VERSION=7.2f VERSIONDIR=7.2 $WGET http://www.hboehm.info/gc/gc_source/gc-$VERSION.tar.gz tar xf gc-$VERSION.tar.gz cd gc-$VERSIONDIR/ mkdir cross-android/ && cd cross-android/ => build failure due to Android's pthread cd guile/cross-android/ git checkout stable-2.0 mkdir cross-android/ && cd cross-android/ ../configure --host=arm-linux-androideabi --prefix=/usr/src/ndk-standalone-12/sysroot/usr make -j$(nproc) => depends on libgc
