VS 2013 OpenCV错误:无法找到或打开PDB文件

时间:2014-02-20 20:28:08

标签: c++ windows opencv visual-studio-2013

当我正在编写一个opencv示例项目时,我有这样的错误:

'opencv2.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_core248.dll'. Cannot find or open the PDB file.
'opencv2.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_highgui248.dll'. Cannot find or open the PDB file.
'opencv2.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_contrib248.dll'. Cannot find or open the PDB file.
'opencv2.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_flann248.dll'. Cannot find or open the PDB file.
'opencv2.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_imgproc248.dll'. Cannot find or open the PDB file.
'opencv2.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_features2d248.dll'. Cannot find or open the PDB file.
'opencv2.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_calib3d248.dll'. Cannot find or open the PDB file.
'opencv2.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_ml248.dll'. Cannot find or open the PDB file.
'opencv2.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_video248.dll'. Cannot find or open the PDB file.
'opencv2.exe' (Win32): Loaded 'C:\opencv\build\x64\vc12\bin\opencv_objdetect248.dll'. Cannot find or open the PDB file.

1 个答案:

答案 0 :(得分:3)

哦,这里经常有人回答这个问题。

首先,这不是错误。这是一个警告。 预构建的 opencv库确实没有pdb文件(dl大小)。

所以,您仍然可以运行/调试您自己的代码,但在调试时无法深入了解opencv库。

再次,没有错误。如果您仍然需要该功能,则必须使用cmake在本地重建opencv,这也将生成这些pdb文件。