201 | | 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. |
| 201 | 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. |
| 202 | |
| 203 | First we need to set up the environment for cross-compiling using the standalone toolchain: |
| 204 | |
| 205 | {{{ |
| 206 | $ export HOSTCONF=arm-unknown-linux-gnu |
| 207 | $ export CROSS_COMPILE=arm-linux-androideabi |
| 208 | $ export CC=${CROSS_COMPILE}-gcc |
| 209 | $ export CXX=${CROSS_COMPILE}-g++ |
| 210 | }} |