Deploying OpenCV on RedHat distribution

Is there a list of all the dependencies needed to deploy OpenCV on RedHat?

I am using the following docker image (registry.access.redhat.com/ubi8/dotnet-50-runtime).

At runtime, I get the following error:

—> System.TypeInitializationException: The type initializer for ‘Emgu.CV.CvInvoke’ threw an exception.
—> System.DllNotFoundException: Unable to load shared library ‘cvextern’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libcvextern: cannot open shared object file: No such file or directory
at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)
at Emgu.CV.CvInvoke…cctor()
— End of inner exception stack trace —

This works fine when deploying on a Ubuntu image so I assume it’s a matter of dependencies.

  • invalid link above, please check
  • Emgu is a 3d party wrapper around opencv (think: cuckoo’s egg),
    mostly built around opencv’s deprecated and no more maintainable 1.0 C-api.
    DONT TRY WITH THAT!
    (if you MUST use c#, at least go with OpenCVSharp wappers, still, NO support from opencv at all !)
  • there is no cvextern lib here, it must be an EmGu artefact
    (and again, we cannot help)

@slashmeister did you ever get this working on redhat ?