Robotics StackExchange | Archived questions

Dependencies in package.xml file

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

What is "buildexportdepend" 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 ?

Asked by gktg1514 on 2018-10-07 13:59:49 UTC

Comments

Answers

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.

Asked by gvdhoorn on 2018-10-08 00:59:04 UTC

Comments

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

Asked by gvdhoorn on 2019-09-22 05:06:01 UTC