OpenCV 2.4.12 dependencies

asked 2017-01-19 01:43:43 -0500

renV gravatar image

I used opencv 2.4.12 for develop a dll project. I am using that dll with an http://ASP.NET MVC project. When i try to use this mvc project in other machines, My dll give dependency error. it is working mine an one other computer but it is not working some other computers, All computers I used have mostly same configurations;

  • Windows 10
  • 64 Bit
  • IIS Manager 10.

Question is, which redistributables I need to check and which system components(System32 dlls) opencv2.4.12 needs ?

edit retag flag offensive close merge delete



that's not an opencv problem. Use dependancy walker. Don't use debug dll. Opencv use opencv_ffmpeg.dll

LBerger gravatar imageLBerger ( 2017-01-19 01:52:27 -0500 )edit

I used dependency walker, I tried my project with 3 different computer;

  • First one is my own computer ( I developed project in mine) it is working
  • In second one I add local published project and it is working in this computer
  • Third one I tried but it gave "Could not load file or assembly 'myDll.DLL' or one of its dependencies"

I was run dependency walker in all computers and checked differences between results. Results was very strange,

  1. All of them has missed dlls API-MS-WIN-.dll and EXT-MS-WIN-.dll's.All of them also missed
  2. Third one (not worked) has some missing dlls like ;
  • EXT-MS-WIN*.'s
  • API-MS-WIN-*.DLL's

And these below dlls has warning; - EMCLIENT.DLL - KERNEL32.DLL - MSVCRT.DLL - NTDLL.DLL

renV gravatar imagerenV ( 2017-01-19 02:18:18 -0500 )edit

build opencv in static. I still think it's not an opencv problem google is your friend...

LBerger gravatar imageLBerger ( 2017-01-19 02:21:22 -0500 )edit

LBerger it is exactly opencv problem. If we don't know, what opencv need, how can we integrate our works to others?

renV gravatar imagerenV ( 2017-01-19 02:25:22 -0500 )edit

That's weird. When an opencv dll is missing in windows 10 message is "opencv_xxx.dll is missing. Try to..." What is exactly error message?

LBerger gravatar imageLBerger ( 2017-01-19 02:42:17 -0500 )edit

Error message is ; Could not load file or assembly 'MyOpenCV.DLL' or one of its dependencies. The specified module could not be found

If you need details; I post my problem there ""

renV gravatar imagerenV ( 2017-01-19 02:48:19 -0500 )edit

It seems, from the error that not the OpenCV but other dependencies of your system are breaking everything down. That means you need to look into that. Building a universal standalone app can be indeed quite challenging to get all dependencies right!

StevenPuttemans gravatar imageStevenPuttemans ( 2017-01-19 09:15:29 -0500 )edit

StevenPuttemans, I made same steps without opencv. I developed dll project (C++/CLR) than used it in ASP.NET MVC project than published it locally. It is working each computer. But when I add opencv again, it give that dll dependency error. It is weird I don't know what to do.

renV gravatar imagerenV ( 2017-01-19 09:22:16 -0500 )edit