1 # Quick how-to cross compile MeshLink for Android
3 - Download the *latest* Android NDK for your OS from https://developer.android.com/ndk/downloads
4 - Unzip the NDK in a suitable location, for example `/usr/local`
5 - Create a standalone toolchain using the NDK, like so:
7 /usr/local/android-ndk-rXXX/build/toold/make-standalone-toolchain.sh --install-dir=/tmp/my-android-toolchain
9 - Clone and cross-compile MeshLink:
11 git clone git://meshlink.io/meshlink
14 CC=/tmp/my-android-toolchain/bin/arm-linux-androideabi-gcc CXX=/tmp/my-android-toolchain/bin/arm-linux-androideabi-g++ ./configure --host=arm-linux-androideabi