简体   繁体   English

opencv安装ffmpeg错误

[英]opencv installation ffmpeg error

I have been trying to install opencv for a long time in my fedora 20 32 bit system.I followed the instructions from http://docs.opencv.org/trunk/doc/py_tutorials/py_setup/py_setup_in_fedora/py_setup_in_fedora.html#install-opencv-python-in-fedora But after all cmake commands when I m trying to make it I am getting an error again and again. 我一直在试图安装OpenCV在我的Fedora很长一段时间20个32位system.I随后从指令http://docs.opencv.org/trunk/doc/py_tutorials/py_setup/py_setup_in_fedora/py_setup_in_fedora.html#install- opencv-python-in-fedora但是在我尝试执行所有cmake命令后,我一次又一次出错。

    scanning dependencies of target opencv_createsamples
     [100%] Building CXX object    apps/haartraining/CMakeFiles/opencv_createsamples.dir/createsamples.cpp.o
    Linking CXX executable ../../bin/opencv_createsamples
   /lib/libavcodec.so.55: undefined reference to `vpx_codec_vp9_dx_algo'
    /lib/libavcodec.so.55: undefined reference to `vpx_codec_vp9_cx_algo'
    collect2: error: ld returned 1 exit status
    make[2]: *** [bin/opencv_createsamples] Error 1
   make[1]: *** [apps/haartraining/CMakeFiles/opencv_createsamples.dir/all] Error 2
    make: *** [all] Error 2

I have followed so many articles about the ffmpeg versions and updating stuff but did understand a little. 我关注了许多关于ffmpeg版本和更新内容的文章,但确实了解得很少。 but when I tried 但是当我尝试

$ sudo yum update ffmpeg

I got the error as 我得到了错误

>Package(s) ffmpeg available, but not installed.
No packages marked for update

What should I do? 我该怎么办?

我在将OpenCV链接到Linux上的FFmpeg的主题中找到了此链接: 如何在Fedora Linux下安装FFmpeg和OpenCV

我在vmware上的fedora 19(32位)上遇到了相同的问题,我更新了machin yum update之后,我注销并重新启动了machin,并尝试make agin操作,并且成功了!:]现在在python上,我成功完成了import cv2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM