1

I'm using Visual Studio 2022

Emgu.CV version 4.5.4.4788

Emgu.CV.Bitmap version 4.5.4.4788

Emgu.CV.runtine.windows version 4.5.4.4788

In debug and release mode I'm able to use everything in x64 and x86.

But when I publish it I'm getting an exception about the dlls

exception

I've read the documentation of Emgu CV but couldn't find the solution.

They said I need some dlls that I can't find.

aylon
  • 56
  • 1
  • 8
  • So, do you have mentioned cvextern.dll into your pulished package? – Serg Dec 04 '21 at 12:32
  • what do you mean by published package where can i find it? – aylon Dec 04 '21 at 12:39
  • You said `when I publish it`, so I assume that you have a bunch of files which is deployed somewhere and the app runned from there. So, is there `cvextern.dll` there? Also this may be helpful https://stackoverflow.com/questions/8028523/unable-to-load-cvextern-in-a-c-sharp-project – Serg Dec 04 '21 at 16:22

1 Answers1

0

You need to download and install the latest Microsoft Visual C++ Redistributable on your target machine.

There is new one for Visual Studio 2022.

Go to https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

Sha
  • 2,185
  • 1
  • 36
  • 61