From: beuc@beuc.net
To: guile-user@gnu.org
Subject: Compiling for Android
Date: Wed, 18 Jun 2014 23:54:28 +0200 [thread overview]
Message-ID: <20140618215428.GA21875@mail.beuc.net> (raw)
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
next reply other threads:[~2014-06-18 21:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-18 21:54 beuc [this message]
2014-06-20 10:16 ` Compiling for Android 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140618215428.GA21875@mail.beuc.net \
--to=beuc@beuc.net \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).