[Android] Battle of Wesnoth. 1) Répertoire de travail :
[~] ➔ mkdir ANDROID.wesnoth
[~] ➔ cd ANDROID.wesnoth/
2) Téléchargement du code source :
[~/ANDROID.wesnoth] ➔ wget https://sourceforge.net/projects/wesnoth-on-android/files/1.12.5/Wesnoth-1.12.5-20151127.tar.gz
[~/ANDROID.wesnoth] ➔ tar xvfz Wesnoth-1.12.5-20151127.tar.gz
3) Installation du SDK :
[~/ANDROID.wesnoth] ➔ wget https://dl-ssl.google.com/android/android-sdk_r17-linux.tgz
[~/ANDROID.wesnoth] ➔ tar xvfz android-sdk_r17-linux.tgz
[~/ANDROID.wesnoth] ➔ android-sdk-linux/tools/android
Android SDK Build-tools : 17
Android SDK Build-tools : 14
Android 4.2.2 (API 17)
Android 4.0 (API 14)
4) Installation du NDK :
[~/ANDROID.wesnoth] ➔ wget http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86.tar.bz2
[~/ANDROID.wesnoth] ➔ tar xvfj android-ndk32-r10-linux-x86.tar.bz2
5) Initialisation des variables d'environnement :
export PATH=${PATH}:/home/util01/ANDROID.wesnoth/android-sdk-linux/tools/
export PATH=${PATH}:/home/util01/ANDROID.wesnoth/android-sdk-linux/platform-tools
export PATH=${PATH}:/home/util01/ANDROID.wesnoth/android-ndk-r10
export ANDROID_HOME=/home/util01/ANDROID.wesnoth/android-sdk-linux/
6) Compilation du jeu :
[~/ANDROID.wesnoth] ➔ cd Wesnoth-1.12.5/
[~/ANDROID.wesnoth/Wesnoth-1.12.5] ➔
[~/ANDROID.wesnoth/Wesnoth-1.12.5] ➔ ./build.sh
7) Vérification :
[~/ANDROID.wesnoth/Wesnoth-1.12.5] ➔ ls -lh bin/*.apk
-rw-rw-r-- 1 util01 util01 16M mars 15 21:58 bin/MainActivity-debug.apk
-rw-rw-r-- 1 util01 util01 16M mars 15 21:58 bin/MainActivity-debug-unaligned.apk
8) Liens : http://www.alessandropira.org/bfw_android/get.html https://sourceforge.net/projects/wesnoth-on-android/files/