-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dll not found in ubuntu #34
Comments
Can you try version 1.0.0-preview5-20022501 from NuGet and see if it works? I just push #35 that may fix your issue. |
no,it's not work. Maybe we should only provide the csharp part, other problems to the user to solve it |
Just to confirm, do you have the OpenSlide package installed on your system? OpenSlideNET is only acting as a interop layer. It still requires the OpenSlide native library pre-installed. On Ubuntu 19.10, the command is:
Our Travis CI works on Ubuntu 18.04. You can see how it is set up in the .travis.yml in the repository root. |
As for packaging a cross-platform nuget package with native dependencies, Microsoft does not provide an official way to do it. Before #35, we were using a workaround proposed in this link. We generated a native stub that uses the Windows DLL name while it redirects all the native library call to the Linux shared library. This works, but makes it difficult to target new CPU architectures because we have to generate native stubs for every platform we wish to support. The native stubs used to be package in After #35, we have switched to use the MSBuild.Sdk.Extras package which enables us to conditional compile different codes for different platforms. On Linux, we are directing calling functions on |
oh, think you , it's ok now. Do you have a plan to add a windows platform nuget pack for automatically copy *.dll ? |
Visual studio 2019, net core 3.1
pubilsh for linux-x64
run in ubuntu 1910 x64 have exception:
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libopenslide-0.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibopenslide-0.dll: cannot open shared object file: No such file or directory
libopenslide-0.dll.so file and executables are in the same directory, i think nuget is worked.
this is my FolderProfile.pubxml in my visual studio, it‘s auto-generated by Build - Publish in vs:
The text was updated successfully, but these errors were encountered: