Ask Your Question
0

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.

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

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
1

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
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 358 times

Last updated: May 28 '13