[英]Visual Studio 2017 'C:\OpenCV-3.3.0\opencv\build\x64\vc14\bin\opencv_world330d.dll'. Cannot find or open the PDB file
What should I do when I get this message?收到此消息后该怎么办?
(Win32): Loaded 'C:\\OpenCV-3.3.0\\opencv\\build\\x64\\vc14\\bin\\opencv_world330d.dll'.
(Win32):加载“C:\\OpenCV-3.3.0\\opencv\\build\\x64\\vc14\\bin\\opencv_world330d.dll”。 Cannot find or open the PDB file.
无法找到或打开 PDB 文件。
Not only in this file, but I get it in the others as well.不仅在这个文件中,我也在其他文件中得到了它。
PDB is for debugging with DLL library. PDB 用于使用 DLL 库进行调试。 Thinks are little bit complicated but one think you can ignore this.. The PDB is created when you are compile C/C++ program with /ZI or /Zi settings.
认为有点复杂,但认为您可以忽略这一点。当您使用 /ZI 或 /Zi 设置编译 C/C++ 程序时,会创建 PDB。 It could happened when you compile wrong opencv program with wrong settings.
当您使用错误的设置编译错误的 opencv 程序时,可能会发生这种情况。 I think also that version opencv 3.3.0 have not build for VC141 visual studio 2017, and your library are just VC140.
我还认为 opencv 3.3.0 版本还没有为 VC141 Visual Studio 2017 构建,而您的库只是 VC140。 But not sure about this.
但不确定这一点。
Well, now there is a smarter solution with opencv and with most of the c++ packages out there there is a package manager called vcpkg.好吧,现在有一个更智能的解决方案,opencv 和大多数 c++ 包都有一个名为 vcpkg 的包管理器。 vcpkg compiles the library from source.
vcpkg 从源代码编译库。 Therefore you don't need to worry about compiler compatability.
因此,您无需担心编译器兼容性。 So, installing opencv with vcpkg is as simple as vcpkg install opencv ( this install 32 bit version) For 64 bit version, it is as simple as vcpkg install opencv:x64-windows and with visual studio adding a library is something as simple as typing vcpkg intgrate install Consider using vcpkg for this https://github.com/microsoft/vcpkg
因此,使用 vcpkg 安装 opencv 就像 vcpkg install opencv 一样简单(此安装 32 位版本)对于 64 位版本,就像 vcpkg install opencv:x64-windows 一样简单,并且使用 Visual Studio 添加库就像键入一样简单vcpkg intgrate install 考虑为此https://github.com/microsoft/vcpkg使用 vcpkg
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.