I need to port the ZThread lib to android development environment.
I followed this: http://blog.jimjh.com/compiling-open-source-libraries-with-android-ndk-part-2.html
when i set --host=arm-eabi
, the configure file checking for arm-eabi-g++
arm-eabi-c++
...,but my my cross-compile toolchain is named arm-linux-androideabi-*
;well ,when i change to --host=arm-linux-androideabi
,it says system "androideabi" not recognized,i think it is not in config.sub file.
the key is how does configure file find the correct cross-compile tools?
error message is :
checking build system type... Invalid configuration arm-linux-androideabi': system
androideabi' not recognized
EDIT: you can try to write Android.mk file for your 3rd lib, android NDK will cross compile the lib for you using the Android.mk file(work just like the makefile). There is a ZThread's Android.mk example, given by my comment