You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Control shared/static linking via BUILD_SHARED_LIBS and ament_cmake_ros #306
I am not sure if exporting ament_cmake_ros is a good idea. In that case a package might not directly depend on ament_cmake_ros but implicitly use it through the typesupport dependencies. I would think that users will get confused why their by default statically linked libraries are suddenly linked shared.
@dirk-thomas that's a good point, I hadn't thought about that. I've pushed ros2/rosidl_typesupport@853357e with a workaround, I don't know if it'd suffice, but that logic should only take effect if the user deliberately chooses to build libraries as static by setting BUILD_SHARED_LIBS to OFF / FALSE explicitly.
@esteve I'm going to put this in backlog due to the low activity and the fact that we are not planning on allocating time to this in the next cycle. We will still happily review and test changes to the referenced PRs
I can go ahead and implemented what I proposed (adding ament_cmake_ros to message packages) if it has a chance of being considered for merging. But if there's any other proposal, I can implement that either.
Activity
dirk-thomas commentedon Apr 7, 2017
The following CI jobs cover:
dirk-thomas commentedon Apr 12, 2017
@esteve Waiting for updates / responses on the following PRs:
dirk-thomas commentedon Apr 14, 2017
esteve commentedon Apr 14, 2017
@dirk-thomas I assume you didn't pass
BUILD_SHARED_LIBSto the CI build (i.e. the build is using the defaultSHAREDvalue), right? If that's the case, it seems the code in ros2/rosidl_typesupport#10 doesn't read theBUILD_SHARED_LIBSvariable as expected. Shouldament_cmake_rosbe added as an export dependency and added to https://github.com/ros2/rosidl_typesupport/blob/master/rosidl_typesupport_c/rosidl_typesupport_c-extras.cmake.in and https://github.com/ros2/rosidl_typesupport/blob/master/rosidl_typesupport_cpp/rosidl_typesupport_cpp-extras.cmake.in ?dirk-thomas commentedon Apr 14, 2017
I am not sure if exporting
ament_cmake_rosis a good idea. In that case a package might not directly depend onament_cmake_rosbut implicitly use it through the typesupport dependencies. I would think that users will get confused why their by default statically linked libraries are suddenly linked shared.esteve commentedon Apr 17, 2017
@dirk-thomas that's a good point, I hadn't thought about that. I've pushed ros2/rosidl_typesupport@853357e with a workaround, I don't know if it'd suffice, but that logic should only take effect if the user deliberately chooses to build libraries as static by setting
BUILD_SHARED_LIBStoOFF/FALSEexplicitly.dirk-thomas commentedon Apr 20, 2017
Please see ros2/rosidl_typesupport#10 (comment) for the latest comment on this.
dirk-thomas commentedon Jun 7, 2017
Any news on this?
esteve commentedon Jun 8, 2017
@dirk-thomas see ros2/rosidl#183 (comment)
mikaelarguedas commentedon Jul 26, 2017
@esteve I'm going to put this in backlog due to the low activity and the fact that we are not planning on allocating time to this in the next cycle. We will still happily review and test changes to the referenced PRs
esteve commentedon Jul 29, 2017
@mikaelarguedas the last missing piece of this is ros2/rosidl#183, I proposed a solution but I don't know if that's the correct one (ros2/rosidl#183 (comment)). I'll gladly work on it, but @dirk-thomas seemed to have his doubts about the proposed solution in ros2/rosidl#183 (comment)
I can go ahead and implemented what I proposed (adding
ament_cmake_rosto message packages) if it has a chance of being considered for merging. But if there's any other proposal, I can implement that either.dirk-thomas commentedon Mar 1, 2018
I am closing this in favor of #468 which aggregates the PRs which are currently being worked on.