美文网首页WebRTC
webrtc 编译--终极版

webrtc 编译--终极版

作者: 南冠彤 | 来源:发表于2017-07-11 11:20 被阅读409次

需要翻墙下载代码(也可设置代理)

1、depot_tools:
https://chromium.googlesource.com/chromium/tools/depot_tools.git
环境变量配置: depot_tools、【python 2.7.6】 注意环境变量
a、把depot_tools目录加入PATH:export PATH=`pwd`/depot_tools:"$PATH"
b、安装”Visual Studio 2015 Update 3“,zh。
c、set DEPOT_TOOLS_WIN_TOOLCHAIN=0
   set GYP_GENERATORS=msvs-ninja,ninja
   set GYP_MSVS_VERSION=2015
   set GYP_MSVS_OVERRIDE_PATH=D:\Program Files (x86)\Microsoft Visual Studio 14.0   (注:否则可能出现:Exception: D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat is missing - make sure VC++ tools are installed.)
   ###set WindowsSdkDir=C:\Program Files (x86)\Windows Kits\8.1
2、cmd.exe中运行gclient
3、配置git
git config --global user.name "My Name"
git config --global user.email "my-name@chromium.org"
git config --global core.autocrlf false
git config --global core.filemode false
git config --global branch.autosetuprebase always
4、建立文件夹 mkdir webrtc-checkout && cd webrtc-checkout
5、拉取代码 fetch --nohooks webrtc
6、gclient sync
7、进入源码目录 cd src
8、git checkout master   (git pull)
9、gclient sync
10、gn gen out/Default 
        release:gn gen out/Default --args='is_debug=false'
11、ninja -C out/Default
如果要生成vs项目工程,则:
$ gn gen --ide=vs out\Default
$ devenv out\Default\all.sln
gn ls out/Default
To update an existing checkout, you can run
$ git rebase-update$ gclient sync
错误解决:
Exception: dbgcore.dll not found in "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbgcore.dll"
Exception: dbghelp.dll not found in "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll"
You must install the "Debugging Tools for Windows" feature from the Windows 10 SDK.
ERROR at //build/toolchain/win/BUILD.gn:39:3: Script returned non-zero exit code        exec_script("../../vs_toolchain.py",

e:\opensource\webrtc\webrtc-checkout\src\third_party\gflags\src\src\windows_port.h(54): fatal error C1083: 无法打开包括文件: “windows.h”: No such file or directory

需要下载安装:Windows 10 SDK (ver. 10.0.14393.795)
https://developer.microsoft.com/en-us/windows/downloads/sdk-archive
可以参考:
http://blog.csdn.net/yangzhenping/article/details/52399897
Checking out and Building Chromium for Windows
https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md#Get-the-code
https://webrtc.org/native-code/development/
[http://www.chromium.org/developers/how-tos/get-the-code](http://www.chromium.org/developers/how-tos/get-the-code)
http://blog.csdn.net/chinabinlang/article/details/71673732
http://blog.csdn.net/siyu77/article/details/50916320 !!!!!!!!
https://github.com/fanfeilong/cefutil/blob/master/doc/chromium_build_guid.md  !!!!!!!!
https://github.com/sukinull/libwebrtc/wiki/Build-the-code-on-Windows-10-(Visual-Studio-2013-Professional)

相关文章

  • webrtc 编译--终极版

    需要翻墙下载代码(也可设置代理)

  • WebRTC研究 (一) 编译源码

    @[TOC](WebRTC研究 (一) 编译源码) 1. WebRTC 源码编译 1.1 IOS平台编译 1.1....

  • Ubuntu 下编译 WebRTC

    -- Ubuntu 下编译 WebRTC Ubuntu 下编译 WebRTC 一、Ubuntu 系统环境准备 1、...

  • webrtc ios 代码下载编译终极版

    1. 准备工作 最近重新下载最新webrtc代码,发现新的mac上面老是会出现一些同步错误问题,在pc上面能正常下...

  • webrtc

    源码编译 编译最新版webrtc源码和编译好的整个项目10多个Gwebrtc源webrtc技术实践depot_to...

  • Google WebRtc 编译

    Google WebRtc 编译 前段时间有同学留言如何编译 webrtc,写给需要的你,关注微信公众号 他晓,进...

  • 在 Mac 上为 Android 编译 WebRTC

    在 Mac 上为 Android 编译 WebRTC 的基本流程和在任意平台上编译任何其它目标平台的 WebRTC...

  • WebRTC编译

    编译生成Framwork 1.修改路径webrtc/src/tools_webrtc/ios/build_ios_...

  • 下载、环境配置

    Windows下编译WebRTC[http://avdancedu.com/2bafd6cf/] webrtc w...

  • WebRTC之服务器搭建

    前言 在前面的WebRTC介绍中我们已经介绍了WebRTC的编译以及成功地把WebRTC在Android Stud...

网友评论

  • d0b989fff6d8:直接在cmd.exe里敲gclient,控制台输出如下:
    Usage: gclient.py <command> [options]

    Meta checkout dependency manager for Git.

    Commands are:
    config creates a .gclient file in the current directory
    diff displays local diff for every dependencies
    fetch fetches upstream commits for all modules
  • hi5681148:你好,请问翻墙用的什么软件
    南冠彤:@hi5681148 嗯嗯,那就好
    hi5681148:@南冠彤 之前用的一些vpn,下载太慢了,后来用了一个比较快,目前已经编译完成了:smile:
    南冠彤:@hi5681148 可以买一个vpn
  • 星月西:你好,源码的下载是个大问题,能不能把源码共享一下呀,谢谢:smile:
    南冠彤:@星月西 源码共享在简书里太大了, 后面可以考虑在百度云盘里共享

本文标题:webrtc 编译--终极版

本文链接:https://www.haomeiwen.com/subject/kwwphxtx.html