Skip to content

Conversation

@ryuichiueda
Copy link
Contributor

This version can be built for jazzy. Since I have never tested this version with a simulator, please wait to merge. I put this pull request as a memorandum.

@atinfinity
Copy link

Build error occurs in the latest ROS 2 Jazzy.

Starting >>> emcl2   
--- stderr: emcl2                                
In this package, headers install destination is set to `include` by ament_auto_package. It is recommended to install `include/emcl2` instead and will be the default behavior of ament_auto_package from ROS 2 Kilted Kaiju. On distributions before Kilted, ament_auto_package behaves the same way when you use USE_SCOPED_HEADER_INSTALL_DIR option.
---
Finished <<< emcl2 [11.3s]

This error is related to this change(ament/ament_cmake#577).
Please read https://zenn.dev/tiryoh/articles/2025-05-23-ament-cmake-auto.

The following changes can work around this problem.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1cd16a6..7192e71 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,6 +38,7 @@ install(PROGRAMS
 )
 
 ament_auto_package(
+  USE_SCOPED_HEADER_INSTALL_DIR
   INSTALL_TO_SHARE
   config
   launch

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

Successfully merging this pull request may close these issues.

3 participants