Changes between Version 53 and Version 54 of AndroidPort
- Timestamp:
- Jan 4, 2012, 6:26:42 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v53 v54 105 105 106 106 = Implementation = 107 Th is section will detail all the steps necessary to build the game for Android, so anyone can replicate it.107 The Android VM allows applications to call methods implemented in native code through the [http://docs.oracle.com/javase/7/docs/technotes/guides/jni/index.html JNI]. This means we have to produce a native shared library implements the game as a set of methods which can be called from a Java wrapper application. 108 108 109 == Setting up your workstation ==109 == Setting up your workstation == 110 110 For everything else than actually running the application, we will use a PC workstation. This section will assume your workstation runs Ubuntu Linux, but the steps should be relatively easy to adapt to other platforms. Begin by setting up a working directory for the project: 111 111 … … 122 122 123 123 {{{ 124 $ cd ~/android/android-sdk-linux 125 $ ./android 124 $ ~/android/android-sdk-linux/android 126 125 }}} 127 126 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'. … … 130 129 131 130 If you intend to do any development, you may want to install [https://apps.ubuntu.com/cat/applications/oneiric/eclipse-platform/ Eclipse] and the [http://developer.android.com/sdk/eclipse-adt.html#installing Android Development Tools (ADT) plugin for Eclipse]. If you only intend to build the game, the tools provided by the SDK should be sufficient. 132 133 Now get the Android source code, as you will need its header files to compile custom shared libraries. First make sure `git` is installed on your machine:134 135 {{{136 $ sudo apt-get install git137 }}}138 Then [http://source.android.com/source/downloading.html install Google's Repo tool]. Once Repo is installed in your path, create a new directory and download the code:139 140 {{{141 $ mkdir ~/android/source142 $ cd ~/android/source143 $ repo init -u https://android.googlesource.com/platform/manifest144 $ repo sync145 }}}146 The download may take up towards an hour.