编译android 4.0.3时找不到-ltinfo
您好,我在编译 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在 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.
我在我的 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
我在静态构建 mysql 时遇到了这个问题。所以我必须安装这些库的静态版本。例如我确实运行了:
然后我安装了,
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:
Then I installed,
这可能适用于 Fedora 23
dnf install ncurses-devel
This might work in Fedora 23
dnf install ncurses-devel