Visual Studio2017下编译Kvazaar

1 篇文章 0 订阅
1 篇文章 0 订阅

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值