Skip to content

Control shared/static linking via BUILD_SHARED_LIBS and ament_cmake_ros #306

Closed

Description

@esteve

Just an issue to aggregate all the connected PRs so that it shows up on the waffle board

Activity

  1. added
    in review
    on Jan 12, 2017
  2. added
    in progress
    and removed
    in review
    on Apr 5, 2017
  3. dirk-thomas commented on Apr 14, 2017

    @dirk-thomas
    Member
    • Build Status
    • Build Status
    • Build Status
  4. esteve commented on Apr 14, 2017

    @esteve
    MemberAuthor

    @dirk-thomas I assume you didn't pass BUILD_SHARED_LIBS to the CI build (i.e. the build is using the default SHARED value), right? If that's the case, it seems the code in ros2/rosidl_typesupport#10 doesn't read the BUILD_SHARED_LIBS variable as expected. Should ament_cmake_ros be 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 ?

  5. dirk-thomas commented on Apr 14, 2017

    @dirk-thomas
    Member

    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.

  6. esteve commented on Apr 17, 2017

    @esteve
    MemberAuthor

    @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.

  7. dirk-thomas commented on Apr 20, 2017

    @dirk-thomas
    Member

    Please see ros2/rosidl_typesupport#10 (comment) for the latest comment on this.

  8. dirk-thomas commented on Jun 7, 2017

    @dirk-thomas
    Member

    Any news on this?

  9. esteve commented on Jun 8, 2017

    @esteve
    MemberAuthor
  10. mikaelarguedas commented on Jul 26, 2017

    @mikaelarguedas
    Member

    @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

  11. removed
    in progress
    on Jul 26, 2017
  12. esteve commented on Jul 29, 2017

    @esteve
    MemberAuthor

    @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_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.

  13. self-assigned this
    on Oct 26, 2017
  14. added
    in progress
    on Oct 26, 2017
  15. self-assigned this
    on Nov 20, 2017
  16. dirk-thomas commented on Mar 1, 2018

    @dirk-thomas
    Member

    I am closing this in favor of #468 which aggregates the PRs which are currently being worked on.

  17. removed
    in progress
    on Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions