| 284 | |
| 285 | === Alternative approach === |
| 286 | Build using the standard Premake build system thusly: |
| 287 | |
| 288 | 1. Do "Setting up your workstation" as above. |
| 289 | 1. Install a standalone toolchain: |
| 290 | {{{ |
| 291 | ~/android/android-ndk-r7-crystax-4/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=$HOME/android/toolchain |
| 292 | }}} |
| 293 | 1. Set up external libraries with the new toolchain somehow, or do an ugly hack that will at least let it start compiling enough for now: |
| 294 | {{{ |
| 295 | ln -s /usr/include/boost ~/android/toolchain/sysroot/usr/include/ |
| 296 | ln -s /usr/include/iconv.h ~/android/toolchain/sysroot/usr/include/ |
| 297 | }}} |
| 298 | 1. Download the game from SVN to any location, as normal. |
| 299 | 1. Build the game as normal, but with |
| 300 | {{{ |
| 301 | HOSTTYPE=arm ./update-workspaces.sh --gles |
| 302 | |
| 303 | PATH=~/android/toolchain/bin:$PATH CXX=arm-linux-androideabi-g++ make config=debug -k pyrogenesis |
| 304 | }}} |
| 305 | 1. See loads of build errors. |
| 306 | 1. Fix all the build errors. |
| 307 | 1. Fix the build system. |