AnsweredAssumed Answered

zlib missing on target

Question asked by Johan Wadefalk on Feb 26, 2014
Latest reply on Feb 28, 2014 by Johan Wadefalk



I have a wandboard-quad and try to build CPAN modules for logitech media server on target.

The BSP I used is the fsl-community-bsp-platform (dora branch).


From my local.conf:

IMAGE_INSTALL_append = " bash rsync nano zlib packegroup-core-buildessential test squeeze perl alsa-lib libmad libvorbis faad2 mpg123"


I bitbake the image "core-image-base".


I use a "" script to build the CPAN modules( on target.

The compilation fails on libpng-1.4.3 complaining about missing zlib:



configure:11370: checking for libVersion in -lz

configure:11395: gcc -o conftest -fPIC -O3 -fPIC -O3 conftest.c -lz -lm >&5

/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.1/../../../../arm-poky-linux-gnueabi/bin/ld: cannot find -lz

collect2: error: Id returned 1 exit status




It looks like the zlib-devel is missing. I have tried to find a devel package with bitbake -s but the only packages related to zlib are:



nativesdk-zlib (what is this?)

zlib-native (what is this?)


I don't know how to add nativesdk-zlib and zlib-native to my local.conf. Is this required?

I hope someone can help a beginner on Linux and Yocto.