2011-05-03 87 views
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將傳遞上述線程中描述的初始錯誤,但稍後會失敗。我得到的錯誤:OpenCV,Ubuntu 11.04

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

有什麼建議嗎?

多謝, 安德烈亞斯Møgelmose

+0

的可能重複[LINUX/videodev.h:沒有這樣的文件或目錄 - 在Ubuntu 11.04的OpenCV( http://stackoverflow.com/questions/5842235/linux-videodev-h-no-such-file-or-directory-opencv-on-ubuntu-11-04) – karlphillip 2011-05-03 14:28:17

+0

它不是重複的,這是一個不同的錯誤。 – XerXes 2011-05-04 11:55:16

+2

同時,我設法通過禁用CMake配置中的video4linux來編譯它。這使得安裝庫成爲可能,但是具有使USB攝像機不能用作輸入設備的相當不幸的副作用。所以這不是我所追求的。 – XerXes 2011-05-04 11:57:11

回答