Skip to content

shared library suffix returns d.so rather than just .so when using debug #31

Closed

Description

@wjwwood

This is a behavior inherited from poco:

http://pocoproject.org/docs/Poco.SharedLibrary.html#16662

This commonly doesn't work for us, so I will probably open a pull request to change the behavior of the shared library suffix function in class_loader to make that optional or remove it entirely.

Activity

  1. mikaelarguedas commented on Nov 3, 2017

    @mikaelarguedas
    Member

    Looking a bit into this it seems that we need to build poco with the definition POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX
    https://github.com/pocoproject/poco/blob/558c7ff45fe32ffed02736b9732b4a9d8044aa53/Foundation/include/Poco/Config.h#L177

    They don't expose that definition through CMake AFAICT so right now I'm tempted to extend the existing windows hack to the other platforms.

    #if !defined(WIN32)
    return Poco::SharedLibrary::suffix();
    #else
    // Return just .dll , as Poco::SharedLibrary::suffix() will return d.dll in debug mode.
    // This isn't common for our usecase (instead debug libraries are placed in a `Debug` folder).
    return ".dll";
    #endif

    The other option would be to host a modified version of Poco in the ros2 org and to compile it with that definition.

  2. dirk-thomas commented on Nov 7, 2017

    @dirk-thomas
    Member

    Maybe we should consider to support that use case rather than providing custom built packages to avoid the debug suffix?

  3. mjcarroll commented on Nov 2, 2026

    @mjcarroll
    Member

    This was because of Poco. rcpputils::get_platform_library_name doesn't have this problem anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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