SteveMacenski / slam_toolbox

Slam Toolbox for lifelong mapping and localization in potentially massive maps with ROS
GNU Lesser General Public License v2.1
1.67k stars 525 forks source link

Failing build nav2 + slam_toolbox #588

Closed tommy-erko closed 1 year ago

tommy-erko commented 1 year ago

Required Info:

Steps to reproduce issue

colcon build in a workspace with nav2 and slam_toolbox packages

Expected behavior

successful build

Actual behavior

stderr: slam_toolbox
 CMake Error: Files to be generated by multiple different commands: "<path_to_ws>/build/slam_toolbox/ament_cmake_environment_hooks/library_path.dsv"
 CMake Generate step failed.  Build files cannot be regenerated correctly.
 Failed   <<< slam_toolbox [12.6s, exited with code 1]

Additional information

This setup worked before the latest (2023-03-17) ROS2 rolling synchronization.

tommy-erko commented 1 year ago

the same happens if I first build nav2 alone (skip nav2_bringup dependency on slam_toolbox) and add and attempt to build slam_toolbox afterwards

SteveMacenski commented 1 year ago

This is very odd. I'm not sure either. Let me call in backup CC @clalancette

clalancette commented 1 year ago

This is very odd. I'm not sure either. Let me call in backup CC @clalancette

This is likely due to https://github.com/ament/ament_cmake/pull/416. There is more information in there, but you'll likely have to do something similar to https://github.com/ros-planning/moveit2/pull/1889

SteveMacenski commented 1 year ago

Thank you for the note Chris, I'll fix this shortly. That would have taken me much, much longer to try to correlate

SteveMacenski commented 1 year ago

@tommy-erko thanks for the report! I've fixed it in https://github.com/SteveMacenski/slam_toolbox/pull/589