I have a problem with running OpenCvShare on the Ubuntu Linux. It keeps saying that libOpenCvSharpExtern is not found.
I have a problem with running OpenCvSharp on my Ubuntu 18.04.1 x64. I have created a .NET Core/Standard solution (Standard is a library project, Core is the runner). The library project references Nuget packages: OpenCvSharp4 (4.0.0.20181225) OpenCvSharp4.runtime.ubuntu.18.04-x64 (4.0.0.20181225).
Then, after a succesfull compilation, I published the runner project using:
dotnet publish -c Release -r ubuntu.18.04-x64
The, when I run the executable on Ubuntu, following error is thrown:
Unhandled Exception: OpenCvSharp.OpenCvSharpException: Failed to create VideoCapture System.TypeInitializationException: The type initializer for 'OpenCvSharp.NativeMethods' threw an exception. OpenCvSharp.OpenCvSharpException: Unable to load shared library 'OpenCvSharpExtern' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libOpenCvSharpExtern: cannot open shared object file: No such file or directory ---> System.DllNotFoundException:
Unable to load shared library 'OpenCvSharpExtern' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libOpenCvSharpExtern: cannot open shared object file: No such file or directory
The file libOpenCvSharpExtern.so is in the same path that the executable, I have copied it inside usr/local/lib as well, and id didn't help. Aplication is meant to detect faces based on the camera feed.