Changes between Version 215 and Version 216 of AndroidPort
- Timestamp:
- Feb 8, 2012, 1:22:52 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v215 v216 200 200 201 201 {{{ 202 $ SDK=$HOME/android/android-sdk-linux/ 202 203 $ NDK=$HOME/android/android-ndk-r5-crystax-2 203 204 $ TOOLCHAIN=$HOME/android/toolchain 204 }}} 205 206 205 $ SYSROOT=$TOOLCHAIN/sysroot 206 }}} 207 207 Download the !MysticTreeGames [https://github.com/MysticTreeGames/Boost-for-Android/tarball/master port of the Boost C++ Libraries] to the working directory and unpack it there, e.g.: 208 208 … … 219 219 220 220 {{{ 221 $ ./build-android.sh ~/android/android-ndk-r5-crystax-2221 $ ./build-android.sh $NDK 222 222 }}} 223 223 Copy the resulting headers and library files into the `usr` directory in the toolchain's sysroot: 224 224 225 225 {{{ 226 $ cp -r build/* ~/android/toolchain/sysroot/usr/226 $ cp -r build/* $SYSROOT/usr/ 227 227 }}} 228 228 Spidermonkey is designed to build against an older version of the NDK than that of our main compiler toolchain. Download [http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2 Mozilla's own toolchain] to the working directory and then unpack it there, e.g.: … … 258 258 $ BUILDCONF=i686-pc-linux-gnu 259 259 $ export ARCH=armv7-a 260 $ export SYSROOT=$ TOOLCHAIN/sysroot260 $ export SYSROOT=$SYSROOT 261 261 $ export PATH=$PATH:$TOOLCHAIN/bin:$SYSROOT/usr/local/bin 262 262 $ export CROSS_COMPILE=arm-linux-androideabi