Code For Fun

g++编译X265

自己参考用:

msys2 编译X265的命令

编译用工具安装

pacman -S git make tar automake autoconf libtool pkg-config mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake nasm yasm

配置X264

./configure --extra-cflags="-march=native" --enable-strip --prefix=/mingw64 --enable-static --bit-depth=10

配置X265

cmake -G "MSYS Makefiles" ../../source -DHIGH_BIT_DEPTH=ON -DCMAKE_INSTALL_PREFIX=/usr/local/hogehoge -DSTATIC_LINK_CRT=ON -DENABLE_HDR10_PLUS=ON -DENABLE_SHARED=OFF -DENABLE_TESTS=OFF

 

配置libvpx

./configure --disable-examples --prefix=/mingw64 --disable-docs --enable-vp9-highbitdepth --enable-better-hw-compatibility --enable-vp8 --enable-vp9 --enable-runtime-cpu-detect --enable-small --enable-libyuv

posted on 2017-12-22 11:11  我只是来看戏的  阅读(380)  评论(0编辑  收藏  举报

导航