Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 9089  / 1 Year ago, thu, march 2, 2023, 1:02:37

I am running Ubuntu 20.04 on Windows Subsystem for linux. Cmake is version 3.16.3.
I am trying to build a project with a zlib dependency, and I get the following error...



 Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.11")
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindZLIB.cmake:115 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:1224 (find_package)


Package zlib1g is installed.



How can I rectify this?


More From » compiling

 Answers
1

This seems to be a bug in CMake: https://gitlab.kitware.com/cmake/cmake/-/issues/20127.


[#3348] Saturday, March 4, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
odyroc

Total Points: 324
Total Questions: 109
Total Answers: 103

Location: Belize
Member since Mon, Apr 17, 2023
1 Year ago
odyroc questions
;