-
Notifications
You must be signed in to change notification settings - Fork 9
/
How_to_build.txt
49 lines (36 loc) · 1.35 KB
/
How_to_build.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
1. You need 64bit linux
2. Install JDK. You can do it from apt-get tool or download from official site (in this case you must set envirnoment
value to JDK, see guides "How install JDK and set envirnoment values to JDK).
Command:
sudo apt-get install openjdk-8-jdk
3. Download and unpack Android Studio
https://developer.android.com/studio/index.html
4. run android studio
via menu Tools -> Android -> SDK-Manager download follow components:
SDK Platform (tab)
- Android 8.0 (O)
SDK Tools (tab)
- Android SDK Build-Tools
- Android SDK Platform-Tools
- Android SDK Tools
Download android NDK version r21d and unzip it into ~/Android directory
https://developer.android.com/ndk/downloads
copy path from Android SDK Location field
setup environment
export JAVA_HOME=/usr/lib/jvm/default-java
export ANDROID_HOME=~/Android/Sdk
export ANDROID_NDK_HOME=~/Android/android-ndk-r21d
export PATH=$ANDROID_NDK_HOME:$ANDROID_HOME/tools:$PATH
6. Install pelya's libSDL-environment
cd ~
git clone git://github.com/pelya/commandergenius androidsdl
cd androidsdl
git checkout c937f769c69c40857aa00fa3d8200d10c7c304df
7. download uae4arm sources
cd ~/androidsdl/project/jni/application
git clone https://github.com/lubomyr/uae4arm
cd uae4arm
. link_android_dirs.sh
// Now you can build project (apk)
cd ~/androidsdl
./build.sh uae4arm