As per the comment of the commit when this file was added suggests, I'm using Android-CMake.
I invoke it like this:
Code: Select all
cd Chipmunk2D/
cmake -DCMAKE_TOOLCHAIN_FILE=../android-cmake/android.toolchain.cmake \
-DANDROID_NDK=~/ndk \
-DCMAKE_BUILD_TYPE=Release \
-DANDROID_ABI="armeabi" .
cmake --build .
It seems that the resulting .a is not compiled for Android, but for my local host because when linking for Android ld complains "no archive symbol table (run ranlib)" and there are errors to undefined references to Chipmunk2D functions.
How do you build Chipmunk2D for Android using CMake?