diff options
| author | Mike Pall <mike> | 2012-10-17 14:23:29 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2012-10-17 14:23:29 +0200 |
| commit | f1fe96e7efa8d0e84a297c5ea9d58fe06f7a260f (patch) | |
| tree | 1508fa663ff0823fbbbf4c1fcde81333c055fe97 /doc | |
| parent | e32cc2a0dcaa9ae080dfa2e687f2146606a5c9ba (diff) | |
| download | luajit-f1fe96e7efa8d0e84a297c5ea9d58fe06f7a260f.tar.gz luajit-f1fe96e7efa8d0e84a297c5ea9d58fe06f7a260f.tar.bz2 luajit-f1fe96e7efa8d0e84a297c5ea9d58fe06f7a260f.zip | |
Extended Android build instructions.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/install.html | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/doc/install.html b/doc/install.html index c74a57c7..7d8636d2 100644 --- a/doc/install.html +++ b/doc/install.html | |||
| @@ -405,20 +405,49 @@ make HOST_CC="gcc -m32" CROSS=mips-linux- | |||
| 405 | make HOST_CC="gcc -m32" CROSS=mipsel-linux- | 405 | make HOST_CC="gcc -m32" CROSS=mipsel-linux- |
| 406 | </pre> | 406 | </pre> |
| 407 | <p> | 407 | <p> |
| 408 | You can cross-compile for <b id="android">Android (ARM)</b> using the <a href="http://developer.android.com/sdk/ndk/index.html"><span class="ext">»</span> Android NDK</a>. | 408 | You can cross-compile for <b id="android">Android</b> using the <a href="http://developer.android.com/sdk/ndk/index.html"><span class="ext">»</span> Android NDK</a>. |
| 409 | The environment variables need to match the install locations and the | 409 | The environment variables need to match the install locations and the |
| 410 | desired target platform. E.g. Android 4.0 corresponds to ABI level 14. | 410 | desired target platform. E.g. Android 4.0 corresponds to ABI level 14. |
| 411 | For details check the files <tt>docs/STANDALONE-TOOLCHAIN.html</tt> and | 411 | For details check the folder <tt>docs</tt> in the NDK directory. |
| 412 | <tt>docs/STABLE-APIS.html</tt> in the NDK directory. | 412 | </p> |
| 413 | <p> | ||
| 414 | Only a few common variations for the different CPUs, ABIs and platforms | ||
| 415 | are listed. Please use your own judgement for which combination you want | ||
| 416 | to build/deploy or which lowest common denominator you want to pick: | ||
| 413 | </p> | 417 | </p> |
| 414 | <pre class="code"> | 418 | <pre class="code"> |
| 419 | # Android/ARM, armeabi (ARMv5TE soft-float), Android 2.2+ (Froyo) | ||
| 420 | NDK=/opt/android/ndk | ||
| 421 | NDKABI=8 | ||
| 422 | NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6 | ||
| 423 | NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi- | ||
| 424 | NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm" | ||
| 425 | make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" | ||
| 426 | |||
| 427 | # Android/ARM, armeabi-v7a (ARMv7 VFP), Android 4.0+ (ICS) | ||
| 415 | NDK=/opt/android/ndk | 428 | NDK=/opt/android/ndk |
| 416 | NDKABI=14 | 429 | NDKABI=14 |
| 417 | NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6 | 430 | NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6 |
| 418 | NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi- | 431 | NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi- |
| 419 | NDKARCH="-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8" | ||
| 420 | NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm" | 432 | NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm" |
| 433 | NDKARCH="-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8" | ||
| 421 | make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF $NDKARCH" | 434 | make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF $NDKARCH" |
| 435 | |||
| 436 | # Android/MIPS, mips (MIPS32R1 hard-float), Android 4.0+ (ICS) | ||
| 437 | NDK=/opt/android/ndk | ||
| 438 | NDKABI=14 | ||
| 439 | NDKVER=$NDK/toolchains/mipsel-linux-android-4.6 | ||
| 440 | NDKP=$NDKVER/prebuilt/linux-x86/bin/mipsel-linux-android- | ||
| 441 | NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-mips" | ||
| 442 | make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" | ||
| 443 | |||
| 444 | # Android/x86, x86 (i686 SSE3), Android 4.0+ (ICS) | ||
| 445 | NDK=/opt/android/ndk | ||
| 446 | NDKABI=14 | ||
| 447 | NDKVER=$NDK/toolchains/x86-4.6 | ||
| 448 | NDKP=$NDKVER/prebuilt/linux-x86/bin/i686-linux-android- | ||
| 449 | NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-x86" | ||
| 450 | make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" | ||
| 422 | </pre> | 451 | </pre> |
| 423 | <p> | 452 | <p> |
| 424 | You can cross-compile for <b id="ios">iOS 3.0+</b> (iPhone/iPad) using the <a href="http://developer.apple.com/devcenter/ios/index.action"><span class="ext">»</span> iOS SDK</a>. | 453 | You can cross-compile for <b id="ios">iOS 3.0+</b> (iPhone/iPad) using the <a href="http://developer.apple.com/devcenter/ios/index.action"><span class="ext">»</span> iOS SDK</a>. |
