Changes between Version 213 and Version 214 of AndroidPort
- Timestamp:
- Feb 7, 2012, 11:36:14 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v213 v214 179 179 $ sudo apt-get install default-jdk 180 180 }}} 181 Finally, make sure [http://ant.apache.org/ Ant] and [http://subversion.tigris.org/ Subversion]is installed:182 183 {{{ 184 $ sudo apt-get install ant subversion 181 Make sure [http://ant.apache.org/ Ant], [http://subversion.tigris.org/ Subversion] and Autoconf 2.13 is installed: 182 183 {{{ 184 $ sudo apt-get install ant subversion autoconf2.13 185 185 }}} 186 186 On 64-bit Ubuntu you may need to install some 32-bit libraries: … … 189 189 $ sudo apt-get install ia32-libs 190 190 }}} 191 Finally, download the game sources from SVN, e.g.: 192 193 {{{ 194 $ svn co http://svn.wildfiregames.com/public/ps/trunk/ ~/android/0ad-game 195 }}} 196 197 191 198 === Installing dependencies === 192 199 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. … … 213 220 $ cp -r build/* ~/android/toolchain/sysroot/usr/ 214 221 }}} 215 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.:222 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.: 216 223 217 224 Get js-1.8.5. 218 225 219 Apply [https://gist.github.com/1754817 this patch]somehow.226 Apply [https://gist.github.com/1754817 this patch] somehow. 220 227 221 228 Now regenerate configure in the js dir: … … 392 399 The native library (i.e. the actual game) is built using the standard Premake build system as follows. 393 400 394 ''(Note: You currently need to reset your environment if it is still set up for cross-compiling from the previous section. Close any open terminal windows and open a new one.) '' 395 396 Download the game from SVN to any location, e.g.: 397 398 {{{ 399 $ svn co http://svn.wildfiregames.com/public/ps/trunk/ ~/android/0ad-game 400 }}} 401 ''(Note: You currently need to reset your environment if it is still set up for cross-compiling from the previous section. Close any open terminal windows and open a new one.)'' 402 401 403 Build the game as normal, but with: 402 404