Difference between revisions of "Compiling ScummVM/Android-SDL"
(Created page with "1. You need linux-console 2. Install Android sdk&ndk (unpack it into ~/android directory) http://developer.android.com/ndk/downloads/index.html https://developer.android.com/...") |
|||
Line 1: | Line 1: | ||
1. You need linux-console | 1. You need linux-console | ||
2. Install Android sdk&ndk (unpack it into ~/android directory) | 2. Install Android sdk&ndk (unpack it into ~/android directory) | ||
http://developer.android.com/ndk/downloads/index.html | http://developer.android.com/ndk/downloads/index.html | ||
https://developer.android.com/sdk/index.html | https://developer.android.com/sdk/index.html | ||
to run android environment you can create simple script setenv-android.sh | to run android environment you can create simple script setenv-android.sh | ||
#!/bin/sh | |||
<code>#!/bin/sh | |||
export PATH=~/android/android-ndk-r12b:$PATH | export PATH=~/android/android-ndk-r12b:$PATH | ||
export PATH=~/android/android-sdk-linux/tools:$PATH | export PATH=~/android/android-sdk-linux/tools:$PATH | ||
export PATH=~/android/android-sdk-linux/build-tools/24.0.2:$PATH | |||
export PATH=~/android/android-sdk-linux/build-tools/24.0.2:$PATH</code> | |||
run this script via console | run this script via console | ||
. setenv-android.sh | |||
<code>. setenv-android.sh</code> | |||
Now via Android SDK Manager (for call sdk manager via console type android). You need download latest version: | Now via Android SDK Manager (for call sdk manager via console type android). You need download latest version: | ||
Android SDK Tools | Android SDK Tools | ||
Android SDK Platform-tools | Android SDK Platform-tools | ||
Android SDL Build tools | Android SDL Build tools | ||
Android 6.0 (API 23) | Android 6.0 (API 23) | ||
+SDK Platform (API 23) | +SDK Platform (API 23) | ||
3. Install pelya's libSDL-environment | 3. Install pelya's libSDL-environment | ||
cd ~ | |||
git clone git://github.com/pelya/commandergenius androidsdl | <code>cd ~ | ||
git clone git://github.com/pelya/commandergenius androidsdl</code> | |||
4. download scummvm sources | 4. download scummvm sources | ||
<code> | |||
cd ~ | cd ~ | ||
git clone https://github.com/scummvm/scummvm | git clone https://github.com/scummvm/scummvm</code> | ||
5. replace pelya's scummvm config to config from scummvm dists | 5. replace pelya's scummvm config to config from scummvm dists | ||
<code> | |||
cd ~/androidsdl/project/jni/application | cd ~/androidsdl/project/jni/application | ||
rm -fr scummvm | rm -fr scummvm | ||
ln -s ~/scummvm/dists/androidsdl/scummvm scummvm | ln -s ~/scummvm/dists/androidsdl/scummvm scummvm</code> | ||
6. You have to replace one line in file AndroidAppSettings.cfg ( ~/androidsdl/project/jni/application/scummvm) | 6. You have to replace one line in file AndroidAppSettings.cfg ( ~/androidsdl/project/jni/application/scummvm) | ||
AppVersionCode=@ANDROID_VERSIONCODE@ | |||
<code>AppVersionCode=@ANDROID_VERSIONCODE@ | |||
to | to | ||
AppVersionCode=16 | AppVersionCode=16</code> | ||
7. Now you can build project (apk) | 7. Now you can build project (apk) | ||
cd ~/androidsdl | |||
./build.sh scummvm | <code>cd ~/androidsdl | ||
./build.sh scummvm</code> |
Revision as of 16:17, 18 September 2016
1. You need linux-console
2. Install Android sdk&ndk (unpack it into ~/android directory)
http://developer.android.com/ndk/downloads/index.html
https://developer.android.com/sdk/index.html
to run android environment you can create simple script setenv-android.sh
#!/bin/sh
export PATH=~/android/android-ndk-r12b:$PATH
export PATH=~/android/android-sdk-linux/tools:$PATH
export PATH=~/android/android-sdk-linux/build-tools/24.0.2:$PATH
run this script via console
. setenv-android.sh
Now via Android SDK Manager (for call sdk manager via console type android). You need download latest version:
Android SDK Tools
Android SDK Platform-tools
Android SDL Build tools
Android 6.0 (API 23)
+SDK Platform (API 23)
3. Install pelya's libSDL-environment
cd ~
git clone git://github.com/pelya/commandergenius androidsdl
4. download scummvm sources
cd ~
git clone https://github.com/scummvm/scummvm
5. replace pelya's scummvm config to config from scummvm dists
cd ~/androidsdl/project/jni/application
rm -fr scummvm
ln -s ~/scummvm/dists/androidsdl/scummvm scummvm
6. You have to replace one line in file AndroidAppSettings.cfg ( ~/androidsdl/project/jni/application/scummvm)
AppVersionCode=@ANDROID_VERSIONCODE@
to
AppVersionCode=16
7. Now you can build project (apk)
cd ~/androidsdl
./build.sh scummvm