Open pablogs9 opened 3 years ago
Hello @clalancette, thanks a lot for your comments. I'm answering here:
dynamic_support_dispatch.hpp
with the logic associated to the dynamic library handlingBUILD_SHARED_LIBS
is not set, so this line is reached and probably the rosidl_typesupport_c
library is being built as a static one. At some point, the build type (static or dynamic) of the rosidl_typesupport_c
does not determine if the actual typesupport is being handled statically or dynamically. If fact a static library can use rcutils
functions to search and use the dynamic library of the typesupport for a message.
So, although I have modified it to use this flags, I wonder if we should keed the original option(ROSIDL_TYPESUPPORT_STATIC_TYPESUPPORT "Enable static typesupport" OFF)
Hello @sloretz and @clalancette,
here at micro-ROS, we are wondering if it is possible to implement the changes proposed here to allow
rosidl_typesupport_c
to have some kind of statically linked typesupport dispatch for those environments where dynamic library are not allowed (embedded).Can we discuss this feature here? What are your opinions?
CC: @ralph-lange @JanStaschulat