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

Export spdlog dependency for rcl_logging_spdlog #87

Closed

Conversation

AlexisTM
Copy link

@AlexisTM AlexisTM commented Jun 8, 2022

Information

OS: Apertis 2022 (Debian bullseye based)
ROS Version: Galactic
rcl_logging version: 2.1.4
GCC: aarch64-linux-gnu-g++ (Apertis 10.2.1-6+apertis2+apertispro0bv2022dev3b1) 10.2.1 20210110
Arch: aarch64

Description

When cross-building for our project, rclcpp_components and other rclcpp packages fails to link to spdlog, saying: spdlog.so.1 not found while available in the workspace's lib folder (which is in the CMAKE_FIND_ROOT_PATH).

Explicitly adding spdlog as a dependency of rcl_logging_spdlog fixes the issue.

ament_export_dependencies(rcl_logging_interface spdlog)

Note: The build works fine without this when building natively on the host (x86_64).
Note2: This fix is based on the galactic branch

@AlexisTM AlexisTM changed the title Fix dependencies for rcl_logging_spdlog Export spdlog dependency for rcl_logging_spdlog Jun 8, 2022
Signed-off-by: PAA1TI <PAA1TI@bosch.com>
@AlexisTM AlexisTM force-pushed the feature/fix_spdlog_dependency branch from 7a6b445 to bfdbad2 Compare June 8, 2022 11:16
@AlexisTM
Copy link
Author

AlexisTM commented Jun 8, 2022

  • Forced pushed to fix the unsigned commit.

@clalancette
Copy link
Contributor

Note2: This fix is based on the galactic branch

Could you please retarget this PR to the master branch here? Our usual workflow is to land things on master and then backport them as necessary. Thank you!

@clalancette
Copy link
Contributor

Actually, #89 is a superset of this one, so I'm going to close this in favor of that.

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.

None yet

2 participants