Errors when using rosmake

Error: Package build failed

Example:

  • [ rosmake ] Output from build of package roscpp written to:
    [ rosmake ]    ~/.ros/rosmake/rosmake_output-20100119-094509/roscpp/build_output.log
    [rosmake-2] <<< roscpp <<< [FAIL] [ 1.95 seconds ]
    [ rosmake ] Halting due to failure in package roscpp.
    [ rosmake ].
    [ rosmake ] Summary output to directory
    [ rosmake ] ~/.ros/rosmake/rosmake_output-20100119-094509

Solution:

  • The roscpp package failed to build.
    • Open the log file listed and see what the error was. There are a couple of things which might make it fail.
    • A missing system dependency.
    • A missing dependency
    • A bug in the code

Error: Missing System Dependency

Example:

  • ...
    [ rosmake ] Halting due to failure in package roscpp.
    [ rosmake ].
    [ rosmake ] Summary output to directory
    [ rosmake ] /u/tfoote/.ros/rosmake/rosmake_output-20100119-101039
    [ rosmake ] WARNING: Rosdep did not detect the following system dependencies as installed: Did not detect packages: ['graphviz']
     Consider using --rosdep-install option or `rosdep install rxdeps`

Solution:

  • Rerun rosmake command with --rosdep-install

  • or run rosdep install rxdeps

Error: Declared Dependency Missing

Example: This will appear in your log:

  •   [rospack] couldn't find dependency [foo] of [tf]
      [rospack] missing dependency

Solution:

  • Add package "foo" to your ROS_PACKAGE_PATH.

Error: Undeclared Dependency

Example: This will appear in your log:

  •   ~/ros/pkgs/geometry/tf/include/tf/transform_listener.h:128: error: ISO C++ forbids declaration of ‘sensor_msgs’ with no type
      ~/ros/pkgs/geometry/tf/include/tf/transform_listener.h:128: error: expected ‘,’ or ‘...’ before ‘::’ token

Solution:

  • Add package "sensor_msgs" as a dependency in your manifest.

Wiki: rosmake/Troubleshooting (last edited 2010-01-19 18:28:24 by TullyFoote)