Version 3 (modified by sam, 9 years ago) (diff)

clarify that the last step is for build bots

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 to PATH.

Autobuilder configuration (build bots only)

Add the following section to the bitten machine file:

[ndk]
version = 8b