Hi
With the recent github version of of and ubuntu 10.10 I encountered the following error while compiling:
/openFrameworks/video/ofGstVideoGrabber.cpp:28: fatal error: linux/videodev.h: No such file or directory
Apparently linux-headers-2.6.35 only supplies videodev2.h
so I changed the include statement to
#include <linux/videodev2.h>
This ended with the following error:
../../../openFrameworks/video/ofGstVideoGrabber.cpp:68: error: aggregate video_capability v1cap has incomplete type and cannot be defined
../../../openFrameworks/video/ofGstVideoGrabber.cpp:109: error: VIDIOCGCAP was not declared in this scope
after some google searches I came up with the following fix:
#include <linux/videodev2.h>
#define VIDIOCGCAP _IOR('v',1,struct video_capability) /* Get capabilities */
struct video_capability
{
char name[32];
int type;
int channels; /* Num channels */
int audios; /* Num audio devices */
int maxwidth; /* Supported width */
int maxheight; /* And height */
int minwidth; /* Supported width */
int minheight; /* And height */
};
Now libopenframeworks.a compiled fine. But I don’t know yet whether the videoGrabber now or not. Anybody know more about this? Any thoughts? Should this be included in the official source?
lg.ph