gpt4 book ai didi

opencv2.4.4 visual studio 2012 无法找到或打开 PDB 文件

转载 作者:太空宇宙 更新时间:2023-11-03 21:37:44 24 4
gpt4 key购买 nike

我正在使用 opencv 库和 VS2012 运行一个程序。我使用的是 windows 7 64 位,所以我通过项目属性将配置管理器更改为 x64。在我系统的环境变量中,我首先从命令提示符输入了这些条目:setx -m OPENCV_DIR C:\OpenCV\build 并将其添加到系统路径:%OPENCV_DIR%\build\x64\vc11\bin

在 Visual Studio 的属性管理器中,我将以下文件夹链接添加到项目属性:

  1. 在C/C++下,附加include目录,我添加了:$(OPENCV_DIR)\include

  2. 在 Linker 下,Additional Library Directory,我添加了; $(OPENCV_DIR)\x64\vc10\lib;

  3. 链接器、输入、附加依赖项,我添加了以下内容:

    opencv_core244d.lib opencv_imgproc244d.lib opencv_highgui244d.lib opencv_ml244d.lib opencv_video244d.lib opencv_features2d244d.lib opencv_calib3d244d.lib opencv_objdetect244d.lib opencv_contrib244d.lib opencv_legacy244d.lib opencv_flann244d.lib opencv_gpu244d.lib opencv_nonfree244d.lib opencv_photo244d.lib opencv_stitching244d. lib opencv_ts244d.lib opencv_videostab244d.lib

当我运行我的程序时,我遇到了这个错误

'ConsoleApplication0.exe' (Win32): Loaded 'D:\configuration\ConsoleApplication0\x64\Debug\ConsoleApplication0.exe'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\opencv\build\x64\vc11\bin\opencv_core244d.dll'. Cannot find or open the PDB file.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\msvcp110d.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\msvcr110d.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\opencv\build\x64\vc11\bin\opencv_imgproc244d.dll'. Cannot find or open the PDB file.'ConsoleApplication0.exe' (Win32): Loaded 'C:\opencv\build\x64\vc11\bin\opencv_highgui244d.dll'. Cannot find or open the PDB file.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\lpk.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\usp10.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_a4d6a923711520a9\comctl32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\msvfw32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\avifil32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\msacm32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\avicap32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\opencv\build\x64\vc11\bin\opencv_objdetect244d.dll'. Cannot find or open the PDB file.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbols loaded.'ConsoleApplication0.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Symbols loaded.The program '[4228] ConsoleApplication0.exe' has exited with code 1 (0x1).

有人知道为什么会这样吗?

最佳答案

这些都不是 fatal error 消息。这些只是诊断陈述(例如,没有任何问题,它只是通知您某些事件)。

PDB 文件是特定于 Visual Studio 的文件,其中包含项目的调试符号。如果您使用的是 OpenCV 的预构建库/dll,则不会有任何这些文件。幸运的是,您可以忽略这些消息,除非您希望使用调试器单步执行这些 dll 的代码。

如果它足够困扰您,您可以从源代码重新构建 opencv 并启用 /ZI/Zi 选项。然而,就目前而言,这些消息都不会表明有任何问题。您的程序以代码 1 (0x1) 退出是由其他原因引起的,但您没有提供足够的信息来确定是什么原因。

Here's the official description of PDB files from MSDN:

A program database (PDB) file holds debugging and project state information that allows incremental linking of a Debug configuration of your program. A PDB file is created when you compile a C/C++ program with /ZI or /Zi

关于opencv2.4.4 visual studio 2012 无法找到或打开 PDB 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16205498/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com