Ask Your Question
1

Cannot find or open the PDB file and source information stripped

asked 2013-09-13 12:03:28 -0600

AyamSakata gravatar image

updated 2013-09-13 12:07:37 -0600

Hi :) Im completely new in OpenCV and Visual Studio 2010,, so as a start up testing project, I copied a sample code from here which is a basic code for loading an image

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>

 using namespace cv;
 using namespace std;

 int main( int argc, char** argv )
 {
   if( argc != 2)
{
 cout <<" Usage: display_image ImageToLoadAndDisplay" << endl;
 return -1;
}

Mat image;
image = imread(argv[1], CV_LOAD_IMAGE_COLOR);   // Read the file

if(! image.data )                              // Check for invalid input
{
    cout <<  "Could not open or find the image" << std::endl ;
    return -1;
}

namedWindow( "Display window", CV_WINDOW_AUTOSIZE );// Create a window for display.
imshow( "Display window", image );                   // Show our image inside it.

waitKey(0);                                          // Wait for a keystroke in the window
return 0;

}

and then when i debug it, the output prints this,..

'MyNewOpenCV.exe': Loaded 'C:\Users\REgiINn\Documents\Visual Studio 2010\Projects\MyNewOpenCV\Debug\MyNewOpenCV.exe', Symbols loaded. 'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\ntdll.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\kernel32.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Program Files\opencv\build\x86\vc10\bin\opencv_core246d.dll', Cannot find or open the PDB file

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Program Files\opencv\build\x86\vc10\bin\opencv_highgui246d.dll', Cannot find or open the PDB file

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\user32.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\gdi32.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\lpk.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\usp10.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\ole32.dll', Symbols loaded.

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\advapi32.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\sechost.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll', Symbols loaded

(source information stripped). 'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\avifil32.dll', Symbols loaded (source information

stripped). 'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\winmm.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\msacm32.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\shell32.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32\avicap32.dll', Symbols loaded (source information stripped).

'MyNewOpenCV.exe': Loaded 'C:\Windows\System32 ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-09-13 12:14:37 -0600

The PDB are missing because you don't have compile your own version of OpenCV, but used the precompile instead. But you don't need it to test your program.

For the issue you seem to encounter, it's because your sample wait for an image from the command line: if( argc != 2) therefore, if you don't provide an image path from the command line, it won't load the picture and ends immediately. This is what you see from the last line of your log (return -1; is translated into the log by 'has exited with code -1'. So your program is working as expected. You just have to provide an image to the command line (Google it if you don't know how to do that with Visual Studio).

To summarize, everything is working like a charm, but you have to understand what your program is supposed to do and how to use it. Enjoy.

edit flag offensive delete link more

Comments

Thanks a lot :),

I tought it was another installation problem,,. I tried editing the code, and it actually run, thanks again i will certainly enjoy image processing,. :)

AyamSakata gravatar imageAyamSakata ( 2013-09-13 12:43:48 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-09-13 12:03:28 -0600

Seen: 6,087 times

Last updated: Sep 13 '13