Skip to content

ubuntu22, net6.0 use OpenCvSharp4 throw exception: Unable to load shared library 'OpenCvSharpExtern' or one of its dependencies. #1618

@cwf689

Description

@cwf689

Environment:

system:
ubuntu22 , arm64
libs:
OpenCvSharp4 ver 4.8.0.20230708
OpenCvSharp4.Extensions ver 4.8.0.20230708
OpenCvSharp4.runtime.linux-arm ver 4.8.0.20230708
OpenCvSharp4.runtime.linux-arm64.cuda ver 4.8.0.20230708

Example code:

using OpenCvSharp;
...
var capture = new VideoCapture(0);

Output:

The type initializer for 'OpenCvSharp.Internal.NativeMethods' threw an exception. 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

What did you intend to be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions