zlib missing on target

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

zlib missing on target

2,945 Views
johanw
Contributor II

Hi

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 "buildme.sh" script to build the CPAN modules(https://github.com/Logitech/slimserver-vendor/tree/public/7.7/CPAN) 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:

zlib

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.

Regards

Johan

Labels (3)
Tags (4)
2 Replies

2,020 Views
johanw
Contributor II

If I make the question more simple.

Why can't I find libz.a on target even if zlib is added to the "IMAGE_INSTALL_append" variable?

0 Kudos
Reply

2,020 Views
johanw
Contributor II

I added staticdev-pkgs to the IMAGE_FEATURES variable like this;

IMAGE_FEATURES += "staticdev-pkgs"

Is there a way to only add staticdev packages for zlib?

My image is now 200MB larger.


0 Kudos
Reply