Ask Your Question
0

SDL image error while building gmapping

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

Andrick gravatar image

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

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

Comments

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 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

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

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
0

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

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.

Try http://www.libsdl.org/

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,469 times

Last updated: Jan 28 '14