开发者社区> double2li> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

编译最新版webrtc源码和编译好的整个项目10多个G【分享】

简介: 编译最新版webrtc源码和编译好的整个项目10多个G【分享】   参考https://webrtc.org/native-code/development/编译最新版webrtc源码: Git clone https://chromium.
+关注继续查看

编译最新版webrtc源码和编译好的整个项目10多个G【分享】

 

参考https://webrtc.org/native-code/development/编译最新版webrtc源码:

Git clone https://chromium.googlesource.com/external/webrtc

gclient config https://chromium.googlesource.com/external/webrtc --name=src

set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_MSVS_VERSION=2015
set GYP_GENERATORS=ninja,msvs-ninja
gclient sync
cd src
Python webrtc/build/gyp_webrtc.py

上图哈:


注:
1.depot_tools的使用参考:https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart#markdown-header-windows-setup
2.webrtc官方源码我copy到github上了:https://github.com/JumpingYang001/webrtc
3.webrtc编译好的整个项目我传到百度云了:http://pan.baidu.com/s/1nuT0MV3 (注:由于刚压缩好在上传中,有10多G,请稍等,等上传完成后再下载)

 

------------------------ 2016-9-29加入安装depot_tools说明(红色字体:python和其他工具会在运行gclinet时自己下载安装) -----------------------------------------

Install depot_tools

Chromium and Chromium OS use a package of scripts called depot_tools to manage checkouts and code reviews.  
The depot_tools package includes gclientgclgit-clrepo, and others.

Installing on Linux and Mac

  1. Confirm git and python are installed. git 2.2.1+ recommended. python 2.7+ recommended.

  2. Fetch depot_tools: 
    $ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
  3. Add depot_tools to your PATH:
    $ export PATH=`pwd`/depot_tools:"$PATH"

    • Yes, you want to put depot_tools ahead of everything else, otherwise gcl will refer to the GNU Common Lisp compiler.
    • You may want to add this to your .bashrc file or your shell's equivalent so that you don’t need to reset your $PATH manually each time you open a new shell.

Installing on Windows

Preamble

Chromium is mostly designed to be run using the native Windows tools and the Msys (Git for Windows) toolchain. Cygwin is not recommended, and likely things will fail in cryptic ways.

Instructions

  1. Download depot_tools.zip and decompress it.
  • Do not use drag-n-drop or copy-n-paste extract from Explorer, this will not extract the hidden ".git" folder which is necessary for depot_tools to autoupdate itself. You can use "Extract all..." from the context menu though.
  • Do not extract to a path containing spaces. If you do, gclient will produce the error "update_depot_tools.bat was not expected at this time" or similar.
Add depot_tools to the start (not end!) of your PATH:
  • With Administrator access:
    • Control Panel > System and Security > System > Advanced system settings
    • Modify the PATH system variable to include depot_tools
  • Without Administrator access:
    • Control Panel > User Accounts > User Accounts > Change my environment variables
    • Add a PATH user variable: C:\path\to\depot_tools;%PATH%
Run gclient from the cmd shell. The first time it is run, it will install its own copy of various tools. If you run gclient from a non-cmd shell, it may appear to run properly, but python, and other tools may not get installed correctly (while it should work fine from a msys bash shell, you may still trip over bugs from time to time).
  • If you see strange errors with the file system on the first run of gclient, you may want to disable Windows Indexing.
  • If you see errors like "The system cannot execute the specified program", try installing "Microsoft Visual C++ 2008 Redistributable Package".
  • If it complains that it can't find python, make sure you don't already have a .gclient file in the same directory.
  • After running gclient open a command prompt and type where python and confirm that the depot_tools python.bat comes ahead of any copies of python.exe. Failing to ensure this can lead to overbuilding when using gn - see crbug.com/611087

See also Howto: depot tools

------------------------2016-9-29加入安装depot_tools说明-----------------------------------------

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
基于SSH框架的管理系统【完整项目源码】
基于SSH框架的管理系统【完整项目源码】
40 0
Git更新fork的项目到最新版本
Git更新fork的项目到最新版本
51 0
C#编程-95:分部类partial的使用
C#编程-95:分部类partial的使用
33 0
从源码中编译安装gmt官方开发版(优先体验最新功能)
一步一步解释在ubuntu系统下如何从github源码仓库中编译安装gmt (generic mapping tools),文中有详细的编译安装命令,同时也配有亲自操作的演示视频!从源码安装,提前体验gmt最新功能并修改和添加自己的功能!从这里可以体验gmt组新版gmt 6.
1498 0
Java编程思想——多线程的三大核心源码层解密
  欢迎大家关注,欢迎评论 对于Java并发编程,一般来说有以下的关注点: 1.线程安全性,正确性。 2.线程的活跃性(死锁,活锁) 3.性能 其中线程的安全性问题是首要解决的问题,线程不安全,运行出来的结果和预期不一致,那就连基本要求都没达到了。
884 0
WebRTC源码入手和底层功能扩展资料分享
 WebRTC源码入手和底层功能扩展资料分享 “webrtc源码分析群”里有同学说要在源码里加入新功能,想找下有没有相关资料可以分享下,好了解代码框架和入手修改代码,但是相关的资料少之又少,所以我找了相关的资料,希望能对大家有所帮助。
4770 0
明天(2016/5/1)晚上8:00-9:00在"webrtc源码分析群"qq群,开讲webrtc源码分析学习,欢迎有兴趣的同学可以来听听
明天(2016/5/1)晚上8:00-9:00在"webrtc源码分析群"qq群,开讲webrtc源码分析学习,欢迎有兴趣的同学可以来听听 "音视频技术WebRTC初探"公开课 CSDN音视频技术公开课交流QQ群:542249897
835 0
+关注
double2li
一个在IT行业摸爬滚打的老司机
2869
文章
0
问答
文章排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载