-
Notifications
You must be signed in to change notification settings - Fork 0
instructions to build
I have tried compiling the code with ndk-r8b - http://developer.android.com/tools/sdk/ndk/index.html. I used standalone toolchain for this (check the docs/STANDALONE-TOOLCHAIN.html).
After cloning this repo to the android project, just run ndk-build, it should create shared library under libs/armeabi.
If you run into some issues, try setting the following env vars.
export PATH=$NDK_TOOLCHAIN_ROOT/bin:/home/sshi/android-tools/android-sdk-linux/tools:/home/sshi/android-ndk-r8b:$PATH export LDFLAGS=$NDK_TOOLCHAIN_ROOT/sysroot/usr/lib:$NDK_TOOLCHAIN_ROOT/arm-linux-androideabi/lib
export CPPFLAGS=$NDK_TOOLCHAIN_ROOT/sysroot/usr/include:$NDK_TOOLCHAIN_ROOT/arm-linux-androideabi/include: $NDK_TOOLCHAIN_ROOT/include:$NDK_TOOLCHAIN_ROOT/lib/gcc/arm-linux-androideabi/4.4.3/include:$NDK_TOOLCHAIN_ROOT/arm-linux-androideabi/include/c++/4.4.3
export CFLAGS=$NDK_TOOLCHAIN_ROOT/sysroot/usr/include:$NDK_TOOLCHAIN_ROOT/arm-linux-androideabi/include: $NDK_TOOLCHAIN_ROOT/include:$NDK_TOOLCHAIN_ROOT/lib/gcc/arm-linux-androideabi/4.4.3/include
where NDK_TOOLCHAIN_ROOT points to the root of standalone toolchain.
Enjoy!