VS2010+opencv2.4.10調試顯示Cannot find or open the PDB file出不了圖片問題。

已加載“D:\vs2010 c++\text\Debug\text.exe”,已加載符號。
“text.exe”: 已加載“C:\Windows\SysWOW64\ntdll.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\kernel32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\KernelBase.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\opencv_core2410d.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\msvcp100d.dll”,已加載符號。
“text.exe”: 已加載“C:\Windows\SysWOW64\msvcr100d.dll”,已加載符號。
“text.exe”: 已加載“D:\BaiduYunDownload\opencv\build\x86\vc10\bin\opencv_highgui2410d.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\user32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\gdi32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\lpk.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\usp10.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\msvcrt.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\advapi32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\sechost.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\rpcrt4.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\sspicli.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\cryptbase.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\ole32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\oleaut32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\avifil32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\winmm.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\msacm32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\msvfw32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\shell32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\shlwapi.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\avicap32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\version.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\imm32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\msctf.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Program Files (x86)\Common Files\Baidu\BDWebAdapter\2.0.320.0\BDEWebAdapterFrame.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\nvinit.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\detoured.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\Nvd3d9wrap.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\setupapi.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\cfgmgr32.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Windows\SysWOW64\devobj.dll”,Cannot find or open the PDB file
“text.exe”: 已加載“C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvdxgiwrap.dll”,Cannot find or open the PDB file
程序“[2280] text.exe: 本機”已退出,返回值爲 -1 (0xffffffff)。

編譯顯示以上問題的,就是圖片的名稱不對,如一下程序

#include "stdafx.h"
#include <opencv2\opencv.hpp>
#include <iostream>
#include <string>
using namespace cv;
using namespace std;
int main()
{
    Mat img = imread("pp.jpg");
    if(img.empty())
    {
        cout<<"error";
        return -1;
    }
    imshow("xx的靚照",img);
    waitKey();


    return 0;
}

需要把你要展示的圖片的名字改爲pp,而不是pp.jpg。還有個就是圖片的路徑,這個大家都懂,要在創建的項目目錄下。菜鳥昨天裝opencv搞了半天加個晚上,鬱悶,網上的辦法試了都沒用,就提下吧,沒啥含金量,哈哈。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章