-- Configuring incomplete, errors occurred! See also "/home/zhanghb/Desktop/ImageTool/build-ImageTool-Desktop_Qt_5_9_1_GCC_64bit-Default/CMakeFiles/CMakeOutput.log". CMake Error at CMakeLists.txt:153 (install): install TARGETS given no RUNTIME DESTINATION for executable target "ImageTool". 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 *** cmake process exited with exit code 1.
时间: 2024-02-28 12:58:01 浏览: 595
90SeriesG_V3_User_manual-096-43101-02
这是一个 CMake 配置错误。根据错误日志,您没有为可执行目标“ImageTool”指定“RUNTIME DESTINATION”选项,导致无法安装该目标。要解决此问题,请在 CMakeLists.txt 文件中为该目标添加以下代码:
```
install(TARGETS ImageTool RUNTIME DESTINATION bin)
```
此外,错误日志还指出 ZLIB_LIBRARY 变量未设置或设置为 NOTFOUND。请确保在 CMakeLists.txt 文件中正确设置了该变量。如果已设置但仍然出现问题,请检查 ZLib 库是否已正确安装并设置了正确的路径。
阅读全文