应用程序无法正确启动0xc150002 [英] The application was unable to start correctly 0xc150002

查看:172
本文介绍了应用程序无法正确启动0xc150002的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,所以我梳理了互联网,试图找到解决问题的方法,因为我决定要学习opencv,并且有时间让基本的hello world程序正常工作.

Hey guys so I have combed the internet trying to find a solution to my problems I had decided I want to learn to opencv and am having a hell of a time to get a basic hello world program working.

所以我首先从sourceforge下载OpenCV2.1 http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.1/

So I'll start of with I downloaded the OpenCV2.1 from sourceforge http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.1/

我当前正在Windows 7(32位)上运行Visual Studio 2010.

I am currently running Visual studio 2010 on Windows 7, 32 bit.

因此我安装了运行OpenCV2.1.exe文件并将OpenCV添加到我的路径环境中,然后我使用cmake构建库并按照以下说明运行 http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2010_CMake

So I installed ran the OpenCV2.1.exe file and added OpenCV to my path enviroment, I then build the libraries using cmake and ran through the following instructions http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2010_CMake

当我在上面的教程中构建代码时,我得到了一个完整的构建,但是当我尝试启动该程序时,出现了应用程序无法正确启动0xc150002"错误.有人有什么想法吗?

When i build the code in the tutorial abovei get a sucesfull build but when I try and start the program i get the "The application was unable to start correctly 0xc150002" error. Anyone have any thought ?

我查看了事件日志,这是我得到的信息

I looked at the event log and this is the information i get

"C:\ OpenCV2.1 \ bin \ cxcore210d.dll"的激活上下文生成失败.从属程序集Microsoft.VC90.DebugCRT,processorArchitecture ="x86",publicKeyToken ="1fc8b3b9a1e18e3b",type ="win32",version ="9.0.21022.8"找不到.请使用sxstrace.exe进行详细诊断.

Activation context generation failed for "C:\OpenCV2.1\bin\cxcore210d.dll". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.

Microsoft.VC90.DebugCRT,processorArchitecture ="x86",publicKeyToken ="1fc8b3b9a1e18e3b",type ="win32",version ="9.0.21022.8"

Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"

C:\ OpenCV2.1 \ bin \ cxcore210d.dll

C:\OpenCV2.1\bin\cxcore210d.dll

推荐答案

遇到了同样的问题.确实,我确实重建了Dll,但是在Windows的PATH环境变量中,旧的DLL C:\ OpenCV2.1 \ bin;在新生成的DLL C:\ OpenCV2.1 \ build \ bin \ Debug之前;这意味着总是旧的被加载了...现在可以了

Had the same problem. Indeed I did rebuild the Dlls, but in the PATH environment variable of Windows the old DLLs C:\OpenCV2.1\bin; were before the new built DLLs C:\OpenCV2.1\build\bin\Debug; which meant that always the old were loaded ... Now it works

这篇关于应用程序无法正确启动0xc150002的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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