OpenCV 2.4.12 dependencies [closed]

asked 2017-01-19 01:43:43 -0600

renV gravatar image

updated 2020-10-27 22:59:41 -0600

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 http://asp.net 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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-15 14:19:26.462415

Comments

1

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 -0600 )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
  • DEVICELOCKHELPERS.DLL

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

renV gravatar imagerenV ( 2017-01-19 02:18:18 -0600 )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 -0600 )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 -0600 )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 -0600 )edit
1

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 "http://stackoverflow.com/questions/41258788/could-not-load-file-or-assembly-myclr-dll-or-one-of-its-dependencies-the-spec"

renV gravatar imagerenV ( 2017-01-19 02:48:19 -0600 )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 -0600 )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 -0600 )edit