Changes between Version 119 and Version 120 of AndroidPort
- Timestamp:
- Jan 16, 2012, 6:27:38 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v119 v120 13 13 1. Rock. 14 14 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 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]. 16 16 17 17 == Target devices == … … 134 134 $ mkdir ~/android 135 135 }}} 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 138 136 Next, [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.: 139 137 … … 149 147 A 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'. 150 148 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 149 Google 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 151 Download 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 156 156 }}} 157 157 You 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]: … … 274 274 {{{ 275 275 $ cd ~/android/0ad/ 276 $ ~/android/android-ndk-r7 /ndk-build277 }}} 276 $ ~/android/android-ndk-r7-crystax-4/ndk-build 277 }}}