转载https://blog.csdn.net/Groot_Lee/article/details/79202507
前言:
这是自己这几个月以来调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”
解决办法:git clone https://github.com/ros/cmake_modules.git
5.出现的问题:
Could not find a package configuration fileprovided by “move_base_msgs”
解决办法:git clone https://github.com/ros-planning/navigation_msgs.git
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