Changes between Version 162 and Version 163 of AndroidPort


Ignore:
Timestamp:
Jan 24, 2012, 8:33:03 PM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v162 v163  
    186186The 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.
    187187
    188 First we need to set up the environment for cross-compiling using the standalone toolchain:
     188Download 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.:
     189
     190{{{
     191$ cd ~/android
     192$ tar -xvf MysticTreeGames-Boost-for-Android-70838fc.tar.gz
     193}}}
     194
     195Now change directory to the directory that was unpacked, e.g.:
     196
     197{{{
     198$ cd MysticTreeGames-Boost-for-Android-70838fc
     199}}}
     200
     201Then execute the following command to download the Boost C++ Libraries package and compile it for the target device:
     202
     203{{{
     204$ ./build-android.sh ~/android/android-ndk-r5-crystax-2
     205}}}
     206
     207
     208Set up the environment for cross-compiling using the standalone toolchain:
    189209
    190210{{{
     
    222242}}}
    223243
    224 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.:
    225 
    226 {{{
    227 $ cd ~/android
    228 $ tar -xvf MysticTreeGames-Boost-for-Android-70838fc.tar.gz
    229 }}}
    230 
    231 Now change directory to the directory that was unpacked, e.g.:
    232 
    233 {{{
    234 $ cd MysticTreeGames-Boost-for-Android-70838fc
    235 }}}
    236 
    237 Then execute the following command to download the Boost C++ Libraries package and compile it for the target device:
    238 
    239 {{{
    240 $ ./build-android.sh ~/android/android-ndk-r5-crystax-2
    241 }}}
    242 
    243244=== Building the game ===
    244245The native library (i.e. the actual game) is built using the standard Premake build system as follows.