编译最新版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 gclient, gclgit-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说明-----------------------------------------

    
    
    目录
    相关文章
    |
    Web App开发 开发工具 git
    WebRTC 源码旧版本下载
    WebRTC 源码旧版本下载
    572 0
    jsweet下载编译
    jsweet下载编译
    66 0
    |
    Java
    VS2017编译OpenJDK,编译通过的工程包下载链接
    VS2017编译OpenJDK,编译通过的工程包下载链接
    72 0
    |
    编译器 开发工具 C语言
    FFmpeg开发笔记(一):ffmpeg介绍、windows开发环境搭建(mingw和msvc,无需源码编译)
    FFmpeg开发笔记(一):ffmpeg介绍、windows开发环境搭建(mingw和msvc,无需源码编译)
    FFmpeg开发笔记(一):ffmpeg介绍、windows开发环境搭建(mingw和msvc,无需源码编译)
    |
    自然语言处理 前端开发 安全
    iOS-底层原理 31:LLVM编译流程 & Clang插件开发
    iOS-底层原理 31:LLVM编译流程 & Clang插件开发
    593 0
    iOS-底层原理 31:LLVM编译流程 & Clang插件开发
    |
    Web App开发 Ubuntu JavaScript
    编译 WebRTC 库
    最近一段时间的主要工作内容是开发一个远程控制手机的功能,其中音视频传输的部分是采用WebRTC技术来进行的,而我们的手机都是通过与其直接连接的Agent服务器进行管理,Agent服务是Java写的,现在市面上又没有合适的Java版WebRTC库,所以我就基于Google开源代码,写了一个JNI调用WebRTC Native的库。这里先简单介绍一下在编译WebRTC的过程中遇到的一些坑,分享一下整个工作过程中的经验。
    |
    编译器 开发工具 C++
    |
    IDE 开发工具 C++
    Windows环境VS2017编译skia库-m84,亲测成功,使用官方编译的方法
    Windows环境VS2017编译skia库-m84,亲测成功,使用官方编译的方法
    637 0
    Windows环境VS2017编译skia库-m84,亲测成功,使用官方编译的方法
    |
    IDE 关系型数据库 MySQL
    Tars C++版本的编译及相关教程
    Tars C++版本的编译及相关教程
    528 0
    Tars C++版本的编译及相关教程
    |
    Android开发 C++ Windows
    Ogrekit源码Windows平台编译_Android环境搭建
    Ogrekit源码Windows平台编译_Android环境搭建
    144 0