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': systemandroideabi' 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
you need to update config.*
http://ftp.us.debian.org/debian/pool/main/a/autotools-dev/autotools-dev_20110511.1_all.deb
cp -av /usr/share/misc/config.guess ./
cp -av /usr/share/misc/config.sub ./
check :
configure does not recognize androideabi
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With