Building the Lol Engine for Android platforms

Android SDK

  • Download the SDK, unpack it to e.g. ~/android/ and optionally run the SDK and AVD manager: ./tools/android
  • Set the following environment variables (make sure the directory names match your versions):
    PATH="$PATH:$HOME/android/android-sdk-linux_86/tools"
    PATH="$PATH:$HOME/android/android-sdk-linux_86/platform-tools"
    export PATH
    
  • To run the emulator, run emulator @foo where foo is the name of the image

Android NDK

  • Download the NDK, unpack it to ~/android/.
  • Set the following environment variables (make sure the directory names match your versions):
    ANDROID_NDK_ROOT="$HOME/android/android-ndk-r9"
    ANDROID_NDK_ARM_TOOLCHAIN="$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 = 9

Notes

Last modified 10 years ago Last modified on Oct 6, 2013, 2:10:09 PM