You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was attempting to build the jazzy version of navigation2 software stack in a source-built ROS 2 Jazzy workspace in Ubuntu 22.04 today. However, I kept getting an linking error specifically inability to find yaml-cpp::yaml-cpp target defined in the robot_localization package. Note, even though the hyperlink goes to my fork of robot_localization, I made no changes to it. Cannot remember why I forked robot_localization in the first place but the solution I proposed in PR #4772 uses my fork of robot_localization.
System Information
OS: Ubuntu 22.04 (also applicable to Ubuntu 24.04)
ROS 2 Version: ROS 2 Jazzy
Version: jazzy branch
DDS Implementation: CycloneDDS
Steps to reproduce issue
Assuming you have access to a base ROS 2 Jazzy workspace (binary or built from source), please build my moveit2 workspace first and git clone and build the main branch of navigation2 stack to reproduce the error (given below)
Please note without the -w flag, nav2_amcl raises a header depreciation warning which the compiles counts as an error stopping the build. This is another potential error that may need another PR to fix.
Expected behavior
nav2_waypoint_follower builds successfully.
Actual behavior
nav2_waypoint_follower fails with the following error.
--- stderr: nav2_waypoint_follower CMake Error at /home/tigerwife/moveit2_nav2_jazzy_ws/install/robot_localization/share/robot_localization/cmake/robot_localizationExport.cmake:61 (set_target_properties): The link interface of target "robot_localization::rl_lib" contains: yaml-cpp::yaml-cpp but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing.Call Stack (most recent call first): /home/tigerwife/moveit2_nav2_jazzy_ws/install/robot_localization/share/robot_localization/cmake/ament_cmake_export_targets-extras.cmake:9 (include) /home/tigerwife/moveit2_nav2_jazzy_ws/install/robot_localization/share/robot_localization/cmake/robot_localizationConfig.cmake:41 (include) CMakeLists.txt:20 (find_package)
The text was updated successfully, but these errors were encountered:
Given that yaml-cpp isnt really used in the nav2_waypoint_follower package, it seems more like an issue with robot_localization not exporting its dependencies properly :/
Solution proposed in PR #4772
Hi,
I was attempting to build the
jazzy
version ofnavigation2
software stack in a source-built ROS 2 Jazzy workspace in Ubuntu 22.04 today. However, I kept getting an linking error specifically inability to findyaml-cpp::yaml-cpp
target defined in the robot_localization package. Note, even though the hyperlink goes to my fork of robot_localization, I made no changes to it. Cannot remember why I forked robot_localization in the first place but the solution I proposed in PR #4772 uses my fork of robot_localization.System Information
OS: Ubuntu 22.04 (also applicable to Ubuntu 24.04)
ROS 2 Version: ROS 2 Jazzy
Version:
jazzy
branchDDS Implementation: CycloneDDS
Steps to reproduce issue
Assuming you have access to a base ROS 2 Jazzy workspace (binary or built from source), please build my moveit2 workspace first and git clone and build the
main
branch ofnavigation2
stack to reproduce the error (given below)Please note without the
-w
flag,nav2_amcl
raises a header depreciation warning which the compiles counts as an error stopping the build. This is another potential error that may need another PR to fix.Expected behavior
nav2_waypoint_follower
builds successfully.Actual behavior
nav2_waypoint_follower
fails with the following error.The text was updated successfully, but these errors were encountered: