vs2017环境下webrtc的下载与编译配置

由于webrtc最新版本,加入了新的降噪模块,这里对最新版本进行下载与编译配置
 
1、安装vs2017,在官网上下载
 
2、下载depot_tools
 
3、下载安装windows 10 sdk
      目前我使用的版本 sdk 版本号 最好为 10.0.17134 ,同时记得安装器debug tool, 设置路径为 : Control Panel → Programs → Programs and Features → Select the “Windows Software Development Kit” → Change → Change → Check “Debugging Tools For Windows” → Change. Or, you can download the standalone SDK installer and use it to install the Debugging Tools. 并配置环境变量 WINDOWSSDKDIR 指向 SDK 安装目录
 
4、环境变量添加
设置 depot_tools环境变量,指向安装的目录
设置:
DEPOT_TOOLS_WIN_TOOLCHAIN=0
GYP_GENERATORS=ninja,msvs-ninja
GYP_MSVS_VERSION=2017
 
cmd环境下:
 
6、不需要安装python,已存在的python重命名
$ git config --global user.name "****"
$ git config --global user.email "*****"
$ git config --global core.autocrlf false
$ git config --global core.filemode false
$ git config --global branch.autosetuprebase always
 
7、下载源码
mkdir webrtc-checkout
cd webrtc-checkout
fetch --nohooks webrtc
gclient sync
 
8、生成解决方案
默认方案
gn gen --ide=vs out/Debug
 

猜你喜欢

转载自blog.csdn.net/tong5956/article/details/103564005