centos6.10 下编译opencv3.4.6 , opencv_contrib、ffmpeg

本文详细介绍了如何在CentOS 6.10环境下编译安装OpenCV3.4.6和FFmpeg。在FFmpeg编译过程中,由于硬件不支持avx2导致错误,通过禁用avx2选项解决了问题。随后,文章提到了如何配置环境变量,并解决了在opencv编译中遇到的libtiff-devel冲突和opencv3.2.0的ffmpeg兼容性问题。最后,指出了在配置动态链接库时的一个常见问题及其解决方案。
摘要由CSDN通过智能技术生成

第一步,先安装ffmpeg

                按该网页https://trac.ffmpeg.org/wiki/CompilationGuide/Centos一步步安装

                 仅其中git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git 地址无效

                 换https://github.com/webmproject/libvpx/releases 地址下载了libvpx-1.7.0.tar.gz

                 make时报错信息如下

                 third_party/libyuv/source/row_gcc.cc:831: Error: suffix or operands invalid for vpmaddubsw'
                 third_party/libyuv/source/row_gcc.cc:832: Error: suffix or operands invalid forvpmaddubsw’
                 third_party/libyuv/source/row_gcc.cc:833: Error: suffix or operands invalid for vpmaddubsw'
                 third_party/libyuv/source/row_gcc.cc:834: Error: suffix or operands invalid forvpmaddubsw’
                 third_party/libyuv/source/row_gcc.cc:836: Error: suffix or operands invalid for vphaddw'
                 third_party/libyuv/source/row_gcc.cc:837: Error: suffix or operands invalid forvphaddw’
                 …..
                 third_party/libyuv/source/row_gcc

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值