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

roswtf and rpath problems in fuerte

asked 2012-07-05 09:17:19 -0500

updated 2012-07-17 06:14:43 -0500

I recently noticed that running roswtf on every package that I have produces errors related to rpath and the linker. For example, following the tutorial on creating ros packages here you create a new package by running the command

roscreate-pkg beginner_tutorials std_msgs rospy roscpp

Then if I cd to the beginner-tutorials directory, and run roswtf, I get the following error:

Loaded plugin tf.tfwtf
Package: beginner_tutorials
================================================================================
Static checks summary:

Found 1 error(s).

ERROR The following packages have rpath issues in manifest.xml:
* beginner_tutorials: found flag "-L/opt/ros/fuerte/lib", but no matching "-Wl,-rpath,/opt/ros/fuerte/lib"
* std_msgs: found flag "-L/opt/ros/fuerte/lib", but no matching "-Wl,-rpath,/opt/ros/fuerte/lib"
* roscpp: found flag "-L/opt/ros/fuerte/lib", but no matching "-Wl,-rpath,/opt/ros/fuerte/lib"

The question here seems to indicate that I should not be using -L commands within the export tag. I don't have any references to export or cpp in any of the manifests that produce these errors.

Basically every package I have written produces these same errors. What is causing this? What else should I be including in my manifest.xml?

EDIT

Adding the following line to the manifest (per manifest documentation) does not improve anything:

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

Explicitly specifying the -rpath directory using

-Wl,-rpath,${prefix}/lib,-rpath,/opt/ros/fuerte/lib

Removes the error for the beginner_tutorials package. But I am still getting errors for std_msgs, and roscpp. Is there a bug in roswtf? Should there be something else in the manifests for these packages?

Clearly, this isn't causing much of a real problem, but the "ERROR" note is definitely unsettling.

edit retag flag offensive close merge delete

Comments

Note, I just found this link from ros-users that explains -rpath and -Wl very well. Although, my question still stands, is there a problem with roswtf?

jarvisschultz gravatar image jarvisschultz  ( 2012-07-17 06:23:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-07-05 14:04:22 -0500

joq gravatar image

updated 2012-07-17 06:44:23 -0500

Maybe this documentation will help.

EDIT: The export changes need to be made in the beginner_tutorials, std_msgs and roscpp packages.

To get that fixed, someone needs to open defect tickets for those packages.

edit flag offensive delete link more

Comments

1

Created a ticket here. Thanks for the help!

jarvisschultz gravatar image jarvisschultz  ( 2012-07-17 10:22:18 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2012-07-05 09:17:19 -0500

Seen: 541 times

Last updated: Jul 17 '12