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

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