[erlang-questions] How to load a port driver which itself uses a shared library?

Sergej Jurečko sergej.jurecko@REDACTED
Fri May 15 09:41:38 CEST 2015


To check shared library paths that your driver is looking for:

Linux: ldd your_driver.so
Osx: otool -L your_driver.so


Sergej

On Fri, May 15, 2015 at 4:57 AM, Diptansu Das <diptansu@REDACTED> wrote:

> I need to create a port driver which will need to link against some other
> shared library. When I try to load the driver I get an {error, {open_error,
> -10}}. I tracked this down to the call to the shared library functions. If
> I comment out the calls to the shared library it loads fine. It seems the
> erl_ddll loader cannot load a driver if it links to a shared library... Or
> maybe there is some other way to accomplish this?
> In case I cannot create a normal dynamically loaded port driver, how can I
> statically link it to the erlang build?
> Thanks,
> D
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150515/963cfdfb/attachment.htm>


More information about the erlang-questions mailing list