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

Adding new dependency after running catkin_create_pkg

asked 2013-09-09 23:35:55 -0600

Almanakk gravatar image

updated 2013-09-10 00:59:21 -0600

How can I add a new dependency to my package, after the package has been created? In my case: 1st step: catkin_create_pkg beginner_tutorials std_msgs roscpp ... Next step: I want to add a dependency to pcl and pcl_ros

Is there an easy way to achieve this?

After editing CmakeLists.txt/package.xml or creating a new package from scratch I get this error when running catkin_make in the root work folder:

CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package pcl.

Set pcl_DIR to the directory containing a CMake configuration file for pcl. The file will have one of the following names:

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-10 00:14:36 -0600

jodafo gravatar image

updated 2013-09-10 00:16:58 -0600

Have a look at the CMakeLists.txt/package.xml and see how e.g. roscpp is used there. Play around a bit. Shouldn't be too hard too figure out.

edit flag offensive delete link more


9 years later, surely there is a better answer than this?

catmanjan gravatar image catmanjan  ( 2022-04-27 02:30:43 -0600 )edit

Question Tools

1 follower


Asked: 2013-09-09 23:35:55 -0600

Seen: 1,035 times

Last updated: Sep 10 '13