Changes between Version 214 and Version 215 of AndroidPort
- Timestamp:
- Feb 8, 2012, 12:36:55 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v214 v215 179 179 $ sudo apt-get install default-jdk 180 180 }}} 181 Make sure [http://ant.apache.org/ Ant], [http://subversion.tigris.org/ Subversion]and Autoconf 2.13 is installed:181 Make sure [http://ant.apache.org/ Ant], [http://subversion.tigris.org/ Subversion] and Autoconf 2.13 is installed: 182 182 183 183 {{{ … … 189 189 $ sudo apt-get install ia32-libs 190 190 }}} 191 Finally, download the game sources from SVN , e.g.:191 Finally, download the game sources from SVN to any location, e.g.: 192 192 193 193 {{{ 194 194 $ svn co http://svn.wildfiregames.com/public/ps/trunk/ ~/android/0ad-game 195 195 }}} 196 197 198 196 === Installing dependencies === 199 197 The 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. 200 198 199 First 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 201 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.: 202 208 … … 222 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.: 223 229 224 Get js-1.8.5. 225 226 Apply [https://gist.github.com/1754817 this patch] somehow. 230 Apply [https://gist.github.com/1754817 this patch] somehow to libraries/spidermonkey/js-1.8.5. 227 231 228 232 Now regenerate configure in the js dir: 229 233 230 234 {{{ 231 cd js-1.8.5/js/src232 autoconf2.13235 $ cd js-1.8.5/js/src 236 $ autoconf2.13 233 237 }}} 234 238 Then create a js directory, configure js, and build it: 235 239 236 240 {{{ 237 cd $SYSROOT/usr/238 mkdir js239 cd js240 $ 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 \ 241 245 --target=arm-android-eabi \ 242 246 --with-android-ndk=$NDK \ … … 246 250 --disable-shared \ 247 251 --enable-static 248 make -s252 $ make -s 249 253 }}} 250 254 Set up the environment for cross-compiling using the standalone toolchain: … … 253 257 $ HOSTCONF=arm-eabi-linux 254 258 $ BUILDCONF=i686-pc-linux-gnu 255 $ NDK=$HOME/android/android-ndk-r5-crystax-2256 $ TOOLCHAIN=$HOME/android/toolchain257 259 $ export ARCH=armv7-a 258 260 $ export SYSROOT=$TOOLCHAIN/sysroot