ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

SDL image error while building gmapping

asked 2013-07-25 00:59:18 -0600

Andrick gravatar image

updated 2014-01-28 17:17:24 -0600

ngrennan gravatar image

While building the gmapping package in my embedded system (odroid-x), i got this error:

Building CXX object CMakeFiles/image_loader.dir/src/image_loader.o /home/linaro/ros/navigation/map_server/src/image_loader.cpp:43:27: fatal error: SDL/SDL_image.h: No such file or directory

It seems that I do not have the SDL_image.h file. If i download the file, where go i have to place it in? However it run just fine in my laptop. Can anyone tell me whats the problem? Thanks!

edit retag flag offensive close merge delete


Have you solved the problem?If you have ,please tell me how to solve it .Thanks a lot.

Peter Zhao gravatar image Peter Zhao  ( 2015-05-07 08:50:15 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2015-06-15 08:55:11 -0600

zq7734509 gravatar image

I had the same issue when building the navigation stack,you can use the Synaptic to install not only the package libsdl-image but also the libsdl-image-dev!

edit flag offensive delete link more

answered 2013-09-20 07:16:32 -0600

teddybouch gravatar image

I had a similar issue in building ROS on openSUSE. My guess is that on your laptop (Ubuntu?) that rosdep was able to resolve the dependency on libSDL for you automatically, whereas building from source for a different platform that tool is not available to you - it isn't to me. You will need to install libSDL-image separately, which provides the SDL_image.h file.


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-07-25 00:59:18 -0600

Seen: 1,637 times

Last updated: Jan 28 '14