ROS2 static compile
Has anyone compiled their application to load all the libraries into the executable, so it wouldn't need the full ROS2 library loaded onto a system?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Has anyone compiled their application to load all the libraries into the executable, so it wouldn't need the full ROS2 library loaded onto a system?
All CMake packages which use / depend on ament_cmake_ros
have the CMake option BUILD_SHARED_LIBS
: see https://github.com/ros2/ament_cmake_r...
By setting it to OFF
these packages will produce static libraries instead of shared libraries.
Note: Since that configuration is not being used frequently and not tested by any CI I would guess that you might encounter issues when trying to use it.
Asked: 2020-03-18 13:40:53 -0500
Seen: 1,083 times
Last updated: Mar 19 '20
ROS2 node for Sony Playstation 4 Dual Shock 4 (DS4) gamepad
ROS2 Run __params not affecting node
Subscriber callback not triggering while in a while loop
ROS2 Bag - DB3 CDR Deserialization
Slam Toolbox - How is scan data used to build the map?
Error while building ROS2 code on windows
Get all key/value pairs from custom ROS2 message
ROS2 interfacing with gazebo causes gzserver: symbol lookup error
Did the proposed answer by Dirk Thomas work for you?