Windows下编译x265

实验环境:

Win7 + VisualStudio2015 +X265

安装CMake

https://cmake.org/download/


安装Nasm

https://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D

网络上很多文章说采用Yasm,Yasm由于版本问题会导致配置报错,请采用Nasm


下载x265

git clone https://github.com/videolan/x265.git


配置CMake生成VS工程

注意这里主要配置代码的source目录source code,编译生成bin文件目录build和yasm可exe文件目录

我的配置如下:


选择生成的版本为Visual Sudio 14 2015

Configure->Generate->Open Project


编译

进入VS编译ALL_BUILD项目,编译出来的可执行文件和动态库位于x265\build\Debug中了

执行x265.exe --help打印如下,包含汇编加速

Complete documentation may be found at http://x265.readthedocs.org/en/default/cli.html
x265 [info]: HEVC encoder version 2.8+21-gccd9e41ba
x265 [info]: build info [Windows][MSVC 1900][32 bit] 8bit


猜你喜欢

转载自blog.csdn.net/smallhujiu/article/details/80747568
今日推荐