Ask Your Question
0

0xc000007b error when trying the sample programs.

asked 2012-09-02 06:37:59 -0600

Despair gravatar image

using Windows 7 64bit sp1. Visual Studio 2008 vc9 (got 64bit redistribution installed)

been googling for many hours , reinstalled opencv a few times , with different versions.

so far I found out that this error is caused by 32bit - 64bit encounter.

I downloaded Dependency Walker and checked my debug exe it had a few "cannot find" messeges MSVCP80D.dll, MSVCR80D.dll , IESHIMS.dll and TBB_DEBUG.dll

so I tried to get those files into the project folder. downloaded the first 3 and got the tbb_debug from the opencv folder

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!)

edit retag flag offensive close merge delete

Comments

you think if i install a second OS ( windows 7 32 bit) i wont have those troubles? is it worth trying>?

Despair gravatar imageDespair ( 2012-09-02 13:11:50 -0600 )edit

Yes I have. All except step number 3 that says to choose a build, because I can't find where to select one. All I see in Downloads are 2.4.1 - nothing about 64/32 bit there

thanks though

Despair gravatar imageDespair ( 2012-09-03 01:38:31 -0600 )edit

It seems, that the problem can be with tbb libs. You should copy it to your project (as you did). Check, what application compiled in the same mode (32 or 64 bit) as the used libs. In downloaded archive (OpenCV-2.4.2.exe) you found binaries, compiled with different versions of VS, so chose appropriate.

Daniil Osokin gravatar imageDaniil Osokin ( 2012-09-03 03:28:17 -0600 )edit

still fails to load, now i have linking issues also.... guess i should try the windows32bit install ? :(

Despair gravatar imageDespair ( 2012-09-03 06:28:49 -0600 )edit

It can helps (try on virtual machine), but it's not a solution. I'm hear about problems with tbb's libs (as mentioned before), but everything else should works fine. May be you have broken links in project to OpenCV libs (as soon as you reinstall OpenCV many times)?

Daniil Osokin gravatar imageDaniil Osokin ( 2012-09-03 23:36:10 -0600 )edit

I also get the same error when i run a sample program. I have a windows7 64bit machine. I compiled and linked a small sample program with visual studio 2010 professional in 64bit debug mode. The program runs fine in 32bit mode. It also compiles and links fine in 64 bit mode (changed the libraries to 64bit versions of OpenCV), however when i run it, it immediately returns with the 0xc000007b message, and shuts down. I have not been able to find a solution to this on the internet. what is wrong here?

cvandert gravatar imagecvandert ( 2013-09-04 10:25:45 -0600 )edit

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".

Tapsu gravatar imageTapsu ( 2014-07-28 03:30:53 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2014-03-28 03:52:52 -0600

zywcfC gravatar image

I used to have the similar problem as you, but I finally solved it. I had that problem was because I set the environment variables PATH's value as "……\x64\……"(for DLL) while my vs2013 is 32bit. So when I changed the x64 to x86, the problem was gone.

edit flag offensive delete link more

Comments

Thanks a lot. This solved my problem too.

axarturk gravatar imageaxarturk ( 2014-08-07 09:37:04 -0600 )edit

Question Tools

Stats

Asked: 2012-09-02 06:37:59 -0600

Seen: 7,389 times

Last updated: Jul 25 '14