Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how does configure file find the correct cross-compile tools?

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

like image 575
Maadiah Avatar asked Jan 19 '26 20:01

Maadiah


1 Answers

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

like image 126
RzR Avatar answered Jan 21 '26 13:01

RzR