Recent kernels (>= 2.6.38 ) doesn't have linux/videodev.h anymore (Bug #1047)


Added by Nicolas Chauvet almost 14 years ago. Updated almost 14 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:imgproc, video
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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.


OpenCV-2.2-nov4l1.patch - Fix FTBFS when linux/videodev.h isn't available (1.1 kB) Nicolas Chauvet, 2011-05-05 04:19 pm


Associated revisions

Revision 70deda35
Added by Andrey Pavlenko over 11 years ago

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 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

Also available in: Atom PDF