I am trying to run simple display image program using opencv2.4.9 on fedora 18.
Here's my code:
#include<stdio.h>
#include<stdlib.h>
#include<opencv/cvaux.h>
#include<opencv/highgui.h>
#include<opencv/cxcore.h>
#include<opencv/cv.h>
int main()
{
IplImage* img = cvLoadImage("/home/tel/fruits.jpg",CV_LOAD_IMAGE_COLOR);
cvNamedWindow("opencvtest",CV_WINDOW_AUTOSIZE);
cvShowImage("opencvtest",img);
cvWaitKey(0);
cvReleaseImage(&img);// relaese img
return 0;
}
When I run using gcc image1.c -o image
I am getting the error:
In file included from /usr/local/include/opencv/cvaux.h:54:0,
from image1.c:4:
/usr/local/include/opencv2/video/background_segm.hpp:47:16: fatal error: list:No such file or directory
compilation terminated.
Also I have tried
gcc image1.c -o image -L/usr/local/lib
But it is giving me same error.It has some library linking issue.As I am not much aware about fedora opencv please guide me in this case. Please guide me for this issue.