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

Should manifest.xml add include cflags for package automatically?

asked 2011-07-19 10:40:35 -0500

When creating a package whose header files will be included by others, we have to add the following to the manifest.xml as per to specify the package's include path.

   <cpp cflags="-I${prefix}/include" />

Should this be done automatically as it's done for libraries?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-07-19 17:14:48 -0500

tfoote gravatar image

Not all packages export the same location and some don't export anything, thus we do not do it automatically.

It is our convention that we usually do the same place, but it's not required. This is especially true for python packages etc.

edit flag offensive delete link more

answered 2013-05-28 23:51:53 -0500

the problem is that when building a package (with rosbuild) it locates its libraries (as indicated in cmakelist), then you to build a new package and it needs libraries from another package, you do not remember how it worked the old package. If the package son knows where the libraries (no flags), because the parent not?, just put the package name in the manifest and its libraries in cmakelist.

edit flag offensive delete link more

Question Tools


Asked: 2011-07-19 10:40:35 -0500

Seen: 401 times

Last updated: May 28 '13