这是我遵循的教程:http://thebitbangtheory.wordpress.com/2011/10/23/how-to-install-opencv-2-3-1-in-ubuntu-11-10-oneiric-ocelot-with-python-support/
我认为问题出在ffmpeg上,我使用的版本是0.8.10,并且我将其安装在/usr中并启用了共享,但是当我编译opencv时,输出充满了
./../lib/libopencv_highgui.so.2.3.1: undefined reference to
av_codec_get_id' ../../lib/libopencv_highgui.so.2.3.1: undefined reference to
av_seek_frame'
../../lib/libopencv_highgui.so.2.3.1: undefined reference to `avpicture_get_size
最佳答案
检查您的 LD_LIBRARY_PATH 和 PKG_CONFIG_PATH,以及您安装 ffmpeg 的位置。
参见here有关步骤的更多信息。
关于opencv - 在ubuntu 11.10中编译opencv2.3.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9307824/