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

Dependencies in package.xml file

asked 2018-10-07 13:59:49 -0500

gktg1514 gravatar image

The ros tutorials that I follow say that the package.xml file has to contain two types of dependencies xml tag which are "build_depend" and "exec_depend". However, when I opened package.xml file of my package, I saw three different dependency xml tag. These are "build_depend", "exec_depend", and "build_export_depend".

What is "build_export_depend" tag used for ?

Two days ago, I built my package by using the command "catkin_make".

Did this build operation add that tag into xml file ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-10-08 00:59:04 -0500

gvdhoorn gravatar image

updated 2019-09-22 07:28:15 -0500

What is "build_export_depend" tag used for ?

Please see whether the catkin documentation on that topic clarifies things:

If you export a header that includes <angles/angles.h>, it will be needed by other packages that <build_depend> on yours:

<build_export_depend>angles</build_export_depend>

This mainly applies to headers and CMake configuration files. Library packages referenced by libraries you export should normally specify <depend>, because they are also needed at execution time.

Also refer to build_export_depend in REP-140.

Two days ago, I built my package by using the command "catkin_make".

Did this build operation add that tag into xml file ?

No. catkin_make treats your package manifests as read-only, it does not add, remove or change anything.

edit flag offensive delete link more

Comments

If the downvoter could clarify what the problem was, perhaps this answer could be improved.

gvdhoorn gravatar image gvdhoorn  ( 2019-09-22 05:06:01 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-10-07 13:59:49 -0500

Seen: 1,826 times

Last updated: Sep 22 '19