Introduction:
I am having issue building a project with ZLib, it seem CMake does not detect properly the binaries path for the library.
Running CMake, it indicate:
Code: Select all
Relevant CMake configuration variables:
ZLIB_INCLUDE_DIR=/usr/include
ZLIB_LIBRARY=<not found>
You may use CMake GUI, cmake -D or ccmake to modify the values. Delete
CMakeCache.txt to discard all values and force full re-detection if
necessary.
Call Stack (most recent call first):
cmake/FindZlib.cmake:34 (libfind_process)
CMakeLists.txt:37 (find_package)
Trying to solve the issue by myself:
- Setting ZLIB_LIBRARY="/lib/x84_64-linux-gnu/"
- Setting ZLIB_ROOT="/lib/x84_64-linux-gnu/"
- Installing zlib1g and zlib1g:i386 to ensure is not an architecture issue.
- Reading and searching on internet, without relevant results.
- Searching for the libs, the zlib1g package from apper provides "/lib/x84_64-linux-gnu"
- Searching for libs with: find / -readable -name "*libz*so*" 2>/dev/null
Code: Select all
/usr/lib/x86_64-linux-gnu/libzvbi-chains.so.0.0.0
/usr/lib/x86_64-linux-gnu/libzvbi.so.0.13.2
/usr/lib/x86_64-linux-gnu/libzvbi-chains.so.0
/usr/lib/x86_64-linux-gnu/libzvbi.so.0
/usr/lib/x86_64-linux-gnu/vlc/plugins/access/libzip_plugin.so
/usr/lib/x86_64-linux-gnu/libzip.so.4.0.0
/usr/lib/x86_64-linux-gnu/libzip.so.4
/usr/lib/x86_64-linux-gnu/libzmq.so.5.1.1
/usr/lib/x86_64-linux-gnu/libzmq.so.5
/usr/lib/x86_64-linux-gnu/libzstd.so.1.1.2
/usr/lib/x86_64-linux-gnu/libzstd.so.1
/usr/lib/x86_64-linux-gnu/libz.so
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libzip.so
/lib/x86_64-linux-gnu/libz.so.1.2.8
/lib/x86_64-linux-gnu/libz.so.1
/lib/i386-linux-gnu/libz.so.1.2.8
/lib/i386-linux-gnu/libz.so.1
I am using Debian stretch stable, recently installed with nothing really special: Linux host-name 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux
I would appreciate help for this.
Thanks in advance.