aboutsummaryrefslogtreecommitdiffstats
path: root/Android.md
blob: 115d53007c815dc3441e6ee2f16f973a4263fc30 (plain)
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

How To Rebuild OpenAL-soft for Android

This was completed on a Debian Squeeze 6 system. This produces an ARMv6 libopenal.so file ready to be used with Jogamp's JOAL on Android devices.

Prequisites

Here is the necessary tools needed

We'll suppose the NDK is installed in ~/android-ndk-r8d/:

export ANDROID_NDK=~/android-ndk-r8d/

Clone the OpenAL repository

git clone git://repo.or.cz/openal-soft.git
 or
git clone git://jogamp.org/srv/scm/openal-soft.git

Add the toolchain.android.cmake

Included in git://jogamp.org/srv/scm/openal-soft.git at cmake/toolchain.android.cmake.

Build

cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain.android.cmake -DANDROID_API_LEVEL=9
make

The result should be available in the "build" directory.