Skip to content

linking error #42

@mayman99

Description

@mayman99

Bug report

undefined reference to symbol 'pthread_rwlock_unlock@@GLIBC_2.2.5' cmake when building the package

Required information:

  • Operating system and version:
    • Ubuntu 20.04
  • OpenRMF installation type:
    • source
  • OpenRMF version or commit hash
  • ROS distribution and version:
  • ROS installation type:
    • binary
  • Package or library, if applicable:
    • rmf_fleet_adapter

had to add -pthread to the target_link_libraries to be able to build

target_link_libraries(rmf_visualization_schedule
  PUBLIC
    -pthread
    rmf_traffic_ros2::rmf_traffic_ros2
    rmf_traffic::rmf_traffic
    ${rclcpp_LIBRARIES}
    ${websocketpp_LIBRARIES}
    OpenSSL::SSL
    OpenSSL::Crypto
    ${rmf_traffic_msgs_LIBRARIES}
)

Steps to reproduce the bug

Expected behavior

Actual behavior

Screenshots

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions