c++ - VS 2013 OpenCV错误: Cannot find or open the PDB file

标签 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.

最佳答案

哦,这个问题在这里已经得到了如此频繁的回答..

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

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

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

关于c++ - VS 2013 OpenCV错误: Cannot find or open the PDB file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21918816/

相关文章:

windows - 剥离 Windows 路径前缀

python - 全局名称 'camera' 未在 python 中定义

c# - 在 Linux 上使用 CoreCLR 从 C++ 调用 C# 方法

c++ - C++中对象的动态成员

c++ - 使用 POCO 压缩 vector (c++)

android - OpenCV - NDK 更新后对 'cv::CascadeClassifier::detectMultiScale()' 的 undefined reference

c++ - 使用 C++ 在 opencv 中检测图像中任何文本的位置

c++ - 低效率的 std::move()?

windows - 如何在 Windows 上运行 nvidia-smi?

windows - 在目录中保留 100 个最新文件 - Windows 脚本移植