Changes between Version 162 and Version 163 of AndroidPort
- Timestamp:
- Jan 24, 2012, 8:33:03 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v162 v163 186 186 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. 187 187 188 First we need to set up the environment for cross-compiling using the standalone toolchain: 188 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.: 189 190 {{{ 191 $ cd ~/android 192 $ tar -xvf MysticTreeGames-Boost-for-Android-70838fc.tar.gz 193 }}} 194 195 Now change directory to the directory that was unpacked, e.g.: 196 197 {{{ 198 $ cd MysticTreeGames-Boost-for-Android-70838fc 199 }}} 200 201 Then 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 208 Set up the environment for cross-compiling using the standalone toolchain: 189 209 190 210 {{{ … … 222 242 }}} 223 243 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 ~/android228 $ tar -xvf MysticTreeGames-Boost-for-Android-70838fc.tar.gz229 }}}230 231 Now change directory to the directory that was unpacked, e.g.:232 233 {{{234 $ cd MysticTreeGames-Boost-for-Android-70838fc235 }}}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-2241 }}}242 243 244 === Building the game === 244 245 The native library (i.e. the actual game) is built using the standard Premake build system as follows.