Skip to content

Issue when angles is built from source (ROS2 Humble) #42

@bgilby59

Description

@bgilby59

ROS2 Distro: Humble
OS: Ubuntu 20.04
This is about branch: humble-devel

I built angles from source, and then tried to build nebula, a package that depends on angles, but got the following error:

fatal error: angles/angles/angles.h: No such file or directory

I confirmed that nebula builds when angles is installed through a binary for ROS2 Humble on Ubuntu 22.04 (installed through rosdep), so the issue is specifically about building angles from source.

The following fix in angles' CMakeLists.txt solved my problem:

target_include_directories(angles INTERFACE
  "$<INSTALL_INTERFACE:include/angles>")

->

target_include_directories(angles INTERFACE
  "$<INSTALL_INTERFACE:include>")

Is it possible to make this change permanent on the humble-devel branch?

On a related note, I wonder why we have:

ament_export_include_directories("include/angles")

Instead of:

ament_export_include_directories("include")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions