catkin_make错误解决方法


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

  1. catkin_make 尚未安装,错误代码:

    但安装时显示已安装

    出现这种情况的原因是环境变量没有配置好。
    解决办法:
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
catkin_init_workspace


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM