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

At creating a ROS package by hand

asked 2012-05-31 16:32:14 -0500

rosmaker gravatar image

updated 2012-05-31 16:33:00 -0500

In tutorials, creating a ROS package by hand

To see one example of why specifying these dependencies is useful, try executing the following commands rospack commands:

rospack export --lang=cpp --attrib=cflags foobar rospack export --lang=cpp --attrib=lflags foobar

what is the "--attrib" , "cflags" and "lflags"?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-06-01 00:20:35 -0500

Lorenz gravatar image

In manifest files of packages that export libraries, you can see something like this (taken from roscpp's maifest file):

<export>
  <cpp cflags="-I${prefix}/include `rosboost-cfg --cflags`" lflags="-Wl,-rpath,${prefix}/lib -L${prefix}/lib -lros `rosboost-cfg --lflags thr
</export>

With rospack export --lang=cpp --attrib=cflags roscpp you'll get the value of the attribute cflags as specified in roscpp's manifest.xml. cflags exports are used by CMake to build up all compiler flags for building a package, lflags are used for linker flags respectively.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-05-31 16:32:14 -0500

Seen: 343 times

Last updated: Jun 01 '12