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

Annoying cmake warning

asked 2016-11-10 17:32:35 -0600

Hawkeye gravatar image

updated 2016-11-11 03:40:41 -0600

gvdhoorn gravatar image

Anyone else get a message like this when compiling with Kinetic?

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):  catkin_package() DEPENDS on '/usr/lib/x86_64-linux-gnu/libSDLmain.a' but neither '/usr/lib/x86_64-linux-gnu/libSDLmain.a_INCLUDE_DIRS' nor '/usr/lib/x86_64-linux-gnu/libSDLmain.a_LIBRARIES' is defined.
Call Stack (most recent call first): /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package) ros-keyboard/CMakeLists.txt:26 (catkin_package)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-11-11 01:55:41 -0600

ahendrix gravatar image

This looks like a bug in the CMakeLists.txt in the keyboard package.

The catkin_package macro is used to declare which files, libraries and packages need to be included in C++ when another package depends on this package. It looks like they're trying to export a dependency on SDL but instead of declaring that downstream packages should depend on a specific object file, it should just declare a depends on SDL.

Of course, because this package only exports messages, and those messages don't need SDL to compile, it doesn't need to export the dependency on SDL at all.

If you want this fixed I suggest you file a ticket on the project's bug tracker and link back to this answer.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-11-10 17:32:35 -0600

Seen: 1,357 times

Last updated: Nov 11 '16