Visual Studio 2012上的OpenCV,MSVCP120D.dll缺失

时间:2014-10-17 20:16:22

标签: c++ opencv visual-studio-2012

我在这里跟随用户的优秀指南如何在VS2012中使用openCV,一切顺利,直到我运行程序,我从调试中遇到这些消息。

'OPENCV_TEST.exe' (Win32): Loaded 'C:\Users\Michael\Documents\Visual Studio 2012\Projects\OPENCV_TEST\x64\Debug\OPENCV_TEST.exe'. Symbols loaded.
'OPENCV_TEST.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'OPENCV_TEST.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'OPENCV_TEST.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'OPENCV_TEST.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_core2410d.dll'. Cannot find or open the PDB file.
The program '[1228] OPENCV_TEST.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.

我知道它似乎正在尝试加载VS2013的.dll文件,因为它正在尝试打开vc12 bin,但我检查了我的路径并且它们都是vc11。我是一个完全的业余爱好者,所以非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

我假设您已为OpenCV库设置路径

打开解决方案的属性页

配置管理器

中选择发布配置

点击链接器,然后选择输入

修改其他相关性

添加以下内容:

opencv_ts300.lib

opencv_world300.lib

单击“确定”,然后单击“应用”并运行代码。 它应该工作。

enter image description here