You can use the following trick: download agcc , then compile your library with ./configure CC=agcc CXX=agcc --host=arm-linux-androideabi && make . After that, create a simple jni/Android.mk as follows:
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := jni.cpp
After that, you can create your library using the ndk-build script.
source share