第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

“ / usr / bin / ld:找不到-lz”

“ / usr / bin / ld:找不到-lz”

人到中年有點(diǎn)甜 2019-12-25 10:55:57
我正在嘗試在Ubuntu 10.04下編譯Android源代碼。我收到一個(gè)錯(cuò)誤消息,/ usr / bin / ld:找不到-lz你能告訴我如何解決嗎?什么cannot find -lz意思 這是完整的錯(cuò)誤消息:external/qemu/Makefile.android:1101: warning: overriding commands for target `external/qemu/android/avd/hw-config-defs.h'external/qemu/Makefile.android:933: warning: ignoring old commands for target `external/qemu/android/avd/hw-config-defs.h'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 -lzcollect2: ld returned 1 exit statusmake: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1和我的GCC版本輸出:scheung@scheung-virtual-box:/media/EXTDIV/mydroid$ gcc --versiongcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3Copyright (C) 2009 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.我已經(jīng)安裝了zlib1g-dev庫(kù):$ sudo apt-get install zlib1g-dev Reading package lists... DoneBuilding dependency tree       Reading state information... Donezlib1g-dev is already the newest version.
查看完整描述

3 回答

?
元芳怎么了

TA貢獻(xiàn)1798條經(jīng)驗(yàn) 獲得超7個(gè)贊

我只是遇到了這個(gè)問(wèn)題,并且與公認(rèn)的解決方案“您的make文件已損壞”和“主機(jī)包含絕不應(yīng)該包含在交叉編譯中”相反


android構(gòu)建包含SDK用來(lái)構(gòu)建android應(yīng)用的許多主機(jī)可執(zhí)行文件。就我而言,make在構(gòu)建zipalign時(shí)停止了,該過(guò)程用于在安裝到android設(shè)備上之前優(yōu)化apk。


安裝lib32z1-dev解決了我的問(wèn)題,您可以在Ubuntu下使用以下命令進(jìn)行安裝:


sudo apt-get install lib32z1-dev


查看完整回答
反對(duì) 回復(fù) 2019-12-25
  • 3 回答
  • 0 關(guān)注
  • 1997 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)