Skip to content

Build Failure: Missing boost/foreach.hpp in @ros_geometry2//:tf2 Target #142

@leonpohl

Description

@leonpohl

When attempting to build the @ros_geometry2//:tf2 target using Bazel, the build fails due to a missing Boost header file:

$ bazel build @ros_geometry2//:tf2
INFO: Analyzed target @ros_geometry2//:tf2 (1 packages loaded, 10 targets configured).
ERROR: .../external/ros_geometry2/BUILD.bazel:34:15: Compiling tf2/src/buffer_core.cpp failed: (Exit 1): gcc failed: error executing CppCompile command ...
external/ros_geometry2/tf2/src/buffer_core.cpp:40:10: fatal error: boost/foreach.hpp: No such file or directory
   40 | #include <boost/foreach.hpp>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
ERROR: Build did NOT complete successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions