Help needed to build ICS

Search This thread

donjamal

Senior Member
Hi!

Im trying to build ICS rom but i got this error and cant complete the compile.

host Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt)
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt] Error 1

someone can help me?
thanks

__________________
DJ
 

N00BY0815

Senior Member
Nov 6, 2011
2,528
1,897
Maybe this command is wrong? -lz or like agent said, the path might be incorrect...
 

donjamal

Senior Member
Thank you guyz i will try all of your ideas... anyway i installed zlib but doesnt work. Maybe i need uninstall and install it again. The prob is ive never used ubuntu before but im gonna try :) hope i can do it. I will post here the results!

Sent from my LG-P970 using XDA App
 

DiederikC

Senior Member
Sep 28, 2011
909
847
Thank you guyz i will try all of your ideas... anyway i installed zlib but doesnt work. Maybe i need uninstall and install it again. The prob is ive never used ubuntu before but im gonna try :) hope i can do it. I will post here the results!

Sent from my LG-P970 using XDA App

Goodluck ! :)
 

donjamal

Senior Member
host StaticLib: libpng (out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a)
host Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt)
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt]

still got it :(

i installed everything
 
Last edited:

redy2006

Senior Member
May 20, 2008
957
568
Indonesia
First, you didn't mention what version of your Ubuntu, 32/64bit? But AFAIK 32bit won't work, so it can only built with 64bit Ubuntu based. Many tutorial how to prepare build environment, so what to do first is to make sure that all component/library are prepared...

http://xdaforums.com/showthread.php?t=1354865
http://mjanja.co.ke/2011/11/building-android-4-0-on-ubuntu-11-10/
http://forums.androidcentral.com/hacking/144804-how-compile-ics-aosp-4-0-3-xoom-gnex-nexus-s.html

Last words, GOOD LUCK mate.. ;)
 

1aca

Senior Member
Jan 14, 2012
170
34
You need zlib, yes, but development package of zlib. Your problem is that the linker (ld) cannot find z library to compile the source.

Sent from my LG-P970 using XDA App

If it gets to the linker, then the headers are already there - the development package is most likely installed.

What you need is the 32 bit zlib if you're on 64 bit.
 

Top Liked Posts