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.