development:compiling:player:android
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
development:compiling:player:android [2015/03/12 16:41] – created blister | development:compiling:player:android [2016/04/01 17:33] (current) – remove boost fdelapena | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======= | + | ======= |
Note : We recommend you to put the " | Note : We recommend you to put the " | ||
Line 6: | Line 6: | ||
==== a) Install the Android SDK ==== | ==== a) Install the Android SDK ==== | ||
- | Download | + | Download |
http:// | http:// | ||
- | In the SDK directory, execute the " | + | In the SDK directory, execute the " |
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 36: | Line 36: | ||
Execute this script : | Execute this script : | ||
WORKSPACE=$(pwd) | WORKSPACE=$(pwd) | ||
- | |||
# Compile easyrpg dependencies | # Compile easyrpg dependencies | ||
ndk-build | ndk-build | ||
cp obj/ | cp obj/ | ||
- | wget http:// | ||
- | tar xf boost_1_55_0.tar.gz | ||
- | cp -r boost_1_55_0/ | ||
- | |||
## Compile icu | ## Compile icu | ||
# Native | # Native | ||
Line 53: | Line 48: | ||
make | make | ||
export ICU_CROSS_BUILD=$PWD | export ICU_CROSS_BUILD=$PWD | ||
- | |||
# Android | # Android | ||
cd ../ | cd ../ | ||
- | |||
export CPPFLAGS=" | export CPPFLAGS=" | ||
export CXXFLAGS=" | export CXXFLAGS=" | ||
export CFLAGS=" | export CFLAGS=" | ||
export LDFLAGS=" | export LDFLAGS=" | ||
- | |||
chmod u+x configure | chmod u+x configure | ||
./ | ./ | ||
- | |||
mv $NDK_ROOT/ | mv $NDK_ROOT/ | ||
make | make | ||
Line 71: | Line 62: | ||
===== 2) Build the Android Port ===== | ===== 2) Build the Android Port ===== | ||
- | Return to your working directory (which should | + | Return to your working directory (which should |
Export the android-toolchain directory, it should be : | Export the android-toolchain directory, it should be : | ||
Line 82: | 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)/ | + | export PATH_KEYSTORE=$(pwd)/ |
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 | ||
+ | |||
+ | Clone the Player repository : | ||
+ | git clone https:// | ||
+ | cd Player | ||
Then execute this script : | Then execute this script : | ||
WORKSPACE=$(pwd) | WORKSPACE=$(pwd) | ||
- | |||
#Clone of liblcf | #Clone of liblcf | ||
mkdir -p lib | mkdir -p lib | ||
git clone https:// | git clone https:// | ||
- | |||
cd builds/ | cd builds/ | ||
- | |||
#Download of timidity | #Download of timidity | ||
git clone https:// | git clone https:// | ||
- | # | + | You have to specify the API Target you will use to build the Player, for now we use the API 12, use " |
- | GIT_DESCRIBE_VERSION=`git describe | cut -d - -f -2 | sed s/-/./g` | + | |
- | GIT_COMMIT_COUNT=`git rev-list HEAD --count` | + | |
- | mv AndroidManifest.xml AndroidManifest.orig.xml | + | |
- | cat AndroidManifest.orig.xml | sed -e ' | + | |
- | + | ||
- | You have to specify the API Target you will use to build the Player, for now we use the API 10, use " | + | |
android update project --path " | android update project --path " | ||
+ | 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 : | ||
Line 111: | Line 98: | ||
ant clean | ant clean | ||
ant release | ant release | ||
- | |||
cd bin | cd bin | ||
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $PATH_KEYSTORE -storepass $MDP SDLActivity-release-unsigned.apk nightly | jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $PATH_KEYSTORE -storepass $MDP SDLActivity-release-unsigned.apk nightly |
development/compiling/player/android.txt · Last modified: 2016/04/01 17:33 by fdelapena