问题描述
我跟着从说明此处。经过 $回购同步
我试图用 $建造它使
,但得到这个错误:
I followed instructions from here. After $ repo sync
I tried to build it with $ make
, but got this error:
host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1
使用Ubuntu 10.04 LTS。任何帮助AP preciated。
Using Ubuntu 10.04 LTS. Any help appreciated.
UPD:我发现了一个discussion,该索赔,这个问题可能是因为我有我的32位系统的64位库。
UPD: I found a discussion, that claims, that problem could be that I'm having 64bit libs on my 32bit system.
$ ls -l /usr/lib/libz.so
lrwxrwxrwx 1 root root 20 2010-07-07 17:08 /usr/lib/libz.so -> /lib/libz.so.1.2.3.3
$ file /lib/libz.so.1.2.3.3
/lib/libz.so.1.2.3.3: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
我如何计算出,如果libz.so.1.2.3.3是正确的lib和在情况下,我必须把它与正确的更换,我怎么办呢?
How do I figure out, if that libz.so.1.2.3.3 is the right lib, and in case I have to replace it with the right one, how do I do it?
此外, $拱
说,我有一个i686的架构。机,我使用的是联想ThinkPad SL500与Core 2 Duo处理器。
Also, $ arch
says, I have an i686 architecture. Machine, I'm using is Lenovo ThinkPad SL500 with Core 2 DUO CPU.
推荐答案
一切正常,现在的解决方案是安装lib64z1-dev的:
Everything works now, the solution was to install lib64z1-dev:
sudo apt-get install lib64z1-dev
编辑:现在还有另外一个问题,与ClearSilver,描述的和终于解决了here.
now there's another problem, with ClearSilver, described here and finally resolved here.
这篇关于Android编译失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!