configure does not recognize androideabi

我的未来我决定 提交于 2019-12-03 18:28:41

问题


I am trying to compile a library using android-ndk-r5 standalone toolchain and autotools. When doing a ./configure, it fails with:

$ ./configure --host=arm-linux-androideabi
...snip...
checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized
configure: error: /bin/sh ./config.sub arm-linux-androideabi failed

Explicitly setting CC and CXX does not work either (configure says to use --host).

The NDK docs and various materials online seems to indicate that using the standalone toolchain in this manner should be possible. What is wrong here? and how can I resolve it? (besides simply ditching autoconf and going back to Android.mk)


回答1:


You might need a newer config.sub and config.guess, 2010-05-20 or later.




回答2:


You can get the newer config.sub and config.guess from here

I took the newest from both, but that lead to errors, so I took the mentioned ones of Peter Eisentraut's date.




回答3:


You can also grab config.sub and config.guess from the Ubuntu autotools-dev package:

sudo apt-get install autotools-dev
cp /usr/share/misc/config.{sub,guess} .


来源:https://stackoverflow.com/questions/4594736/configure-does-not-recognize-androideabi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!