linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04

前端 未结 5 2137
小鲜肉
小鲜肉 2020-12-23 11:26

I tried to install OpenCV2.2 on Ubuntu 11.04. But OpenCV compilation fails stating an error related to linux/videodev.h file. File available in /user/includes/linux is name

5条回答
  •  余生分开走
    2020-12-23 11:46

    The patch is here: https://code.ros.org/trac/opencv/attachment/ticket/862/OpenCV-2.2-nov4l1.patch

    By adding #ifdef HAVE_CAMV4L around

    #include 
    

    in OpenCV-2.2.0/modules/highgui/src/cap_v4l.cpp and removing || defined (HAVE_CAMV4L2) from line 174 allowed me to compile.

提交回复
热议问题