/not-qix

Primary LanguageC++

Building prerequisites

Building for linux

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make

Building for windows

See this for instructions on cross-compiling dependent libraries.

mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/mingw-w64.toolchain.cmake ..
make

Building for android

After checking out:

cd android
android update project -p . --target 2
mkdir src

The argument for --target should be the id of an Android target with at least API level 19 (android list target may be useful).

To build the native library:

mkdir build
cd build
ANDROID_NDK=~/opt/android-ndk-r10e ANDROID_NATIVE_API_LEVEL=19 cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_ABI=armeabi -DCMAKE_BUILD_TYPE=Debug ..
make

ANDROID_NDK should point to your local NDK root, of course. The ANDROID_ABI=armeabi option will build the library for ARMv5TE with SW floating point (without it, the library will be built for ARMv7 with HW floating point and crash on the emulator).

To build the APK:

cd android
ant debug