ffmpeg编译安装过程报错解决

安装过程报错解决:

# 无法访问这个项目: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
更换地址:
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
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值