- 错误代码:
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