更换地址:
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