windows编译x265

来源:互联网 发布:vue.js和哪个ui 编辑:程序博客网 时间:2024/06/09 00:36

1.下载yasm,1.2.0及以后版本。 地址:http://yasm.tortall.net/Download.html      将exe复制到C:\Windows 或者%PATH%下   (这里下载的要用win64.exe或者32的yasm.exe,自己在使用vsyasm.exe的时候编译,加上了enable-assembly,编译通不过

2.安装cmake,2.8.8及以后版本。 地址:https://cmake.org/download/            

3.安装VisualLeakDetector,地址https://vld.codeplex.com/releases

4.下载x265源码,https://bitbucket.org/multicoreware/x265/downloads

5.解压后,找到build/vcXX版本,运行make-solutions.bat,生成解决方案,如果直接运行不了,可以自己打开cmake-gui,自己配置src和dest

打开make-solutions.bat,会有

@echo off
::
:: run this batch file to create a Visual Studio solution file for this project.
:: See the cmake documentation for other generator targets
::
cmake -G "Visual Studio 12 Win64" ..\..\source && cmake-gui ..\..\source

如果YASM_EXECUTABLE提示NOTFOUND,要手动添加PATH,并勾选上ENABLE_ASSEMBLY

按照上面路径配置好cmake,然后configure,generate,就可以生成x265.sln。打开编译就可以生成dll  /   lib  / exe / static-lib

configure选取的时候,一定要选32位。。。。自己当时编的时候选了64,傻逼了,各种不兼容


1 0
原创粉丝点击