make Scanning dependencies of target cmsys CMake Error: Cannot open file for write: /home/GPU_Project/ARM-Mali-G72/Software_packet/DDK-Compile_Tool/cmake/cmake-3.8.1/Source/kwsys/CMakeFiles/cmsys.dir/depend.make.tmp CMake Error: : System Error: Permission denied make[2]: *** [Source/kwsys/CMakeFiles/cmsys.dir/build.make:544: Source/kwsys/CMakeFiles/cmsys.dir/depend] Error 2 make[1]: *** [CMakeFiles/Makefile2:1027: Source/kwsys/CMakeFiles/cmsys.dir/all] Error 2 make: *** [Makefile:163: all] Error 2
时间: 2023-07-29 22:05:50 浏览: 188
这个错误提示是权限不足导致的。你可以尝试使用 sudo 命令来执行编译命令,或者修改文件夹的权限。具体解决方法可以参考以下步骤:
1. 使用 sudo 命令执行编译命令,例如:
```
sudo make
```
2. 修改文件夹的权限,例如:
```
sudo chmod -R 777 /home/GPU_Project/ARM-Mali-G72/Software_packet/DDK-Compile_Tool/cmake/cmake-3.8.1
```
注意:修改文件夹权限可能会存在安全风险,请谨慎操作。
相关问题
[ 2%] Generating dynamic reconfigure files from cfg/Depth.cfg: /home/ubuntu/new_workspace/devel/include/depthimage_to_laserscan/DepthConfig.h /home/ubuntu/new_workspace/devel/lib/python2.7/dist-packages/depthimage_to_laserscan/cfg/DepthConfig.py Generating reconfiguration files for Depth in depthimage_to_laserscan Wrote header file in /home/ubuntu/new_workspace/devel/include/depthimage_to_laserscan/DepthConfig.h [ 2%] Built target depthimage_to_laserscan_gencfg Scanning dependencies of target lslidar_serial_x10 [ 2%] Building CXX object lsx10/lslidar_x10_driver/CMakeFiles/lslidar_serial_x10.dir/src/lsiosr.cpp.o [ 2%] Linking CXX shared library /home/ubuntu/new_workspace/devel/lib/liblslidar_serial_x10.so [ 2%] Built target lslidar_serial_x10 Scanning dependencies of target lslidar_input_x10 [ 2%] Building CXX object lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/src/input.cc.o In file included from /home/ubuntu/new_workspace/src/lsx10/lslidar_x10_driver/src/input.cc:18:0: /home/ubuntu/new_workspace/src/lsx10/lslidar_x10_driver/include/lslidar_x10_driver/input.h:32:10: fatal error: pcap.h: No such file or directory #include <pcap.h> ^~~~~~~~ compilation terminated. lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/build.make:62: recipe for target 'lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/src/input.cc.o' failed make[2]: *** [lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/src/input.cc.o] Error 1 CMakeFiles/Makefile2:10548: recipe for target 'lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/all' failed make[1]: *** [lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 2%] Linking CXX shared library /home/ubuntu/new_workspace/devel/lib/libDepthImageToLaserScan.so [ 2%] Built target DepthImageToLaserScan [ 2%] Linking CXX shared library /home/ubuntu/new_workspace/devel/lib/libsba.so [ 2%] Built target sba Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed
在这段编译日志中,出现了编译错误。具体来说,这个错误是由于缺少 pcap.h 文件导致的。可以看到,在编译 input.cc 文件时,出现了类似 "fatal error: pcap.h: No such file or directory" 的错误提示。这个错误提示表明编译器找不到 pcap.h 文件,可能是因为这个文件没有正确安装或者路径设置有误导致的。
要解决这个问题,需要先确认 pcap.h 文件是否已经安装,并且路径是否已经正确设置。如果没有安装,可以使用相关的包管理器进行安装,例如在 Ubuntu 系统上可以使用命令 "sudo apt-get install libpcap-dev" 进行安装。如果已经安装,可以尝试设置相关的环境变量,例如设置 CMAKE_INCLUDE_PATH 和 CMAKE_LIBRARY_PATH 等变量,以便让编译器能够正确找到 pcap.h 文件。在这个例子中,可以尝试在 CMakeLists.txt 文件中添加如下的语句:
```
include_directories(/usr/include)
link_directories(/usr/lib)
```
其中 /usr/include 和 /usr/lib 分别是 pcap.h 文件所在的路径和 pcap 库所在的路径。这样设置之后,重新编译代码即可。
15:58:08: 为项目CTK执行步骤 ... 15:58:08: Persisting CMake state... 15:58:19: 正在启动 "D:\BaiduNetdiskDownload\cmake-3.16.0-win64-x64\bin\cmake.exe" --build . --target all Scanning dependencies of target Log4Qt [ 4%] Creating directories for 'Log4Qt' [ 8%] Performing download step (git clone) for 'Log4Qt' Cloning into 'Log4Qt'... fatal: unable to access 'https://github.com/MEONMedical/Log4Qt.git/': OpenSSL SSL_read: Connection was reset, errno 10054 Cloning into 'Log4Qt'... fatal: unable to access 'https://github.com/MEONMedical/Log4Qt.git/': OpenSSL SSL_read: Connection was reset, errno 10054 Cloning into 'Log4Qt'... fatal: unable to access 'https://github.com/MEONMedical/Log4Qt.git/': Failed to connect to github.com port 443: Timed out -- Had to git clone more than once: 3 times. CMake Error at Log4Qt-cmake/tmp/Log4Qt-gitclone.cmake:31 (message): Failed to clone repository: 'https://github.com/MEONMedical/Log4Qt.git' NMAKE : fatal error U1077: “D:\BaiduNetdiskDownload\cmake-3.16.0-win64-x64\bin\cmake.exe”: 返回代码“0x1” Stop. NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"”: 返回代码“0x2” Stop. NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"”: 返回代码“0x2” Stop. 15:59:23: 进程"D:\BaiduNetdiskDownload\cmake-3.16.0-win64-x64\bin\cmake.exe"退出,退出代码 2 。 Error while building/deploying project CTK (kit: cmake-3.16.0) The kit cmake-3.16.0 has configuration issues which might be the root cause for this problem. When executing step "CMake Build"
根据提供的日志信息,你的CMake构建过程中遇到了与克隆 'Log4Qt' 项目相关的问题。错误提示表明无法访问 'https://github.com/MEONMedical/Log4Qt.git/',并且出现了连接复位、连接超时等错误。
这个问题可能是由于以下原因导致的:
1. 网络问题:你的网络连接可能存在问题,***
阅读全文