前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ffmpeg编译安装过程报错解决

ffmpeg编译安装过程报错解决

作者头像
shaonbean
发布2019-05-26 10:12:30
2.6K0
发布2019-05-26 10:12:30
举报
文章被收录于专栏:运维前线运维前线

版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://cloud.tencent.com/developer/article/1434925

安装过程报错解决:

代码语言:javascript
复制
# 无法访问这个项目:https://chromium.googlesource.com/webm/libvpx.git
[root@aniu-ops ffmpeg_sources]# git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git
Initialized empty Git repository in /root/ffmpeg_sources/libvpx/.git/
error: Failed connect to chromium.googlesource.com:443; Operation now in progress while accessing https://chromium.googlesource.com/webm/libvpx.git/info/refs

fatal: HTTP request failed
代码语言:javascript
复制
更换地址:
git clone --depth 1 https://github.com/webmproject/libvpx.git

# 编译libvpx报错
./configure: line 735: check_add_cxx_flags: command not found

- http://wiki.webmproject.org/ffmpeg/building-with-libvpx

gcc -m64 -Werror -mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl -c -o /tmp/vpx-conf-9470-3770.o /tmp/vpx-conf-9470-3770.c
cc1: error: unrecognized command line option "-mavx512f"
cc1: error: unrecognized command line option "-mavx512cd"
cc1: error: unrecognized command line option "-mavx512bw"
cc1: error: unrecognized command line option "-mavx512dq"
cc1: error: unrecognized command line option "-mavx512dq"
cc1: error: unrecognized command line option "-mavx512vl"


cc1plus: error: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++

# 上面的报错是git clone的libvpx有问题,笔者使用
wget https://github.com/webmproject/libvpx/archive/v1.7.0.tar.gz 下载特定版本的libvpx,configure就没问题

下面是make完成的warning提示:

/root/ffmpeg_sources/libvpx/mainpage.dox:25: Warning: unable to resolve reference to `samples' for \ref command
/root/ffmpeg_sources/libvpx/mainpage.dox:25: Warning: unable to resolve reference to `samples' for \ref command
/root/ffmpeg_sources/libvpx/usage_dx.dox:12: Warning: unable to resolve reference to `samples' for \ref command
/root/ffmpeg_sources/libvpx/usage_cx.dox:8: Warning: unable to resolve reference to `samples' for \ref command
/root/ffmpeg_sources/libvpx/usage_cx.dox:8: Warning: unable to resolve reference to `samples' for \ref command
/root/ffmpeg_sources/libvpx/usage_dx.dox:12: Warning: unable to resolve reference to `samples' for \ref command
[root@aniu-ops libvpx]# make install
    [INSTALL] /root/ffmpeg_build/lib/libvpx.a
    [INSTALL] /root/ffmpeg_build/lib/pkgconfig/vpx.pc
make[1]: Nothing to be done for `install'.
make[1]: Nothing to be done for `install'.

# ERROR: freetype2 not found using pkg-config

yum install freetype*

# ERROR: x265 not found using pkg-config

# 安装libx265报错
Could NOT find NUMA (missing:  NUMA_ROOT_DIR NUMA_INCLUDE_DIR NUMA_LIBRARY)  

yum install numactl numactl-devel
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018年05月15日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 安装过程报错解决:
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档