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