Skip to content

Fix header install destination #3134

Open

Description

@rhaschke

We frequently see bug reports about ABI incompatibilities when overlaying existing binary packages.
I strongly believe that this related to the header installation problem raised in ros2/ros2#1150.
For ROS Humble, the TSC decided to install headers into a subfolder /opt/ros//include///:
https://docs.ros.org/en/humble/Releases/Release-Humble-Hawksbill.html#c-headers-are-installed-in-a-subdirectory
https://colcon.readthedocs.io/en/released/user/overriding-packages.html#install-headers-to-a-unique-include-directory

MoveIt2 never implemented that change, causing ABI issues with package overlays to persist.
We recently fixed this for srdfdom: moveit/srdfdom#132 and moveit/srdfdom@65ce909.
I think, it's time to go through all MoveIt-releated packages and eventually fix it.

affected ROS distros: Humble+

Activity

  1. added
    bug
    on Nov 27, 2024
  2. mikeferguson commented on Nov 27, 2024

    @mikeferguson
    Contributor

    @TSNoble you might be interested in working on this - once released, it would avoid many (all?) of the "source build overlaying binaries causes weird ABI crashes" that I think were plaguing you recently.

  3. rhaschke commented on Nov 27, 2024

    @rhaschke
    ContributorAuthor

    There is another example what to do in moveit/geometric_shapes#253.

  4. riv-tnoble commented on Nov 28, 2024

    @riv-tnoble
    Contributor

    To be fair, I think most of our failures have just been poor dependency management on our part e.g. the last failure was caused by building against 2.5.5, but linking dynamically against 2.5.6.

    Currently on my agenda:

    1. Get Enhancement/use hpp for headers #3113 merged
    2. Pick up follow on header work listed here
    3. Implement the proposal in Ability to attach collision objects to collision objects? #3060 (@rhaschke unrelated, but would be good to get your thoughts)

    This ticket feels like it'd sit quite nicely with the rest of the items in point 2, which all feel fairly small in isolation, so I don't mind taking a shot at it. Also, thanks for the examples. I'll probably work through that list after 1, although work is very busy currently so mainly doing this in my spare time 😅

  5. code3002 commented on Jan 2, 2025

    @code3002

    I want to work on this issue its pretty straight forward

  6. mikeferguson commented on Jan 2, 2025

    @mikeferguson
    Contributor

    I want to work on this issue its pretty straight forward

    Please do - open a PR when you're ready!

  7. lucasdavalle commented on Jul 18, 2026

    @lucasdavalle

    Repository audit for "Fix header install destination" (#3134)

    Hello — I performed a repository-wide audit for the header-installation pattern described in this issue ("Fix header install destination").

    What I checked

    • Searched all install(DIRECTORY include usages across the tree and inspected the standalone packages relevant to this issue.
    • Manually verified representative packages to confirm the install invocation and the on-disk include layout.

    Representative checks

    • moveit_planners/chomp — CMakeLists.txt uses install(DIRECTORY include/ DESTINATION include/chomp_motion_planner) and the repo contains include/chomp_motion_planner/.
    • moveit_ros/move_group — uses install(DIRECTORY include/ DESTINATION include/moveit_ros_move_group).
    • moveit_setup_assistant/moveit_setup_framework — uses install(DIRECTORY include/ DESTINATION include/moveit_setup_framework).

    Findings and recommendation

    • I did not find instances of the old/broken pattern that peels one level (for example install(DIRECTORY include/${PROJECT_NAME}/ DESTINATION include/${PROJECT_NAME} ...)) in overlay‑relevant standalone packages.
    • The moveit_core/* submodules intentionally install into include/moveit_core (same ROS package) and are correct.
    • With the current main branch, the repository appears to already follow the intended header-install layout, so this issue looks like it may be stale.

    Next steps (suggested)

    • If maintainers agree, this issue can be closed as resolved/obsolete.
    • If additional evidence is desired, I can attach an automated audit report (script + output) or prepare a small non‑destructive PR that runs a check across all packages and includes the report; the repo CI can then validate compilation.

    Reference: example fix in srdfdom — moveit/srdfdom#132

    Thanks — tell me if you want me to post this comment on the issue or attach an automated audit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions