unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Compiling for Android
@ 2014-06-18 21:54 beuc
  2014-06-20 10:16 ` Ludovic Courtès
  0 siblings, 1 reply; 16+ messages in thread
From: beuc @ 2014-06-18 21:54 UTC (permalink / raw)
  To: guile-user

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



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-07-04 14:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-18 21:54 Compiling for Android beuc
2014-06-20 10:16 ` Ludovic Courtès
2014-06-21 20:06   ` beuc
2014-06-21 21:34     ` Ludovic Courtès
2014-06-22 14:08       ` beuc
2014-06-23  7:59         ` Ludovic Courtès
2014-06-23 18:59           ` beuc
2014-06-24  7:56             ` Ludovic Courtès
2014-06-25 21:23               ` beuc
2014-06-25 22:04                 ` Ludovic Courtès
2014-06-24 14:04             ` Mark H Weaver
2014-07-04 14:00             ` Ludovic Courtès
2014-07-04 14:01         ` Ludovic Courtès
2014-06-22 15:42       ` libunistring test beuc
2014-06-23  8:04         ` Ludovic Courtès
2014-06-23 16:48           ` beuc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).