opencv - 在ubuntu 11.10中编译opencv2.3.1

标签 opencv ffmpeg undefined-reference

这是我遵循的教程: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 toav_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/

相关文章:

c# - FFMPeg 2 通过 c#

encryption - 如何使用 libavformat/movenccenc.c ffmpeg ibrary 进行视频加密?

c++ - 对 'Class<Type>::Class' 的 undefined reference

C K&R 1.7 功率函数

python - OpenCV内存不足错误

python - 如何在python2.7中使用cv2制作一个新的过滤器并将其应用于图像?

ffmpeg - 如何获取DVD中的标题和章节信息?

c++ - MongoDB 2.4 C++ 驱动程序 - 对 `SSL_CTX_use_certificate_chain_file' 的 undefined reference

python - OpenCV 错误 : bitwise_and throws error that mask and image are not same size

python - OpenCV Python GTK错误