编译android 4.0.3时找不到-ltinfo

发布于 2025-01-01 05:13:08 字数 765 浏览 1 评论 0原文

您好,我在编译 ICS 的 Android 源代码时遇到了无法解决的问题。构建到达某个阶段,然后我收到消息:

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../libtinfo.a when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/libtinfo.a when searching for -ltinfo
/usr/bin/ld: cannot find -ltinfo
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1
make: *** Waiting for unfinished jobs....

我已尝试更新/安装 libncurses5-dev 和 libtinfo-dev,它们都是最新版本,但现在有点卡住了。我怎样才能摆脱这个问题以使构建正常进行?

Hi I have got a problem that I can't solve when compiling the android source for ICS. The build gets to a certain stage, then I get the message:

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../libtinfo.a when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/libtinfo.a when searching for -ltinfo
/usr/bin/ld: cannot find -ltinfo
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1
make: *** Waiting for unfinished jobs....

I have tried updating/installing libncurses5-dev and libtinfo-dev which were both latest versions and am a bit stuck now. How can I get rid of this to allow the build to happen properly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

浸婚纱 2025-01-08 05:13:08

在 64 位 ubuntu 上编译时,我也遇到过类似的姜饼问题。它通过安装 lib32ncurses5-dev 及其依赖项(包括 lib32tinfo5-dev)得到修复。使用 android 编译的主机 adb 可执行文件是 32 位可执行文件。

I had seen similar issue with gingerbread when compiled on 64bit ubuntu. It got fixed with installation of lib32ncurses5-dev and its dependencies which includes lib32tinfo5-dev. The compiled host adb executable with android is a 32-bit executable.

糖粟与秋泊 2025-01-08 05:13:08

我在我的 fedora 16 64 位、相同的 android 分支 4.0.3 r1 上看到了同样的问题
你可能想尝试 ncurses-devel.i686
yum install ncurses-devel.i686

它解决了我的问题

I have seen same problem on my fedora 16 64bit, same android branch 4.0.3 r1
you might want to try ncurses-devel.i686
yum install ncurses-devel.i686

it solved my problem

晚风撩人 2025-01-08 05:13:08

我在静态构建 mysql 时遇到了这个问题。所以我必须安装这些库的静态版本。例如我确实运行了:

yum search ncurses

然后我安装了,

yum install ncurses-static # not exactly the same syntax, but something similar; see search command's output

I got this issue while I was building mysql statically. So I had to install the static versions of these libraries. For example I did run:

yum search ncurses

Then I installed,

yum install ncurses-static # not exactly the same syntax, but something similar; see search command's output
思念绕指尖 2025-01-08 05:13:08

这可能适用于 Fedora 23

dnf install ncurses-devel

This might work in Fedora 23

dnf install ncurses-devel

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文