Changes between Version 53 and Version 54 of AndroidPort


Ignore:
Timestamp:
Jan 4, 2012, 6:26:42 PM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v53 v54  
    105105
    106106= Implementation =
    107 This section will detail all the steps necessary to build the game for Android, so anyone can replicate it.
     107The 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.
    108108
    109 == Setting up your workstation ==
     109== Setting up your workstation  ==
    110110For 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:
    111111
     
    122122
    123123{{{
    124 $ cd ~/android/android-sdk-linux
    125 $ ./android
     124$ ~/android/android-sdk-linux/android
    126125}}}
    127126A 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'.
     
    130129
    131130If 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 git
    137 }}}
    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/source
    142 $ cd ~/android/source
    143 $ repo init -u https://android.googlesource.com/platform/manifest
    144 $ repo sync
    145 }}}
    146 The download may take up towards an hour.