专栏首页运维前线ffmpeg编译安装过程报错解决

ffmpeg编译安装过程报错解决

版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/80326418

安装过程报错解决:

# 无法访问这个项目: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

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • CentOS 7 minimal安装完成之后安装图形界面

    实验环境:CentOS 7 minimal ,hostname:linuxprobe.org IP:10.1.1.53

    shaonbean
  • CentOS7 安装RocketMQ并使用

    RocketMQ 介绍 Apache RocketMQ™是一个开源的分布式消息传递和流数据平台。 RocketMQ Github: https://git...

    shaonbean
  • CentOS 7 安全加固、检测、审计

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

    shaonbean
  • 抛出和接收异常的顺序

    异常(exception)是C++语言引入的错误处理机制。它 采用了统一的方式对程序的运行时错误进行处理,具有标准化、安全和高效的特点。C++为了实现异常处理,...

    Dabelv
  • C++抛出和接收异常的顺序

    异常(exception)是C++语言引入的错误处理机制。它 采用了统一的方式对程序的运行时错误进行处理,具有标准化、安全和高效的特点。C++为了实现异常处理,...

    Dabelv
  • (12)Linux关机重启命令

    ②[root@localhost~]# poweroff ③[root@localhost~]# init 0

    生信real
  • 原来Gmail中使用了ActiveX,那么如何保证linux用户的访问行呢?

    Gmail requires ActiveX controls to be enabled

    田春峰-JCJC错别字检测
  • 使用深度学习来读唇语,压缩JPEG,保护住宅等

    时见疏星
  • 光流法详解之一(LK光流)

    Lucas–Kanade光流算法是一种两帧差分的光流估计算法。它由Bruce D. Lucas 和 Takeo Kanade提出 [1]。

    一棹烟波
  • 「新鲜」暴风举行产品发布会,魔镜4 、魔王、魔眼来袭!

    镁客网

扫码关注云+社区

领取腾讯云代金券