x265静态编译win10--
msys2的mingw环境:
1.拉取x265源码
git clone https://github.com/videolan/x265.git -b 3.4cd x265
2.修改文件
修改source/CMakeLists.txt的内容,否则配置命令会失败:
将如下内容:
cmake_policy(SET CMP0025 OLD)cmake_policy(SET CMP0054 OLD)
改成:
cmake_policy(SET CMP0025 NEW)cmake_policy(SET CMP0054 NEW)
3.执行相关命令
cd build/msyscmake -G "MSYS Makefiles" ../../source -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_INSTALL_PREFIX=`pwd`/x265_install -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DBUILD_SHARED_LIBS=OFFmake -j16make install
https://bitbucket.org/multicoreware/x265_git/src/stable/
http://ftp.videolan.org/pub/videolan/x265/
git clone https://github.com/videolan/x265.git -b 3.4
git clone https://bitbucket.org/multicoreware/x265_git.git -b 4.1
https://git.ffmpeg.org/ffmpeg/x265.git