Ask Your Question

catkin_make: Could NOT find SDL

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

ryosukeo gravatar image

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

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):
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

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

Orhan gravatar image

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

sudo apt-get install libsdl-dev

These solve the issue.


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


Thank you. this problem solved.

ryosukeo gravatar image ryosukeo  ( 2019-12-27 00:56:19 -0500 )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 image Orhan  ( 2019-12-27 01:04:02 -0500 )edit

Related: #q252478.

gvdhoorn gravatar image gvdhoorn  ( 2019-12-27 09:08:05 -0500 )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 image Orhan  ( 2019-12-27 10:44:01 -0500 )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



Asked: 2019-12-25 06:57:51 -0500

Seen: 2,984 times

Last updated: Dec 27 '19