Recent kernels (>= 2.6.38 ) doesn't have linux/videodev.h anymore (Bug #1047)
Description
V4L1 have been removed from the 2.6.38 kernel at all.
At least in a fedora 15 kernel, there is not even the v4l1-compat layer.
The consequence is that OpenCV 2.2.0 and currentl trunk fails to build from sources.
The following patch only restore the capability to build from source without having tested the videocapture feature.
Associated revisions
Merge pull request #1047 from jet47:gpustream-remove-obsolete
History
Updated by Francisco Calderon almost 14 years ago
linux/videodev.h is now in libv4l1-videodev.h in "ubuntu 11.04" change this #include in "opencv/modules/highgui/src/cap_libv4l.cpp"
I use svn, rev 5044, and cmake is not generating the define HAVE_CAMV4L only HAVE_CAMV4L2 even if V4L is installed. i change this manually because y have no V4L cameras until i made this two little changes.
ref:
http://opencv-users.1802565.n2.nabble.com/Ubuntu-11-04-and-OpenCV-2-2-td6320520.html
Updated by Francisco Calderon almost 14 years ago
other link
http://lists.fedoraproject.org/pipermail/devel/2011-February/148519.html
and in necessary to install libv4l-dev
Updated by Vadim Pisarevsky almost 14 years ago
the latest SVN version builds fine on Ubuntu 11.04, though libv4l is necessary to get video from V4L devices.
- Status changed from Open to Done
- (deleted custom field) set to fixed