CMake Error at /opt/bstos/2.2.2.4/sysroots/aarch64-bst-linux/opt/ros/melodic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
时间: 2023-08-21 18:03:21 浏览: 172
根据引用和引用的信息,问题出现在CMake Error at /opt/ros/melodic/share/catkin/cmake/safe_execute_process.cmake:11 (message)这一行。这个错误可能与包的依赖关系有关。在引用中提到了一个解决方法,即在package.xml文件中将'catkin'添加为buildtool的依赖项。你可以按照以下步骤进行操作:
1. 打开终端,并进入到ROS工作空间的src目录下:
```
cd ~/catkin_ws/src
```
2. 打开package.xml文件:
```
sudo gedit package.xml
```
3. 在<buildtool_depend>标签中添加'catkin':
```
<buildtool_depend>catkin</buildtool_depend>
```
4. 保存并关闭package.xml文件。
然后,你可以重新运行catkin_make命令进行编译,应该可以通过了。请确保根据你的ROS版本进行相应的安装。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):](https://blog.csdn.net/qq_42170079/article/details/118558386)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:116 (message):catkin_package](https://blog.csdn.net/qq_45950023/article/details/121816434)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文