Open
Description
Hi
I am trying to load a managed DLL that wraps an unmanaged .so
or .dylib
on Mac OS
If I create a CLI
app using dotnet
I can get it to work if I copy to DLL and the .dylib
into the output folder. As an FYI I have to rename the .so
to .dylib
If I create a simple test script in ifSharp
#r "managed_wrapper.dll"
open System
open LibraryName
let main =
Library.some_init_function(0) |> ignore
printfn "Hello World from F#!"
0
main
I get DllNotFoundException
even though the DLL and the .dylib
are in the same folder where I execute jupyter notebook
I have tried
- Putting
.so
and.dylib
in the same folder - setting DYLD_LIBRARY_PATH
- Various options from http://christoph.ruegg.name/blog/loading-native-dlls-in-fsharp-interactive.html
Related information
- Operating system: Mac OS 10.14.6
- jupyter core : 4.6.1
- jupyter-notebook : 6.0.2
- jupyter client : 5.3.4
- jupyter lab : 1.2.3
- dotnet: 2.1.401