我正在Windows子系统(适用于Linux)上运行Ubuntu 20.04。 Cmake是3.16.3版。 我正在尝试建立一个具有zlib依赖项的项目,并且出现以下错误...
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)
错误中引用的代码行如下...
find_package(ZLIB REQUIRED)
软件包zlib1g已安装。我该如何纠正?