I'm trying to use minizip in the zlib library. I'm compiling on CentOS and got zlib using
yum -y install zlib-devel
The problem is, when compiling (and linking to the libz.so library file), it looks like I can get everything in zlib, but none of the header files or function for minizip can be found. For example, find_package(ZLIB REQUIRED)
works, and so does #include <zlib.h>
, but #include <minizip/zip.h>
returns file not found.
Following the instructions from John's blog on minizip https://nachtimwald.com/2019/09/08/making-minizip-easier-to-use/
pkg_check_modules(MZIP minizip REQUIRED)
is giving me minizip not found.
Looking at rpm -ql zlib-devel
gives
/usr/include/zlib.h
/usr/lib64/libz.so
I thought everything in minizip would just be part of libz.so? Or do I need to do something more to link to minizip? Thanks.