ubuntu系統下ros系統問題的解決方法示例
前言:
這是自己這幾個月以來調ros出現的問題,有的問題是花了幾天時間來解決。由此記錄
注意:如果出現的錯誤是類似於“ Could not find a packageconfiguration file provided by "xxx_xxx_xxx"”,這說明“xxx_xxx_xxx”這個package未安裝,將“xxx_xxx_xxx”複製,然後百度,找到字尾為ROS-Wiki的標題,點選進入。找到source,如下圖:
點選進入,而後看到綠色按鈕名叫clone to download,點選,複製連結
之後開啟終端,打上git clone 你的連結,回車,OK!
(問題4和問題5正是這種錯誤)
注意:安裝自啟動的ros包upstart:
sudo apt-get install ros-kinetic-robot-upstart
1.出現的問題:
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find Bullet (missing: BULLET_DYNAMICS_LIBRARY
BULLET_COLLISION_LIBRARY BULLET_MATH_LIBRARY BULLET_SOFTBODY_LI BRARY
BULLET_INCLUDE_DIR)
解決方法:sudo apt-get install libbullet-dev
2.出現的問題:
Could NOT find SDL (missing: SDL_LIBRARYSDL_INCLUDE_DIR)
解決辦法:sudo aptitude install libsdl1.2-dev
3.出現的問題:
Could NOT find SDL_image (missing:SDL_IMAGE_LIBRARIES SDL_IMAGE_INCLUDE_DIRS)
解決辦法:sudo apt-get installlibsdl-image1.2-dev
4.出現的問題:
Could notfind a package configuration file provided by "cmake_modules"
5.出現的問題:
Could not find a package configuration fileprovided by "move_base_msgs"
6.刪除只讀檔案:chmod 777 filename
rmfilename
7.出現的問題:navigation/robot_pose_ekf/CMakeLists.txt:6(pkg_check_modules)
解決方法:sudo apt-get installros-kinetic-bfl
8.出現的問題:c++internalcompiler error:killed(program cc1plus)
解決辦法:
1) sudo dd if=/dev/zero pf=/swapfile bs=1kcount=20400
2)sudo mkswap /swapfile
3)sudo swapon /swapfile