我一直在尝试在 Ubuntu 11.04 上安装 OpenCV 2.2。据我可以从这里收集到:linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04,安装失败,因为 video4linux 不再在内核中。如果我按照上述线程(http://tech.groups.yahoo.com/group/OpenCV/message/79758)中链接的指南进行操作,make-command 将传递上述线程中描述的初始错误,但在稍后一点。我得到错误:
Linking CXX executable ../../bin/opencv_createsamples
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `cvCreateCameraCapture_V4L(int)'
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_createsamples] Error 1
make[1]: *** [modules/haartraining/CMakeFiles/opencv_createsamples.dir/all] Error 2
make: *** [all] Error 2
此错误似乎也与 video4linux 有关。
有什么建议么?
非常感谢,Andreas Møgelmose