1.首先需要下载kvazaar源码和greatest源码
git clone https://github.com/ultravideo/kvazaar.git kvazaar
git clone https://github.com/ultravideo/greatest.git kvazaar//greatest
把greatest源码复制到kvazaar中对应的文件夹
2.到ftp://sourceware.org/pub/pthreads-win32下载pthreads-w32-2-9-1-release.zip
解压进入到Pre-built.2文件夹
把include文件夹中的三个文件复制到*:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include
复制lib文件夹中的pthreadVC2.lib 到build\kvazaar_lib 注意要和编译的版本对应 64位用X64 32位用X86
3.然后到http://yasm.tortall.net/Download.html下载对应版本的vsyasm,Win32 VS2010 .zip或者Win64 VS2010 .zip
解压
把win32的vsyasm.exe放在*:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\bin\Hostx86\x86里面
把Win64的vsyasm.exe放在*:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\bin\Hostx86\x64里面
把vsyasm.props、vsyasm.targets、vsyasm.xml放在C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations
4.编译完成后需要复制pthreads-w32-2-9-1-release\Pre-built.2\dll中的pthreadVC2.dll到kvazaar.exe目录中
需要注意的是要和编译的版本对应 64位用X64 32位用X86
最后运行kvazaar.exe