Message Boards Message Boards

0
|
2190 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

How to use shared libraries with LibraryLink on Linux?

Posted 9 years ago

First I have to link to this old thread on the subject:

I am having a similar but distinct problem on Linux. My LibraryLink library depends on a shared library which was installed using the usual means (apt-get on Ubuntu 15.04). If I load this shared library explicitly using LibraryLoad then everything works fine. But if I don't, the kernel simply crashes when trying to load the LibraryLink library.

Is there a way to avoid having to manually load this dependency using LibraryLoad?

Is it normal that on Linux the kernel just crashes instead of emitting a LibraryFunction::libload message, like it would on OS X? Or is it a bug?

I am compiling in the standard way using CreateLibrary[{"myfile.cpp"}, "Libraries" -> {"someDependency"}].

My knowledge about shared library loading mechanisms is quite limited.

POSTED BY: Szabolcs Horvát

Without an example, it is hard to say whether the runtime crash is expected.

It might be the result of lazy binding, or something else entirely.

POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract