<div dir="ltr"><div><div><div><div>To check shared library paths that your driver is looking for:<br><br></div>Linux: ldd your_driver.so<br></div>Osx: otool -L your_driver.so<br><br></div><br></div>Sergej<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 15, 2015 at 4:57 AM, Diptansu Das <span dir="ltr"><<a href="mailto:diptansu@gmail.com" target="_blank">diptansu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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? <br>In case I cannot create a normal dynamically loaded port driver, how can I statically link it to the erlang build?<br>Thanks,<br>D</div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>