配置不识别androideabi [英] configure does not recognize androideabi

查看:50
本文介绍了配置不识别androideabi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 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.subconfig.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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆