User Tools

Site Tools


development:compiling:player:android

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
development:compiling:player:android [2015/03/20 08:38] – Fix a git clone forgetting 78.219.24.142development:compiling:player:android [2016/04/01 17:33] (current) – remove boost fdelapena
Line 6: Line 6:
 ==== a) Install the Android SDK ==== ==== a) Install the Android SDK ====
  
-Download et follow the official instructions to install the Android SDK :+Download and follow the official instructions to install the Android SDK :
 http://developer.android.com/sdk/installing/index.html?pkg=tools http://developer.android.com/sdk/installing/index.html?pkg=tools
  
-In the SDK directory, execute the "android" file, it displays a GUI. Use it to download the API 10 (or later).+In the SDK directory, execute the "android" file, it displays a GUI. Use it to download the API 12 (or later).
 If you want to launch the application on a Virtual Machine, download the ARM EABI System Image. If you want to launch the application on a Virtual Machine, download the ARM EABI System Image.
  
Line 39: Line 39:
  ndk-build  ndk-build
  cp obj/local/armeabi-v7a/*.a libs/armeabi-v7a/  cp obj/local/armeabi-v7a/*.a libs/armeabi-v7a/
- wget http://download.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.gz 
- tar xf boost_1_55_0.tar.gz 
- cp -r boost_1_55_0/boost/ include/boost/ 
  ## Compile icu  ## Compile icu
  # Native  # Native
Line 65: Line 62:
   
 ===== 2) Build the Android Port ===== ===== 2) Build the Android Port =====
-Return to your working directory (which should contains the android-toolchain directory)+Return to your working directory (which should contain the android-toolchain directory)
  
 Export the android-toolchain directory, it should be : Export the android-toolchain directory, it should be :
Line 76: Line 73:
  keytool -genkey -v -keystore easyrpg.keystore -alias nightly -keyalg RSA -keysize 2048 -validity 10000  keytool -genkey -v -keystore easyrpg.keystore -alias nightly -keyalg RSA -keysize 2048 -validity 10000
 Export the path of the generated keystore. Export the path of the generated keystore.
- export PATH_KEYSTORE=($pwd)/easyrpg.keystore+ export PATH_KEYSTORE=$(pwd)/easyrpg.keystore
 And the password you gave when you generated the keystore : And the password you gave when you generated the keystore :
  export MDP=the_password  export MDP=the_password
Line 93: Line 90:
  git clone https://github.com/Ghabry/timidity_gus.git assets/timidity  git clone https://github.com/Ghabry/timidity_gus.git assets/timidity
  
-You have to specify the API Target you will use to build the Player, for now we use the API 10, use "android list targets" to know the number associated with installed API. We assume this number is 1 :+You have to specify the API Target you will use to build the Player, for now we use the API 12, use "android list targets" to know the number associated with installed API. We assume this number is 1 :
  android update project --path "." --target 1  android update project --path "." --target 1
 +NB : We're targeting API 12 (to have gamepad support from SDL lib), but the minimum supported SDK is API 10.
  
 Build the project : Build the project :
development/compiling/player/android.1426840696.txt.gz · Last modified: 2015/03/20 08:38 by 78.219.24.142

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki