From 6d3623485678fb7de85e031a650cce57e29bf4eb Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 15 Oct 2012 01:09:56 +0200 Subject: [PATCH] Update Android install docs. --- doc/install.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/install.html b/doc/install.html index cbf33f6c..ab2cdda5 100644 --- a/doc/install.html +++ b/doc/install.html @@ -407,15 +407,18 @@ make HOST_CC="gcc -m32" CROSS=mipsel-linux-

You can cross-compile for Android (ARM) using the » Android NDK. The environment variables need to match the install locations and the -desired target platform. E.g. Android 2.2 corresponds to ABI level 8: +desired target platform. E.g. Android 4.0 corresponds to ABI level 14. +For details check the files docs/STANDALONE-TOOLCHAIN.html and +docs/STABLE-APIS.html in the NDK directory.

 NDK=/opt/android/ndk
-NDKABI=8
-NDKVER=$NDK/toolchains/arm-linux-androideabi-4.4.3
+NDKABI=14
+NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6
 NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi-
+NDKARCH="-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8"
 NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
-make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF"
+make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF $NDKARCH"
 

You can cross-compile for iOS 3.0+ (iPhone/iPad) using the » iOS SDK.