Skip to content

OSX issues linking to libraries #2

Closed
@virtuald

Description

@virtuald

Loading libraries dynamically via ctypes.LoadLibrary doesn't resolve dependencies, even if you load the dependent libraries first. Seems to be an OSX specific thing, and other python libraries have ran into this (tensorflow)

Indeed, even the default pybind11 library that was generated by robotpy-build isn't able to find the library that it linked to. I suspect this could be addressed by changing the import path.

One potential solution is to install libraries to ~/lib: tensorflow/tensorflow#6729 (comment) ... this is doable with a post-install step but we would want to properly version the library file if we took that approach.

Other potential solutions include changing the libraries via install_name_tool.

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