Ask Your Question

Tapsu's profile - activity

2014-07-28 03:30:53 -0600 commented question 0xc000007b error when trying the sample programs.

How can it be that Dependency Walker says: "Error: Modules with different CPU types were found." and doesn't show you the bitness icons in the tree or list? Maybe this is where the problem is.

Otherwise, I would have found it helpful if some executable in the /bin would do something visible when opened by double-clicking rather than from a cmd window. It was not very easy to guess that it was supposed to be like that. In the spirit of instant feedback there could be, say, test_install.exe that would open a window with text "OpenCV is installed correctly".

2014-07-25 05:51:55 -0600 answered a question 0xc000007b error when trying the sample programs.

Got OpenCV 2.4.9 on Windows 7 x64, and managed to run the examples from command line (after almost two weeks of frustration).

Summary: Didn't install Visual Studio, just put 64-bit msvcp120.dll and msvcr120.dll in C:\opencv\build\x64\vc12\bin and ran opencv_createsamples.exe from command line.

Suspicious point: I don't quite understand what the OP meant by

now i still have the 0xc000007b messege when trying to use the executeable and the dependecny walker says the following:

Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. Error: Modules with different CPU types were found.

and in the files list nothing that i can see where the problem is at (no red lines no nothin!)

How can it be that Dependency Walker says: "Error: Modules with different CPU types were found." and doesn't show you the bitness in the tree or list? Maybe this is where the problem is, but anyway, I'll add the details of what I did.

Details: opencv_createsamples.exe asked for msvcp120.dll, tried to install Visual Studio 2013 but it seemed that didn't work very well: vcredist_x64.exe seemed OK, but vcredist_arm.exe said it was not a proper windows program or something like that, I got the impression the latter was 32 bit. And the required dll didn't seem to appear anywhere. Also, it seems I had Visual C++ 2010 earlier, but no Visual Studio as far as I can tell (I am aiming for OpenCV Java or JavaCV, because I know almost nothing about C/C++, sorry).

So I downloaded msvcp120.dll and msvcr120.dll (that opencv_createsamples.exe asked for) and put them in C:\opencv\build\x64\vc12\bin. At that point I got the "The application was unable to start correctly (0xc000007b). Click OK to close the application."

Opened opencv_createsamples.exe in Dependency Walker x64 and found that msvcr120.dll was 32-bit (along with some messages about some missing things, but I read somewhere those might be because Dependency Walker is outdated or something, so I ignored those).

Then I went to http://www.dll-files.com/dllindex/dll-files.shtml?msvcr120, clicked on "Alternative Versions" (JavaScript had to be enabled for that, otherwise no dice) and there was 32 bit and 64 bit zip-s listed for download.

When I put msvcp120.dll and msvcr120.dll in C:\opencv\build\x64\vc12\bin (same folder where opencv_createsamples.exe is) then I no longer got error messages but was asked for command line parameters instead (provided I ran it from command line, when double-clicked the window just closed). The parameter descriptions were somewhat incomprehensible except the image which I provided, and then got some more incomprehensible text (maybe if I had had any idea about what the program should do it might have made more sense).

Also, I had system path for C:\opencv\build\x64\vc12\bin, but I don't know if ... (more)