[Libwebsockets] could not find zlib -- cmake

Andy Green andy at warmcat.com
Fri May 17 16:30:34 CEST 2013


Sorry for the delayed mail.

You probably need to install libz-devel or zlib-dev package or some variation of that depending on your distro.

-Andy

allan George <gorge.alan.sw at gmail.com> wrote:

>Hi,
>
>I am getting following error at cmake time. Do i have to install zlib
>library ?
>*cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr*
>
>-- Looking for vfork.h
>-- Looking for vfork.h - not found
>-- Looking for zlib.h
>-- Looking for zlib.h - found
>-- Looking for 4 include files stdlib.h, ..., float.h
>-- Looking for 4 include files stdlib.h, ..., float.h - found
>CMake Error at
>/var/local/rpi/rfs_raspbian/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97
>(message):
>  Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.7")
>Call Stack (most recent call first):
>
>/var/local/rpi/rfs_raspbian/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291
>(_FPHSA_FAILURE_MESSAGE)
>/var/local/rpi/rfs_raspbian/usr/share/cmake-2.8/Modules/FindZLIB.cmake:85
>(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>  CMakeLists.txt:400 (find_package)
>
>
>-- Configuring incomplete, errors occurred!
>
>
>===========================================
>
>ignite at ignite:~/rpi_package_sb2/libwebsockets/build$  whereis zlib
>zlib: /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org
>http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20130517/45960e42/attachment-0001.html>


More information about the Libwebsockets mailing list