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,099 times
Last updated: Mar 19 '20
Cannot build ROS2 humble (rclcpp) with Android NDK
colcon build fails while following tutorial
[SOLVED] ROS2 + VSCode IntelliSense + multiple ROS2 packages
Library path issues: cannot find -l<library_name>
How do you exclude folders with colcon test?
Multiple conditions for IfCondition in ros2 launch script
Frames are moving away from global frame
Where are the controller_manager logs
Did the proposed answer by Dirk Thomas work for you?