2

我一直在尝试在 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

4

1 回答 1

2

您可能会发现这篇博文很有用: http ://salikscodingblog.wordpress.com/2011/08/05/compiling-opencv-2-on-ubuntu/

于 2011-08-05T01:26:19.280 回答