Configuring Opencv2.4.6 in Eclipse

asked 2013-10-05 17:12:47 -0500

mcprakash gravatar image

Hi guys I am trying to run OpenCv 2.4.6 in Eclipse in Linux. I have added the lib and include directories as is mentioned in http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html However I am getting an error in undefined semantic IplImage. My src code is as follows :

include <stdio.h>

include <cv.h>

include <cxcore.h>

include <highgui.h>

int main()

{

IplImage* img= cvLoadImage(1,1);

cvNamedWindow("Hello World",1);

cvShowImage("Hello World",img);

cvWaitKey(0);

cvReleaseImage(&img);

return 0;

}

Please help me out if possible at the earliest.

CP

edit retag flag offensive close merge delete