webrtc百度网盘下载与windows平台编译错误解决

来源:互联网 发布:http 文件 json 上传 编辑:程序博客网 时间:2024/05/23 00:09

I have built webrtc on windows with visual studio 2015, but I came across the same fucking error "fatal error LNK1104: cannot open file 'advapi32.lib'" as[1]. I read a lot blogs on instructing how to build webrtc on windows[2][3], but none of them give any hint of solving this problem. I know the code building system cant find the lib advapi32.lib from win10 sdk, even I installed win10 sdk twice of different version. And create a new environment variable WinSdkDir=E:\Windows_Kits\10 is not helping at all. Finally I find a blog[4] to suggest to create two environment variables LIB and INCLUDE and get the problem solved.

LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x64;

INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\winrt;

t he number 10.0.16299.0 is relating to the specific Win10 SDK  version and I installed the newest.



Then input the following instructions as suggested by [2][3]:

set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_GENERATORS=msvs-ninja,ninja
set GYP_MSVS_VERSION=2015
cd src 
gn gen out/Default
ninja -C out/Default

WebRtc百度网盘下载地址[5]。

[1]Building webrtc windows Visual Studio 2015

[2]Webrtc windows 编译

[3]最新webrtc编译 2017

[4]WebRTC not building for Windows too

[5]WebRtc M63 百度网盘下载

原创粉丝点击