error in building catkin package with dependency on non-catkin package

asked 2019-06-20 06:30:15 -0500

usamamaq gravatar image

updated 2019-08-07 13:48:49 -0500

jayess gravatar image

Hello i am building a catkin package which depends on octomap but few functions in this newer version of this ros package has been removed. So i have removed ros-kinetic-octomap with

sudo apt-get remove ros-kinetic-octomap

and installed older version of octomap from source which is not a catkin package (from what i understand). Package is installed at /usr/local/share/. I have changed PACKAGE_DEPENDENCIES in CMakeLists to octomap from octomap_ros.

But when i catkin_make my workspace now i get this warning and error

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'octomap' but neither 'octomap_INCLUDE_DIRS'
  nor 'octomap_LIBRARIES' is defined.

CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:183 (message):
  catkin_package() CATKIN_DEPENDS on 'octomap', which has been found in
  '/usr/local/share/octomap/octomap-config.cmake', but it is not a catkin
  package

Kindly help how can i solve this issue.

I have ubuntu 16.04 with ROS Kinetic installed.

edit retag flag offensive close merge delete