Windows 7 64/Visual Studio 2008/OpenCV2.1 错误:“应用程序无法正确启动 (0xhex).." [英] Windows 7 64 / Visual Studio 2008 / OpenCV2.1 error: "The application was unable to start correctly (0xhex).."

查看:16
本文介绍了Windows 7 64/Visual Studio 2008/OpenCV2.1 错误:“应用程序无法正确启动 (0xhex).."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在以 64 位模式从分支顶部构建 OpenCV2.1,当我将库链接到我的代码(在 XP 上以 32 位模式工作)时,我得到对话框:

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:

应用程序无法正确启动(0xc0150002)点击确定关闭应用程序"

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

当我启动应用程序时.事件查看器指向 OpenCV dll 之一的 &说这是一个并行错误,但我肯定是在构建 OpenCV &我的代码是 64 位编译,在这个过程中没有错误.我试过摆弄/MTd 选项 &它没有帮助.一些(几乎)相关的问题建议安装 VS2008 可再发行包,但我正在使用 vs2008 pro 构建,这似乎很疯狂?在我的情况下还需要安装软件包吗?

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.

詹姆斯

推荐答案

刚下载OpenCV-2.1.0-win32-vs2008.exe时也遇到了同样的问题.

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

您只需要按照此处的说明重新构建 OpenCV 库和 dllhttp://opencv.willowgarage.com/wiki/VisualC++_VS2010_CMake.

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 就足够了.

CMake 2.8.2 is enough BTW.

这篇关于Windows 7 64/Visual Studio 2008/OpenCV2.1 错误:“应用程序无法正确启动 (0xhex).."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆