问题描述
我正在尝试使用 android-ndk-r5 独立工具链和自动工具编译一个库.进行 ./configure 时,失败并显示:
$ ./configure --host=arm-linux-androideabi……剪……检查主机系统类型...无效配置arm-linux-androideabi":系统androideabi"无法识别配置:错误:/bin/sh ./config.sub arm-linux-androideabi 失败显式设置 CC 和 CXX 也不起作用(配置说使用 --host).
NDK 文档和各种在线资料似乎表明以这种方式使用独立工具链应该是可能的.这里有什么问题?我该如何解决?(除了简单地放弃 autoconf 并返回 Android.mk)
您可能需要更新的 config.sub
和 config.guess
, 2010-05-20 或稍后.
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)
You might need a newer config.sub
and config.guess
, 2010-05-20 or later.
这篇关于配置不识别androideabi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!