WebRTC下载与编译

  1. IDE配置
    IDE:Visual Studio 2019 / 2017
    若要用VS 2017,需要另安装最新版Win10 SDK (10.0.18362及以上)。
    Windows Software Development Kit需勾选Debugging Tools For Windows选项。
    https://developer.microsoft.com/zh-cn/windows/downloads/windows-10-sdk/
    set GYP_MSVS_OVERRIDE_PATH=……VS安装路径……
    set GYP_GENERATORS=msvs-ninja,ninja

  2. 配置网络,可能需要外部网络(敏感词)
    set http_proxy=XXX
    set https_proxy=XXX

  3. 安装depot_tools
    将depot_tools目录路径加到系统环境变量Path
    set DEPOT_TOOLS_WIN_TOOLCHAIN=0

  4. 代码下载(10G+,耐心等待)
    cd ……代码路径……
    mkdir webrtc-checkout
    cd webrtc-checkout
    fetch --nohooks webrtc
    gclient sync

  5. 编译
    cd src
    gn gen --ide=vs out/Default
    ninja -C out/Default

src\out\Default\ 下得到 all.sln。

猜你喜欢

转载自blog.csdn.net/weixin_37524256/article/details/106801734