我试图在VS 2010中使用OpenCV.我是业余爱好者,我正在学习OpenCV维基的第一步.但是,在尝试调试我的项目时,我收到以下错误:
'C:\ Windows\SysWOW64 \ntdll.dll',无法找到或打开PDB文件'C:\ Windows\SysWOW64\kernel32.dll',无法找到或打开PDB文件'C:\ Windows\SysWOW64\kernellbase. dll',无法找到或打开PDB文件
我在正确的目录中有这些文件,为什么不能打开它们呢?我该怎么做才能解决这个问题?
我尝试在NVIDIA的官方网站上运行示例程序.大多数程序运行顺利,除了少数我收到类似错误消息的地方.我该如何解决这个问题?这是运行名为"MatrixMul"的程序后得到的错误消息示例.
注意:我在Window7x64操作系统上安装了x32和x64 NVIDIA CUDA Toolkit v5.0.
'matrixMul.exe': Loaded 'C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\matrixMul.exe', Symbols loaded.
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Program Files (x86)\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\cudart32_50_35.dll', Binary was not built with debug information.
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Cannot find or open the PDB file …Run Code Online (Sandbox Code Playgroud) 我刚下载了VS 2013社区版,我编写了我的第一个应用程序.当我运行它时,它显示在输出部分:
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\Toshiba\Documents\Visual Studio 2013\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp120d.dll'. Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\msvcr120d.dll'. Cannot find or open the PDB file.
The program '[11196] ConsoleApplication1.exe' has exited with code 0 (0x0).
Run Code Online (Sandbox Code Playgroud)
问题是什么?我在许多网站上检查了我的代码,所以我知道问题不在我的代码中.谁能帮我?
我一直在使用VS2015 RC直到7月19日,然后卸载并随后安装了VS2015社区(官方发布).我能够在VS2015 RC上成功调试和运行C++程序,但是,当我现在尝试运行我过去成功调试的任何简单程序或任何新程序时,VS2015社区给我一个弹出窗口,上面写着:"这个项目已过期.ProjectName - Debug Win32.你想构建它吗?"
我一直在SO上发现这个:Visual Studio Project已经过时了,但即使删除了所有的.tlog文件,我仍然遇到了同样的问题.我也删除了所有.pdbs,但这也没有帮助.有谁知道修复可能是什么?谢谢!
我使用的是最近升级的 Visual Studio 2010。该解决方案包含 25 个项目,制作了十几个 dll 和 exe。我正在尝试调试特定问题,但由于未加载符号而无法调试。
我得到“无法找到或打开 PDB 文件”,这是针对项目生成的 DLL 之一的 PDB 文件,所有其他 PDB 文件都加载得很好。PDB文件与dll存在于同一目录中,我也清理并重建了解决方案。
此外,我对 pdb 名称运行了进程资源管理器过滤,这表明它已被找到、打开并成功读取。奇怪的是,它还继续在其他位置寻找 pdb。
有没有人对此有任何想法?
我在Visual Studio 2012中设置了一个OpenCV C++项目.为了使它工作,我使用了各种项目属性页面
opencv_highgui246d.dll构建后事件,命令行:复制DLL和lib文件以及一些示例内容:
xcopy/y $(SolutionDir)..\Libs\OpenCV\2.4.6\$(平台)\ $(配置)*.dll $(ProjectDir)$(平台)\ $(配置)\ xcopy/y $(SolutionDir )..\Libs\OpenCV\2.4.6\$(平台)\ $(配置)*.lib $(ProjectDir)$(平台)\ $(配置)\ xcopy/y $(ProjectDir)opencv-logo.jpg $(ProjectDir)$(平台)\ $(配置)\ xcopy/y $(ProjectDir)sample.wmv $(ProjectDir)$(平台)\ $(配置)\
我试图调试的代码行与VideoCapture这里给出的OpenCV类的示例代码中的代码行大致相同:http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html
VideoCapture cap(0); // open the default camera
if(!cap.isOpened()) // check if we succeeded
return -1;
Run Code Online (Sandbox Code Playgroud)
但我正在打开一个文件
VideoCapture cap ("sample.wmv");
if (FileExists("sample.wmv"))
{
OutputDebugString("File exists\n");
}
else
{
OutputDebugString("File does not exist\n");
}
if(!cap.isOpened())
{
cout <<"Failed to open camera" << endl;
OutputDebugString("Failed to open camera\n"); …Run Code Online (Sandbox Code Playgroud) 这是代码:
#include <windows.h>
#include <windowsx.h>
// the WindowProc callback function prototype
LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
// win32 entry point
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){
///*
// window handler
HWND hwnd;
// struct for window information
WNDCLASSEX wc;
// clear out the window class for use
ZeroMemory(&wc, sizeof(WNDCLASSEX));
// setting wc struct with window values/properties
wc.cbSize = sizeof(WNDCLASSEX);
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.hInstance = hInstance;
wc.hCursor = LoadCursor(NULL, IDC_ARROW); …Run Code Online (Sandbox Code Playgroud) c++ ×3
opencv ×2
visual-c++ ×2
c++builder ×1
cuda ×1
debugging ×1
nvidia ×1
pdb ×1
winapi ×1
window ×1