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 14:10:33 浏览: 69
这是一个 CMake 配置错误。根据错误日志,您的项目依赖于 ZLib 库,但是 CMake 无法找到该库的位置。请确保已经正确安装 ZLib 库,并且在 CMakeLists.txt 文件中已正确设置 ZLIB_LIBRARY 和 ZLIB_INCLUDE_DIR 变量。如果已经设置但仍然出现问题,请检查这些变量的路径是否正确,并且尝试将 ZLib 库的路径添加到系统环境变量中。如果问题仍然存在,请提供更多信息以便更好地解决问题。
相关问题
Running "/usr/bin/cmake /home/zhanghb/Desktop/ImageTool/ImageTool '-GCodeBlocks - Unix Makefiles'" in /home/zhanghb/Desktop/ImageTool/build-ImageTool-Desktop_Qt_5_9_1_GCC_64bit-Default. -- Configuring done -- Generating done -- Build files have been written to: /home/zhanghb/Desktop/ImageTool/build-ImageTool-Desktop_Qt_5_9_1_GCC_64bit-Default
这是一个 CMake 配置成功的日志。根据日志,CMake 已经成功生成了 Makefile 文件,并将其写入到 /home/zhanghb/Desktop/ImageTool/build-ImageTool-Desktop_Qt_5_9_1_GCC_64bit-Default 目录中。这意味着您可以使用 make 命令来编译和构建您的项目了。在编译和构建期间,Makefile 文件将使用 CMake 生成的配置信息来生成可执行文件。
mount --bind /oem/usr/bin/product_test /oem/usr/bin/easyipc
mount --bind命令用于将一个目录挂载到另一个目录,使得两个目录内容相同。在你提供的命令中,将目录"/oem/usr/bin/product_test"挂载到目录"/oem/usr/bin/easyipc"。
这样做的效果是,当你在"/oem/usr/bin/easyipc"目录下查看文件时,实际上是查看"/oem/usr/bin/product_test"目录下的文件。任何对"/oem/usr/bin/product_test"目录的操作都会反映在"/oem/usr/bin/easyipc"目录中。
这种挂载方式通常用于创建一个目录的别名,方便访问或者共享文件。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)