Changes between Version 215 and Version 216 of AndroidPort


Ignore:
Timestamp:
Feb 8, 2012, 1:22:52 AM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v215 v216  
    200200
    201201{{{
     202$ SDK=$HOME/android/android-sdk-linux/
    202203$ NDK=$HOME/android/android-ndk-r5-crystax-2
    203204$ TOOLCHAIN=$HOME/android/toolchain
    204 }}}
    205 
    206 
     205$ SYSROOT=$TOOLCHAIN/sysroot
     206}}}
    207207Download 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.:
    208208
     
    219219
    220220{{{
    221 $ ./build-android.sh ~/android/android-ndk-r5-crystax-2
     221$ ./build-android.sh $NDK
    222222}}}
    223223Copy the resulting headers and library files into the `usr` directory in the toolchain's sysroot:
    224224
    225225{{{
    226 $ cp -r build/* ~/android/toolchain/sysroot/usr/
     226$ cp -r build/* $SYSROOT/usr/
    227227}}}
    228228Spidermonkey 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.:
     
    258258$ BUILDCONF=i686-pc-linux-gnu
    259259$ export ARCH=armv7-a
    260 $ export SYSROOT=$TOOLCHAIN/sysroot
     260$ export SYSROOT=$SYSROOT
    261261$ export PATH=$PATH:$TOOLCHAIN/bin:$SYSROOT/usr/local/bin
    262262$ export CROSS_COMPILE=arm-linux-androideabi