I am new to opencv and Eclipse. I have copied the code from this link:
http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html#linux-eclipse-usage
#include <cv.h>
#include <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;
}
After successful compilation, on debugging, I got this error message:
Error in final launch sequence
Failed to execute MI command:
-file-exec-and-symbols /home/jeni/workspace/FusionImage/src/FusionImage.cpp
Error message from debugger back end:
"/home/jeni/workspace/FusionImage/src/FusionImage.cpp": not in executable format: File format not recognized
"/home/jeni/workspace/FusionImage/src/FusionImage.cpp": not in executable format: File format not recognized
I'm using this on Ubuntu 14.04 LTS.
Why am i getting this? And how to solve this?