Ask Your Question
0

catkin_make: Could NOT find SDL

asked 2019-12-25 06:57:51 -0600

ryosukeo gravatar image

updated 2019-12-27 08:49:27 -0600

gvdhoorn gravatar image

When I try to use catkin_make, it fails at map_server.

I got the following message

CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindSDL.cmake:190 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  navigation/map_server/CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/ryosukeo/practice_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ryosukeo/practice_ws/build/CMakeFiles/CMakeError.log".
Makefile:4688: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

What do I do to solve this problem

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-12-26 03:51:21 -0600

Orhan gravatar image

sudo apt-get install libsdl-image1.2-dev and

sudo apt-get install libsdl-dev

These solve the issue.

Source

Also for melodic, you can use this to install other dependencies too. Enter your practice_ws directory and run this command:

rosdep install --from-paths src --ignore-src --rosdistro melodic -y
edit flag offensive delete link more

Comments

Thank you. this problem solved.

ryosukeo gravatar imageryosukeo ( 2019-12-27 00:56:19 -0600 )edit

Then you can accept the answer as correct ( the tick mark is on the left of the answer, under the voting area)

Orhan gravatar imageOrhan ( 2019-12-27 01:04:02 -0600 )edit

Related: #q252478.

gvdhoorn gravatar imagegvdhoorn ( 2019-12-27 09:08:05 -0600 )edit

Also, about your own packages, do not forget to add your dependencies to your CMakeLists.txt and package.xml. I've seen lots of packages which they don't have all dependencies listed. rosdep looks up for dependencies from your definitions in the package. Even if you are able to build your workspace, you might face with a runtime error when a dependent package isn't installed.

Orhan gravatar imageOrhan ( 2019-12-27 10:44:01 -0600 )edit

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: 2019-12-25 06:57:51 -0600

Seen: 99 times

Last updated: Dec 27 '19