Version 1 (modified by 11 years ago) (diff) | ,
---|
Set up a cross-build machine for Android
Downloads
- Download the Android NDK and unpack it.
Environment variables
- Set
ANDROID_NDK_ROOT
to the uncompressed NDK directory. - Set
ANDROID_NDK_ARM_TOOLCHAIN
to where the toolchain should reside, eg.$HOME/android/arm-linux-androideabi
- Run the following command:
$ANDROID_NDK_ROOT/build/tools/make-standalone-toolchain.sh \ --arch=arm --install-dir=$ANDROID_NDK_ARM_TOOLCHAIN \ --ndk-dir=$ANDROID_NDK_ROOT --platform=android-14
- Add
$ANDROID_NDK_ARM_TOOLCHAIN/bin
toPATH
.
Configuration
Add the following section to the bitten machine file:
[ndk] version = 8b