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

Adding new dependency after running catkin_create_pkg

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

Almanakk gravatar image

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

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:

pclConfig.cmake
pcl-config.cmake
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

jodafo gravatar image

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

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

Comments

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

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

Question Tools

1 follower

Stats

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

Seen: 1,053 times

Last updated: Sep 10 '13