-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
32 lines (19 loc) · 1.32 KB
/
README
File metadata and controls
32 lines (19 loc) · 1.32 KB
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
This is a Android SDL project for building Spearmint (a modified ioquake3 engine).
Currently this might not be working. SDL2 doesn't seem to work on my Android device (Droid) and the apk created here seems to fail in the emulator.
Tested with Android SDK (with API 10 tools), Android NDK r8d, and JDK (openjdk-6-jdk package on Debian and Ubuntu).
SDL requires API 10 or later. Android NDK r8d was latest when I started this, later versions may work.
To build Spearmint for Android do the following;
Symlink or hg clone SDL2 into jni/SDL
Symlink or git clone spearmint's android branch into jni/spearmint
Edit local.properties and set the path to your Android SDK.
Create jni/spearmint/Makefile.local with the following:
ANDROID_NDK_DIR=/path/to/android-ndk-r8d
Run the following:
make -C jni/spearmint COMPILE_PLATFORM=android COMPILE_ARCH=armeabi
make -C jni/spearmint COMPILE_PLATFORM=android COMPILE_ARCH=armeabi-v7a
make -C jni/spearmint COMPILE_PLATFORM=android COMPILE_ARCH=x86
make -C jni/spearmint COMPILE_PLATFORM=android COMPILE_ARCH=mips
(If you don't want to build all of them, edit jni/Application.mk so that ndk-build won't error when they're missing.)
Run Android NDK r8d ndk-build, i.e. /path/to/android-ndk-r8d/ndk-build
Run 'ant debug'
Now you should have bin/SpearmintActivity-debug.apk which can be installed and tested.