shimat / opencvsharp

OpenCV wrapper for .NET
Apache License 2.0
5.39k stars 1.15k forks source link

Shared lib is not found on Ubuntu 20.04 #1276

Closed VsevolodKzn closed 2 years ago

VsevolodKzn commented 3 years ago

Summary of your issue

I'm getting exception when trying to use opencvsharp on Ubuntu 2004 with packages:

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

Setting lib path is not helping to resolve the issue: "LD_LIBRARY_PATH": "${workspaceFolder}/VideoServer/bin/Debug/netcoreapp3.1/runtimes/ubuntu.18.04-x64/native"

Environment

Ubuntu 2004

VsevolodKzn commented 3 years ago

Solved by getting older packages from archive: sudo apt install libopenexr22 sudo apt install libswscale4 sudo apt install libavformat57 sudo apt install libavcodec57

Any way it'll be great to have Ubuntu2004 support.

AvenSun commented 3 years ago

try to run command as follows ldd /xxx/libOpenCvSharpExtern.so check the library marked "not found" then install it

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.