opencvsharp icon indicating copy to clipboard operation
opencvsharp copied to clipboard

Fedora 41 does not work libOpenCvSharpExtern.so not found

Open cs-clarence opened this issue 11 months ago • 1 comments

Both OpenCvSharp4 and OpenCvSharp4.runtime.linux-x64 are installed, what could be the problem? Is Fedora not supported at all?

cs-clarence avatar Jan 12 '25 15:01 cs-clarence

I had a similar problem and got this working on fedora 42 recently.

if you run ldd on libOpenCvSharpExtern.so you'll find that library links to older version of dependencies that newer version fedora have upgraded. For example the original libOpenCvSharpExtern.so links to libtiff.so.5 but fedora 42 provides libtiff.so.6 so dependency resolution will fail.

The solution is to just build it from source and make sure your C# program links against the libOpenCvSharpExtern.so you just built locally.

The project seems to be built with Ubuntu 22 I believe Ubuntu 24.04.2 LTS ships with libtff.so.6 so that should be a long term fix.

mberthaud avatar Apr 21 '25 23:04 mberthaud