Changes between Version 201 and Version 202 of AndroidPort
- Timestamp:
- Feb 6, 2012, 3:54:19 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v201 v202 190 190 }}} 191 191 === Installing dependencies === 192 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.192 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. 193 193 194 194 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 $ ./build-android.sh ~/android/android-ndk-r5-crystax-2 209 209 }}} 210 Copy the resulting headers and library files into the `usr` directory in the toolchain's SYSROOT:210 Copy the resulting headers and library files into the `usr` directory in the toolchain's sysroot: 211 211 212 212 {{{ … … 366 366 $ make install 367 367 }}} 368 !SpiderMonkey.369 370 368 FCollada. 369 370 === Spidermonkey === 371 Get [http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2 android-ndk-r4c-0moz3]. 372 373 Get js-1.8.5. 374 375 Get NSPR. 376 377 First, regenerate configure in the js dir: 378 379 {{{ 380 cd $moz/js/src && autoconf2.13 381 }}} 382 383 384 Then create a nspr directory, configure nspr, and build it: 385 386 {{{ 387 cd $out 388 mkdir nspr 389 cd nspr 390 $moz/nsprpub/configure \ 391 --target=arm-android-eabi \ 392 --with-android-ndk=$NDK 393 make -s 394 }}} 395 396 397 Then do the same for JS, telling it where to find the NSPR you just built: 398 399 {{{ 400 cd $out 401 mkdir js 402 cd js 403 $moz/js/src/configure \ 404 --target=arm-android-eabi \ 405 --with-android-ndk=$NDK \ 406 --with-nspr-cflags=-I$out/nspr/dist/include/nspr \ 407 --with-nspr-libs='-L$out/nspr/dist/lib -lnspr4 -lplc4 -lplds4' \ 408 --with-endian=little \ 409 --with-arm-kuser 410 make -s 411 }}} 412 413 414 415 416 371 417 372 418 === Building the game === 373 419 The native library (i.e. the actual game) is built using the standard Premake build system as follows. 374 420 375 ''(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.) '' '421 ''(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.) '' 376 422 377 423 Download the game from SVN to any location, e.g.: