Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

problem with Eclipse Indigo/MinGW/run

My Eclipse collapses when i execute the code...

I'm using this example but in Windows Vista: http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html

include <opencv cv.h="">

include <opencv highgui.h="">

using namespace cv;

int main( int argc, char** argv ) { Mat image; image = imread( argv[1], 1 );

if( argc != 2 || !image.data ) { printf( "No image data \n" ); return -1; }

namedWindow( "Display Image", CV_WINDOW_AUTOSIZE ); imshow( "Display Image", image );

waitKey(0);

return 0; }

In GCC C++ Compiler i putted "C:\opencv\build\include" In GCC C Compiler "C:\opencv\build\include" In MinGw C++ Linker "C:\opencv\build\x86\mingw\lib" and i load all dynamic lib

when i build all, it is all ok... when i click on run, Eclipse collapse and there is a message of window that program will be stop

problem with Eclipse Indigo/MinGW/run

image description

My Eclipse collapses when i execute the code...

I'm using this example but in Windows Vista: http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html

include <opencv cv.h="">

include <opencv highgui.h="">

using namespace cv;

int main( int argc, char** argv ) { Mat image; image = imread( argv[1], 1 );

if( argc != 2 || !image.data ) { printf( "No image data \n" ); return -1; }

namedWindow( "Display Image", CV_WINDOW_AUTOSIZE ); imshow( "Display Image", image );

waitKey(0);

return 0; }

In GCC C++ Compiler i putted "C:\opencv\build\include" In GCC C Compiler "C:\opencv\build\include" In MinGw C++ Linker "C:\opencv\build\x86\mingw\lib" and i load all dynamic lib

when i build all, it is all ok... when i click on run, Eclipse collapse and there is a message of window that program will be stop