OpenCV,Ubuntu 11.04 [英] OpenCV, Ubuntu 11.04

查看:113
本文介绍了OpenCV,Ubuntu 11.04的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在Ubuntu 11.04上安装OpenCV 2.2.据我可以从这里收集的信息: http://tech. groups.yahoo.com/group/OpenCV/message/79758 ),make命令会传递上述线程中描述的初始错误,但稍后会失败.我收到错误消息:

I've been trying to install OpenCV 2.2 on Ubuntu 11.04. As far as I can gather from here: linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04, the installation fails because video4linux is no longer in the kernel. If I follow the guide linked to in the above thread (http://tech.groups.yahoo.com/group/OpenCV/message/79758), the make-command passes the initial error described in the above thread, but fails at a later point. I get the error:

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有关.

This error also seems related to video4linux.

有什么建议吗?

感谢一堆, AndreasMøgelmose

Thanks a bunch, Andreas Møgelmose

推荐答案

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

You may find this blog post useful: http://salikscodingblog.wordpress.com/2011/08/05/compiling-opencv-2-on-ubuntu/

这篇关于OpenCV,Ubuntu 11.04的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆