angles icon indicating copy to clipboard operation
angles copied to clipboard

Issue when angles is built from source (ROS2 Humble)

Open bgilby59 opened this issue 2 years ago • 0 comments

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")

bgilby59 avatar Nov 09 '23 03:11 bgilby59