Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 922 Bytes

Android.md

File metadata and controls

41 lines (28 loc) · 922 Bytes

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.