views:

679

answers:

4

Hey all,

I'm building OpenCV2.1 from top of branch in 64 bit mode, when I link the libraries against my code (that works in 32 bit mode on XP), I get the dialog:

"The application was unable to start correctly (0xc0150002) Click OK to close the application"

When I start the application. The event viewer is pointing at one of the OpenCV dll's & says it's a Side-by-Side error, but I'm definitely building OpenCV & my code as a 64 bit compile, and there are no errors during that process. I've tried fiddling with the /MTd options & it doesn't help. Some (almost) related questions have suggested installing the VS2008 redistributable package, but I'm building using vs2008 pro, that seems like madness? Is it still necessary to install the package in my case?

Any help, including the cause of these side-by-side errors, would be appreciated.

James

A: 

Have you found a solution for this? I'm running into the same error trying to debug my app (which runs just fine in release mode).

Doug Porter
Hey Doug, no solution I'm afraid, though interesting that it runs in Release for you, I didn't try that (but it might be a workaround for me). Do let me know if you find anything! I found the opencv forums entirely useless, but I've posted here: http://tech.groups.yahoo.com/group/OpenCV/message/70812
James
A: 

Hi,

I have the same behavior. (Even if i use opencv 2.0). Also tried the Yahoo OpenCV group with out any luck...basically they don't answer many of this type of Q:s.

Have you (or James) solved it?

/David

David
A: 

i had the same trouble when i just downloaded OpenCV-2.1.0-win32-vs2008.exe.

all you need is to rebuid OpenCV libs and dlls following instructions here http://opencv.willowgarage.com/wiki/VisualC++_VS2010_CMake.

CMake 2.8.2 is enough BTW.

ilya.devel
A: 

I has this problem as well. I tried to solve in many ways from many suggestions. I tried to do like all of you guys suggested but it still has the same problem. Oh! So tried to find the solution.

Ning