Running "/usr/bin/cmake /home/zhanghb/Desktop/ImageTool/ImageTool '-GCodeBlocks - Unix Makefiles' -DCMAKE_CXX_COMPILER:STRING=/usr/bin/g++ -DCMAKE_C_COMPILER:STRING=/usr/bin/gcc -DCMAKE_PREFIX_PATH:STRING=/home/zhanghb/Qt5.9.1/5.9.1/gcc_64 -DQT_QMAKE_EXECUTABLE:STRING=/home/zhanghb/Qt5.9.1/5.9.1/gcc_64/bin/qmake" in /home/zhanghb/Desktop/ImageTool/build-ImageTool-Desktop_Qt_5_9_1_GCC_64bit-Default. -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: ZLIB_LIBRARY (ADVANCED) linked by target "ImageTool" in directory /home/zhanghb/Desktop/ImageTool/ImageTool -- Configuring incomplete, errors occurred! See also "/home/zhanghb/Desktop/ImageTool/build-ImageTool-Desktop_Qt_5_9_1_GCC_64bit-Default/CMakeFiles/CMakeOutput.log". *** cmake process exited with exit code 1.
时间: 2023-07-28 22:10:33 浏览: 153
Linux-Information.rar_Linux/Unix编程_Unix_Linux_
这是一个 CMake 配置错误。根据错误日志,您的项目依赖于 ZLib 库,但是 CMake 无法找到该库的位置。请确保已经正确安装 ZLib 库,并且在 CMakeLists.txt 文件中已正确设置 ZLIB_LIBRARY 和 ZLIB_INCLUDE_DIR 变量。如果已经设置但仍然出现问题,请检查这些变量的路径是否正确,并且尝试将 ZLib 库的路径添加到系统环境变量中。如果问题仍然存在,请提供更多信息以便更好地解决问题。
阅读全文