我试图在Ubuntu 11.04上安装OpenCV2.2。但是OpenCV编译失败,提示与linux/videodev.h文件相关的错误。/usr/includes/linux目录中可用的文件名为videodev2.h。
/home/user/OpenCV-2.2.0/modules/highgui/src/cap_v4l.cpp:217:28: fatal error: linux/videodev.h: No such file or directory
compilation terminated.
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_v4l.o] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
有没有解决方案?
谢谢。
https://code.ros.org/svn/opencv/trunk
获取。此外,需要安装libv4l-dev
以及其他库。 - Niroshan