Difference between revisions of "Compiling ScummVM/Android-SDL"

From ScummVM :: Wiki
Jump to navigation Jump to search
(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/...")
(No difference)

Revision as of 16:06, 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

  1. !/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