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,086 times
Last updated: Mar 19 '20
Which version of Colcon should I be using with which version of ROS?
ROS2 Run __params not affecting node
Long compile time for ROS2 interface package
How to colcon build RelWithDebInfo with no code optimizations ( -O0 )
What is the correct layout of Python code when using --symlink-install in ROS 2?
Error while building ROS2 code on windows
rclpy fails to run on arm64 after cross-compilation
How to properly set AMENT_PREFIX_PATH?
Did the proposed answer by Dirk Thomas work for you?