Avoid allocating packet buffers unnecessarily.
[meshlink] / README.android
1 # Quick how-to cross compile MeshLink for Android
2
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:
6
7         /usr/local/android-ndk-rXXX/build/toold/make-standalone-toolchain.sh --install-dir=/tmp/my-android-toolchain
8
9 - Clone and cross-compile MeshLink:
10
11         git clone git://meshlink.io/meshlink
12         cd meshlink
13         autoreconf -fsi
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
15         make -j$(nproc)