Changes between Version 126 and Version 127 of AndroidPort


Ignore:
Timestamp:
Jan 17, 2012, 10:59:44 PM (12 years ago)
Author:
Philip Taylor
Comment:

building with Premake

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v126 v127  
    165165$ sudo apt-get install ant subversion
    166166}}}
     167
     168On 64-bit Ubuntu you may need to install some 32-bit libraries:
     169{{{
     170$ sudo apt-get install ia32-libs
     171}}}
     172
    167173=== Setting up an Android project ===
    168174All data that is to be compiled and packaged into the Android application must be assembled in an Android ''project''.
     
    276282$ ~/android/android-ndk-r7-crystax-4/ndk-build
    277283}}}
     284
     285=== Alternative approach ===
     286Build 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{{{
     295ln -s /usr/include/boost ~/android/toolchain/sysroot/usr/include/
     296ln -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{{{
     301HOSTTYPE=arm ./update-workspaces.sh --gles
     302
     303PATH=~/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.