Could not find a configuration file for package *
Here's a minimal catkin package.
Package.xml:
<?xml version="1.0"?>
<package>
<name>sighdangitcatkin</name>
<version>0.0.0</version>
<description>The sighdangitcatkin package</description>
<maintainer <a href="mailto:email="dlu@todo.todo">dlu</maintainer">email="dlu@todo.todo">dlu</maintainer</a>>
<license>TODO</license>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>orocos_kdl</build_depend>
</package>
CMakeLists.txt:
cmake_minimum_required(VERSION 2.8.3)
project(sighdangitcatkin)
find_package(catkin REQUIRED COMPONENTS orocos_kdl )
catkin_package()
Seems pretty simple, yah? Here's the error I get when compiling.
-- +++ processing catkin package: 'sighdangitcatkin'
-- ==> add_subdirectory(sighdangitcatkin)
CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
Could not find a configuration file for package orocos_kdl.
Set orocos_kdl_DIR to the directory containing a CMake configuration file
for orocos_kdl. The file will have one of the following names:
orocos_kdlConfig.cmake
orocos_kdl-config.cmake
Call Stack (most recent call first):
sighdangitcatkin/CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
Invoking "cmake" failed
What am I missing?
Note: It works fine if you use this CMake..
cmake_minimum_required(VERSION 2.8.3)
project(sighdangitcatkin)
find_package(catkin REQUIRED COMPONENTS )
find_package(orocos_kdl REQUIRED)
catkin_package()
Excuse me , Did this error happen after typing 1- cd ~/catkin_ws 2- then typing catkin_make
Essentially.
please, would you make sure that ROS can see & find your package I mean by that Did you try typing command rospack find ( your_package_name) or using command roscd (your_package_name) then typing unix command pwd either using command rospack find or using commands roscd then pwd it should return your package path if ROS can find your package in the src folder of catkin_ws in your home please , make sure of that
Thanks, but William found the real problem.
Thanks God . I am happy that your problem has been solved I just tried to help .Thanks to Mr William . God bless him amen
@Real Loyalty For future edits of your posts / comments please consider checking the check box "minor edit - don't send alerts" if you modifications are minor (e.g. spelling and white space fixing) to avoid numerous notification emails to subscribed users. Thx.
@Dirk Thomas Thx for your note . I will take care about that