第一步,先安装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
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.cc:5321: Error: no such instruction: `vpermq $0xd8,%ymm0,%ymm0’

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

被折叠的 条评论
为什么被折叠?



