- 錯誤代碼:
The specified base path “/home/ghy/catkin_qt” contains a CMakeLists.txt but “catkin_make” must be invoked in the root of workspace…..
出現這種情況的原因是在catkin_qt目錄下運行下catkin_init_workspacce初始化工作空間,出現下面這句:
Creating symlink “/home/ghy/catkin_qt/CMakeLists.txt” pointing to “/opt/ros/indigo/share/catkin/cmake/toplevel.cmake”
將當前工作空間下的CMakeLists.txt與/ros/下的cmake做了鏈接
解決方法:
unlink /home/ghy/catkin_qt/CMakeLists.tx
原文鏈接:https://blog.csdn.net/u013294888/article/details/69696956
- catkin_make 尚未安裝,錯誤代碼:
但安裝時顯示已安裝
出現這種情況的原因是環境變量沒有配置好。
解決辦法:
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
catkin_init_workspace