Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bgilby59 opened this issue Nov 9, 2023 · 0 comments
Open

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

bgilby59 opened this issue Nov 9, 2023 · 0 comments

Comments

@bgilby59
Copy link

bgilby59 commented Nov 9, 2023

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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant