catkin_make问题: The build space at ‘/home/lufeng/Documents/test/catkin_ws/build’ was previously built
时间: 2023-09-20 17:06:07 浏览: 357
catkin_ws
5星 · 资源好评率100%
引用\[1\]和\[2\]中提到了解决这个问题的方法,即使用以下指令来清除之前构建的build空间并重新初始化:
1. catkin clean
2. catkin init
引用\[3\]中提到了使用catkin_make的等效指令来构建catkin工作空间:
1. 进入catkin工作空间的src目录:cd ~/catkin_ws/src
2. 初始化工作空间:catkin_init_workspace
3. 返回上一级目录:cd ..
4. 创建build目录:mkdir build
5. 进入build目录:cd build
6. 使用cmake命令生成构建文件:cmake ../src -DCMAKE_INSTALL_PREFIX=../install -DCATKIN_DEVEL_PREFIX=../devel
7. 使用make命令进行编译:make
所以,你可以尝试使用上述方法来解决catkin_make问题中提到的build空间已经被之前的catkin_make构建过的问题。
#### 引用[.reference_title]
- *1* [catkin_make问题: The build space at ‘/home/lufeng/Documents/test/catkin_ws/build’ was previously built](https://blog.csdn.net/qq_42735696/article/details/112801451)[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^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [ROS学习记录](https://blog.csdn.net/weixin_33566282/article/details/103651890)[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^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文