Skip to content

Commit

Permalink
Fixed unresolved symbol runtime error due to not linking to yaml-cpp …
Browse files Browse the repository at this point in the history
…properly
  • Loading branch information
ugol-1 committed Jun 16, 2024
1 parent 3f2e372 commit a8ed36e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions mavros_extras/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ find_package(libmavconn REQUIRED)

find_package(eigen3_cmake_module REQUIRED)
find_package(Eigen3 REQUIRED)
# find_package(yaml_cpp REQUIRED)
find_package(yaml_cpp_vendor REQUIRED)
find_package(yaml-cpp REQUIRED)

## Find GeographicLib
# Append to CMAKE_MODULE_PATH since debian/ubuntu installs
Expand Down Expand Up @@ -153,7 +152,9 @@ ament_target_dependencies(mavros_extras_plugins
tf2_eigen
message_filters
Eigen3
yaml_cpp_vendor
)
target_link_libraries(mavros_extras_plugins
yaml-cpp
)
pluginlib_export_plugin_description_file(mavros mavros_plugins.xml)

Expand All @@ -171,9 +172,11 @@ ament_target_dependencies(mavros_extras
sensor_msgs
mavros_msgs
#console_bridge
yaml_cpp_vendor
urdf
)
target_link_libraries(mavros_extras
yaml-cpp
)
rclcpp_components_register_node(mavros_extras PLUGIN "mavros::extras::ServoStatePublisher" EXECUTABLE servo_state_publisher)

install(TARGETS mavros_extras mavros_extras_plugins
Expand Down
1 change: 0 additions & 1 deletion mavros_extras/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
<depend>rcpputils</depend>
<depend>urdf</depend>
<depend>yaml-cpp</depend>
<depend>yaml_cpp_vendor</depend>

<!-- message packages -->
<depend>diagnostic_msgs</depend>
Expand Down

0 comments on commit a8ed36e

Please sign in to comment.