-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBuildInstruction.txt
executable file
·35 lines (26 loc) · 1.09 KB
/
BuildInstruction.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
1) At first for building we need linux-console
2) Install Android sdk&ndk (i unpacked it into ~/sdk directory)
http://developer.android.com/ndk/downloads/index.html
https://developer.android.com/sdk/index.html
for run android environment i create and use simple script setenv-android.sh
#!/bin/sh
export PATH=~/android/android-ndk-r11c:$PATH
export PATH=~/android/android-sdk-linux/tools:$PATH
export PATH=~/android/android-sdk-linux/build-tools/23.0.3:$PATH
now we can run android build environment via console
. setenv-android.sh
Now via Android SDK Manager (for call sdk manager via console type android). We 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 freespace2 sources
git clone git://github.com/lubomyr/freespace2
Copy folder freespace2 into ~/androidsdl/project/jni/application
// Now we can build project (apk)
cd ~/androidsdl
./build.sh freespace2