在ubuntu 11.10中编译opencv2.3.1 [英] compile opencv2.3.1 in ubuntu 11.10

查看:147
本文介绍了在ubuntu 11.10中编译opencv2.3.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我遵循的教程: http://thebitbangtheory.wordpress.com/2011/10/23/how-to-install-opencv-2-3-1-在ubuntu-11-10-oneiric-ocelot-with-python-support /

我认为问题是ffmpeg,我使用的版本是0.8.10,我安装在/ usr并启用了共享,但是当我遵守opencv时,输出的文件已经满了

Here is the tutorial I followed:http://thebitbangtheory.wordpress.com/2011/10/23/how-to-install-opencv-2-3-1-in-ubuntu-11-10-oneiric-ocelot-with-python-support/
I think the problem is ffmpeg, the version I used is 0.8.10, and I installed it in /usr and enabled share, but when I complied opencv,the output was full of


./../ lib / libopencv_highgui.so。 2.3.1:未定义的引用 av_codec_get_id'
../../lib/libopencv_highgui.so.2.3.1:未定义的引用
av_seek_frame'

../../lib/libopencv_highgui.so.2.3.1:未定义的引用`avpicture_get_size

./../lib/libopencv_highgui.so.2.3.1: undefined reference to av_codec_get_id' ../../lib/libopencv_highgui.so.2.3.1: undefined reference toav_seek_frame'
../../lib/libopencv_highgui.so.2.3.1: undefined reference to `avpicture_get_size


推荐答案

感谢@karlphillip和@ Appleman1234,我终于解决了我的问题。关键是删除包含cmake信息的/ release目录,并从头开始重新编译,即mkdir ./release,cd ./release,cmake,make和make install。 BTW,ffmpeg是0.8 +,我的是0.8.1。

Thanks to @karlphillip and @Appleman1234, and I solved my problem finally. The key is remove the /release directory that contains the cmake information and do the recompile from scratch, i.e. mkdir ./release, cd ./release, cmake, make and make install. BTW,ffmpeg is required 0.8+,and mine is 0.8.1.

这篇关于在ubuntu 11.10中编译opencv2.3.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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