VS 2013 OpenCV 错误:找不到或打开 PDB 文件
Posted
技术标签:
【中文标题】VS 2013 OpenCV 错误:找不到或打开 PDB 文件【英文标题】:VS 2013 OpenCV Error: Cannot find or open the PDB file 【发布时间】:2014-02-20 20:28:08 【问题描述】:当我在编译一个 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.
【问题讨论】:
您是在 Debug 还是 Release 中构建的? PDB 文件是可用于在 IDE 中调试的符号。 【参考方案1】:哦,这里经常有人回答这个问题..
首先,这没有错误。这是一个警告。 prebuilt opencv 库确实没有 pdb 文件(dl 大小)。
所以,您仍然可以运行/调试您自己的代码,但在调试时不能深入到 opencv 库中。
再次,没有错误。如果您仍然需要该功能,则必须使用 cmake 在本地重建 opencv,这也会生成那些 pdb 文件。
【讨论】:
现在没问题了。我毁了它。谢谢 我不记得了,抱歉 :) 我昨天做了以上是关于VS 2013 OpenCV 错误:找不到或打开 PDB 文件的主要内容,如果未能解决你的问题,请参考以下文章
VS2017打开VS2010项目报 “找不到*.xaml”错误
安装了vs2010和Visual.Fortran.Composer.XE.,但打开vs后就是找不到fortran是怎么回事啊,求解答