Fix infinity loop when network address and
[tinc] / README.android
1 Quick how-to cross compile tinc for Android (done from $HOME/android/):
2
3 - Download Android NDK and setup local ARM toolchain:
4
5         wget http://dl.google.com/android/ndk/android-ndk-r8b-linux-x86.tar.bz2
6         tar xfj android-ndk-r8b-linux-x86.tar.bz2
7         ./android-ndk-r8b/build/tools/make-standalone-toolchain.sh --platform=android-5 --install-dir=/tmp/my-android-toolchain
8
9 - Download and cross-compile OpenSSL for ARM:
10
11         wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
12         tar xfz openssl-1.0.1c.tar.gz
13         cd openssl-1.0.1c
14         ./Configure dist
15         make CC=/tmp/my-android-toolchain/bin/arm-linux-androideabi-gcc AR="/tmp/my-android-toolchain/bin/arm-linux-androideabi-ar r" RANLIB=/tmp/my-android-toolchain/bin/arm-linux-androideabi-ranlib
16
17 - Clone and cross-compile tinc:
18
19         git clone git://tinc-vpn.org/tinc
20         cd tinc
21         autoreconf -fsi
22         CC=/tmp/my-android-toolchain/bin/arm-linux-androideabi-gcc ./configure --host=arm-linux --disable-lzo --with-openssl-lib=$HOME/android/openssl-1.0.1c --with-openssl-include=$HOME/android/openssl-1.0.1c/include/
23         make -j5