Building a project in my catkin workspace : Dependency error

asked 2018-12-11 05:42:38 -0500

watchdog gravatar image

I want to build my project in catkin workspace. After executing catkin_make i got this error:

     add_subdirectory(openni_tracker)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Checking for module 'libopenni'
--   Found libopenni, version 1.5.4.0
-- +++ processing catkin package: 'rgbd_calibration'
-- ==> add_subdirectory(rgbd_calibration)
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "kinect" with any
  of the following names:

    kinectConfig.cmake
    kinect-config.cmake

  Add the installation prefix of "kinect" to CMAKE_PREFIX_PATH or set
  "kinect_DIR" to a directory containing one of the above files.  If "kinect"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  rgbd_calibration/CMakeLists.txt:8 (find_package)


-- Could not find the required component 'kinect'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "kinect" with any
  of the following names:

    kinectConfig.cmake
    kinect-config.cmake

  Add the installation prefix of "kinect" to CMAKE_PREFIX_PATH or set
  "kinect_DIR" to a directory containing one of the above files.  If "kinect"
  provides a separate development package or SDK, be sure it has been
  installed.

catkin workspace is at : ~/catkin_ws whereas i have installed opeNI package over ~/kinect folder. Its my first ROS program so any advice would be helpful.

edit retag flag offensive close merge delete

Comments

Adding your CMakeLists.txt and package.xml to your original question (minus boilerplate comments) would make this much easier to debug. That said, the error is almost certainly because you are trying to find_package a CMake package called kinect...

jarvisschultz gravatar image jarvisschultz  ( 2018-12-11 16:27:27 -0500 )edit

... but that doesn't work because there is no Findkinect.cmake or kinectConfig.cmake file available. Is kinect supposed to be a ROS package?

jarvisschultz gravatar image jarvisschultz  ( 2018-12-11 16:28:24 -0500 )edit