diff options
Diffstat (limited to 'Android.md')
-rw-r--r-- | Android.md | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Android.md b/Android.md new file mode 100644 index 00000000..115d5300 --- /dev/null +++ b/Android.md @@ -0,0 +1,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 + +* git +* latest Android NDK (http://dl.google.com/android/ndk/android-ndk-r8d-linux-x86.tar.bz2) +* CMake (2.8) + +We'll suppose the NDK is installed in ~/android-ndk-r8d/: + +```bash +export ANDROID_NDK=~/android-ndk-r8d/ +``` + + +## Clone the OpenAL repository + +```bash +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 + +```bash +cd build +cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain.android.cmake -DANDROID_API_LEVEL=9 +make +``` + +The result should be available in the "build" directory. |