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 -0600
Seen: 1,293 times
Last updated: Mar 19 '20
Did the proposed answer by Dirk Thomas work for you?