简体   繁体   中英

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'. Cannot find or open the PDB file.

Not only in this file, but I get it in the others as well.

PDB is for debugging with DLL library. 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. It could happened when you compile wrong opencv program with wrong settings. I think also that version opencv 3.3.0 have not build for VC141 visual studio 2017, and your library are just 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. vcpkg compiles the library from source. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM