Changes between Version 214 and Version 215 of AndroidPort


Ignore:
Timestamp:
Feb 8, 2012, 12:36:55 AM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v214 v215  
    179179$ sudo apt-get install default-jdk
    180180}}}
    181 Make sure [http://ant.apache.org/ Ant], [http://subversion.tigris.org/ Subversion] and Autoconf 2.13 is installed:
     181Make sure [http://ant.apache.org/ Ant], [http://subversion.tigris.org/ Subversion] and Autoconf 2.13 is installed:
    182182
    183183{{{
     
    189189$ sudo apt-get install ia32-libs
    190190}}}
    191 Finally, download the game sources from SVN, e.g.:
     191Finally, download the game sources from SVN to any location, e.g.:
    192192
    193193{{{
    194194$ svn co http://svn.wildfiregames.com/public/ps/trunk/ ~/android/0ad-game
    195195}}}
    196 
    197 
    198196=== Installing dependencies ===
    199197The game has a range of external dependencies. Each of these has to be compiled for the target device's processor architecture and installed in the compiler toolchain's sysroot, so we can link against them when building the game itself.
    200198
     199First set a few shell variables to the paths of tools that were installed in the previous section, e.g.:
     200
     201{{{
     202$ NDK=$HOME/android/android-ndk-r5-crystax-2
     203$ TOOLCHAIN=$HOME/android/toolchain
     204}}}
     205
     206
    201207Download 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.:
    202208
     
    222228Spidermonkey 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.:
    223229
    224 Get js-1.8.5.
    225 
    226 Apply [https://gist.github.com/1754817 this patch] somehow.
     230Apply [https://gist.github.com/1754817 this patch] somehow to libraries/spidermonkey/js-1.8.5.
    227231
    228232Now regenerate configure in the js dir:
    229233
    230234{{{
    231 cd js-1.8.5/js/src
    232 autoconf2.13
     235$ cd js-1.8.5/js/src
     236$ autoconf2.13
    233237}}}
    234238Then create a js directory, configure js, and build it:
    235239
    236240{{{
    237 cd $SYSROOT/usr/
    238 mkdir js
    239 cd js
    240 $TODO/js-1.8.5/js/src/configure \
     241$ cd $SYSROOT/usr/
     242$ mkdir js
     243$ cd js
     244$ $TODO/js-1.8.5/js/src/configure \
    241245  --target=arm-android-eabi \
    242246  --with-android-ndk=$NDK \
     
    246250  --disable-shared \
    247251  --enable-static
    248 make -s
     252$ make -s
    249253}}}
    250254Set up the environment for cross-compiling using the standalone toolchain:
     
    253257$ HOSTCONF=arm-eabi-linux
    254258$ BUILDCONF=i686-pc-linux-gnu
    255 $ NDK=$HOME/android/android-ndk-r5-crystax-2
    256 $ TOOLCHAIN=$HOME/android/toolchain
    257259$ export ARCH=armv7-a
    258260$ export SYSROOT=$TOOLCHAIN/sysroot