ROS编译基本错误不定时更新
- 1、Could NOT find SDL_image (missing:SDL_IMAGE_LIBRARIES SDL_IMAGE_INCLUDE_DIRS)
- 2、Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)
- 3、Could NOT find Bullet (missing: BULLET_DYNAMICS_LIBRARY
- 4、Could not find a package configuration file provided by "OpenCV" with any of the following names:
- 5、改变ubuntu进入系统grub引导等待时间
- 6、Unable to find SuiteSparse
- 7、 Could not find libg2o!
1、Could NOT find SDL_image (missing:SDL_IMAGE_LIBRARIES SDL_IMAGE_INCLUDE_DIRS)
解决如下:
sudo apt-get install libsdl-image1.2-dev
2、Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)
解决如下:
sudo apt-get install libsdl1.2-dev
3、Could NOT find Bullet (missing: BULLET_DYNAMICS_LIBRARY
解决如下:
rosdep where-defined bullet
sudo apt-get install libbullet-dev
4、Could not find a package configuration file provided by “OpenCV” with any of the following names:
问题描述:
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
解决如下:
首先使用指令搜索OpenCVConfig.cmake文件的路径:
locate OpenCVConfig.cmake
然后,在CmakeLists.txt中添加:
set(OpenCV_DIR home/lee/opencv)
说明:home/lee/opencv 为OpenCVConfig.cmake所在路径
5、改变ubuntu进入系统grub引导等待时间
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
解决如下:
将timeout = ?;?为开机等待的时间,如果在两个timeout中不知道是哪一个,那就全改为timeout = 0;0零代表开机不进行grud引导,直接进入系统。
if [ "${recordfail}" = 1 ] ; then
set timeout=0
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
6、Unable to find SuiteSparse
CMake Error at teb_local_planner-melodic/cmake_modules/FindSUITESPARSE.cmake:131 (MESSAGE):
Unable to find SuiteSparse
Call Stack (most recent call first):
teb_local_planner-melodic/CMakeLists.txt:35 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/lee/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/lee/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:5232: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
解决如下:
sudo apt-get install libsuitesparse-dev
7、 Could not find libg2o!
CMake Error at teb_local_planner-melodic/cmake_modules/FindG2O.cmake:85 (message):
Could not find libg2o!
Call Stack (most recent call first):
teb_local_planner-melodic/CMakeLists.txt:36 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/lee/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/lee/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:5232: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
解决如下:
sudo apt-get install ros-kinetic-libg2o