Changes between Version 119 and Version 120 of AndroidPort


Ignore:
Timestamp:
Jan 16, 2012, 6:27:38 AM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v119 v120  
    1313 1. Rock.
    1414
    15 The port is very much a work-in-progress. If you are technically inclined and want to help out, follow the steps under the [http://trac.wildfiregames.com/wiki/AndroidPort#Implementation Implementation] section below, read the error output generated by `ndk-build`, and suggest solutions here or [http://www.wildfiregames.com/forum/index.php?showtopic=15436&view=getnewpost&hl=&fromsearch=1 on the forum].
     15The port is very much a work-in-progress. If you are technically inclined and want to help out, follow the steps under the [http://trac.wildfiregames.com/wiki/AndroidPort#Implementation Implementation] section below, read the error output generated by `ndk-build`, and suggest solutions here or [http://www.wildfiregames.com/forum/index.php?showtopic=15436&view=getnewpost&hl=&fromsearch=1 on the forum].
    1616
    1717== Target devices ==
     
    134134$ mkdir ~/android
    135135}}}
    136 Google publishes a Native Development Kit (NDK), which is a set of tools for building native applications for the Android platform. Unfortunately, the official NDK does not and will not support the `std::wstring` (wide characters) datatype, which is required by the game, so we'll have to use the unofficial Crystax NDK, which is merely an extension of the official NDK adding support for wide characters and other features maligned by Google.
    137 
    138136Next, [http://developer.android.com/sdk/installing.html install the Android SDK]. Download the SDK package from [http://developer.android.com/sdk/index.html this page] to the working directory and then unpack it there, e.g.:
    139137
     
    149147A window with installable packages should open. In addition to any packages checked by default, make sure 'Android SDK Platform-tools' is checked and click 'Install packages'.
    150148
    151 You also need to install the Android NDK (!r4 or later). Download the NDK package from [http://developer.android.com/sdk/ndk/index.html this page] to the working directory and then unpack there, e.g.:
    152 
    153 {{{
    154 $ cd ~/android
    155 $ tar -xvf android-ndk-r7-linux-x86.tar.bz2
     149Google publishes a [http://developer.android.com/sdk/ndk/index.html Native Development Kit] (NDK), which is a set of tools for building native applications for the Android platform. Unfortunately, the official NDK does not and will not support the `std::wstring` (wide characters) datatype, which is required by the game, so we'll have to use the unofficial Crystax NDK, which is merely an extension of the official NDK adding support for wide characters and other features maligned by Google.
     150
     151Download the NDK package from [http://www.crystax.net/android/ndk.php this page] (!r4 or later) to the working directory and then unpack there, e.g.:
     152
     153{{{
     154$ cd ~/android
     155$ tar -xvf android-ndk-r7-crystax-4-linux-x86.tar.bz2
    156156}}}
    157157You also must install a Java Development Kit (JDK) if you haven't already, e.g. [https://apps.ubuntu.com/cat/applications/oneiric/default-jdk/ the standard JDK from Ubuntu Software Center]:
     
    274274{{{
    275275$ cd ~/android/0ad/
    276 $ ~/android/android-ndk-r7/ndk-build
    277 }}}
     276$ ~/android/android-ndk-r7-crystax-4/ndk-build
     277}}}