ROS中的编译问题 "catkin_make" must be invoked in the root of workspace

当我在catkin_ws目录下用catkin_make 编译的时候出现一下错误:

The specified base path "/home/username/catkin_ws" contains a package but "catkin_make" must be invoked in the root of workspace

我的错误原因是之前在编译某个包的时候,把生成的CMakeLists.txt和package.xml文件放到这catkin_ws目录下了,应该删除这两个文件

,catkin_ws目录下只需要三个文件夹就可以了build, devel, src

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章