EmguCV DLL Not Found Exception -Unable to find cvextern?

1

To start,this is not another blind Emgu CV DLL Issue among the ones asked in SO and around the web.I have researched this issue and cannot find a solution.

I have updated the EmguCV version which i use in one of my projects to the latest version(3.4.3).Eveything works fine on the Dev Machine and on a Windows 10 machine.But when it comes to Windows 7 X64 Spack1 EmguCv throws up the never ending DLL not found Exception. I have had this issue when using the older version,which went away by installing the Visual Studio Redistributable .The current version seems to use Visual C++ 2017 Redistributable as there is a DLL file (14.0) in the EmguDir.I have tried installing the x86 version of 2015 and both x86 and x64 version of the 2017 VC Redistributable package.(My app is x86).I have also copied the x86 and x64 folders to the application directory(The older version seems to work fine without these folders, i just copied the contents of the x86 folder to the app dir).

enter image description here enter image description here

The same error occurs again.I'm stuck here.Kindly help me out

 ************** Exception Text **************
    System.TypeInitializationException: The type initializer for 'Emgu.CV.CvInvoke' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

The other DLLs (Emgu's are packed to main exe using a packer).

c#
.net
opencv
emgucv
asked on Stack Overflow Dec 4, 2018 by techno

2 Answers

3

Install using Nuget Package Manager in Visual Studio 2019 Tools> NuGet Package Manager > Package Manager Console

and Install this

  • Install-Package Emgu.CV
  • Install-Package Emgu.CV.runtime.windows

And everything worked fine for me.

answered on Stack Overflow Jan 16, 2021 by Abraham
0

I also have the same issues. On this forum emgucv, I don't know why cvextern.dll from emgucv 3.4.3 that cannot load cvextern ('cause unable to find cvextern), and you allowed to use file cvextern.dll from emgucv 3.4.2 (make sure you choose x64 / x86), copy at /bin/Debug and this file automatically found in /bin/Debug/x86 or /bin/Debug/x64when you finished build the program at Visual Studio.

Hope this help.

answered on Stack Overflow Jan 30, 2019 by Muhammad Andyk Maulana • edited Jan 30, 2019 by Vikrant

User contributions licensed under CC BY-SA 3.0