錯誤代碼:
The specified base path “/home/ubuntu/catkin_ws” contains a CMakeLists.txt but “catkin_make” must be invoked in the root of workspace…..
出現這種情況的原因是catkin_init_workspacce的時候,出現下面這句:
Creating symlink “/home/ubuntu/catkin_ws/CMakeLists.txt” pointing to “/opt/ros/indigo/share/catkin/cmake/toplevel.cmake”
将目前工作空間下的CMakeLists.txt與/ros/下的cmake做了連結
解決方法:
unlink /home/ubuntu/catkin_ws/CMakeLists.txt
參考:
http://answers.ros.org/question/252980/catkin_make-fail-must-be-invoked-in-the-root-of-workspace/