windows WebRTC下载编译
1, 下载TortoiseSVN工具
http://sourceforge.net/projects/tortoisesvn/
2,下载msysgit 选择一个版本安装
http://code.google.com/p/msysgit/downloads/list
把msysgit的bin目录手动添加到系统环境变量PATH中
3,下载Tortoisegit
http://code.google.com/p/tortoisegit/downloads/list
4,下载安装python,根据实际需求选择实际的Python版本。
如果下载的是绿色版Python,需要把Python的执行目录添加到系统环境变量PATH中。
5,下载并配置depot_tools
linux系统需要使用 “svn co http://src.chromium.org/svn/trunk/tools/depot_tools ”命令;
windows可以直接使用svn checkout到一个相应的目录。
下载完成后,然后把depot_tools的目录添加到系统环境变量PATH中去
6,下载webrtc源码
找个比较大的系统盘,新建一个目录,右键目录选择 Git Bash命令会弹出一个dos命令框
6.1 ,下载webrtc源码, 输入 svn checkout http://webrtc.googlecode.com/svn/trunk (这个很快会下完)
6.2,下载webrtc会调用到的第三方库源码 gclient config https://webrtc.googlecode.com/svn/trunk (这个会下很久,搞不好还下不下来,建议翻墙或者vpn下载)
6.3,同步google项目文件,获取最新工程 gclient sync --force
需要生成vs工程的,可以先设置GYP_MSVS_VERSION=2010 值为VS版本 我是用的VS2010 如果不设置 会自动检测。
6.4,下载安装SDK 7.1和directx
SDK 7.1:
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8279
DirectX SDK:
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6812
6.5,生成各平台相关的项目文件 gclient runhooks --force
基本上大功告成了,祝你好运!
参考: http://www.webrtcbbs.com/forum.php?mod=viewthread&tid=115&extra=page%3D1
http://blog.csdn.net/temotemo/article/details/7056581
附webrtc官网原话:
Before you start
Depot Tools
Linux (Ubuntu/Debian)
This, and more, is described on the Chromium site:
http://code.google.com/p/chromium/wiki/LinuxBuildInstructions
A script is provided for Ubuntu, which is available after your first gclient sync:
./build/install-build-deps.sh
Pulse Audio is missing from the script. On Ubuntu, this is provided by the libpulse-dev package.
Although the install-build-deps.sh script is the recommended method, it will install much more than you need. Here is a (hopefully complete) minimal list of packages to install (sudo apt-get install...): g++ (>= 4.2)
python (>= 2.4)
libnss3-dev >= 3.12
libasound2-dev
libpulse-dev
libjpeg62-dev
libxv-dev
libgtk2.0-dev
libexpat1-dev
To create 32-bit builds for Linux on a 64-bit system (not needed or Android builds):
lib32asound2-dev
lib32z1
lib32ncurses5
lib32bz2-1.0
Tips for other distributions are available on the Chromium page.
Windows
Follow Chromium's build instructions at: http://www.chromium.org/developers/how-tos/build-instructions-windows.
OS X
XCode 3.0 or higher
AndroidThese instructions are tested on a Linux development machine. In WebRTC, we're using the same Android toolchain as Chrome (the one that is downloaded into third_party/android_tools). So you don't need to install NDK/SDK separately.
|
Getting the code
- If you're on Linux and have OpenJDK 7 installed in another location than Ubuntu's default:
export
JAVA_HOME=<location of OpenJDK 7>
- On Windows: launch a command prompt as Administrator.
- Create a working directory, enter it, and run
fetch webrtc
:mkdir webrtc-checkout
cd webrtc-checkout
gclient sync
f
etch --nohooks webrtc
This will take a long time because it downloads the whole Chromium repository and dependencies which are several gigabytes. Do not interrupt this step or you may need to start all over agan (a newgclient sync
may be enough but you might also need to start over cleanly). - Optionally you can specify how new branches should be tracked:
git config branch.autosetupmerge always
git config branch.autosetuprebase always
- Alternatively, you can create new local branches like this (recommended):
cd src
git checkout master
git new-branch your-branch-name
Updating the code
git pull
NOTICE: if you're not on a branch, git pull
won't work, and you'll need to usegit fetch
instead.
gclient sync
gclient runhooks
).
Ninja is the default build system for all platforms. It is possible to just generate new build files by calling:
python webrtc/build/gyp_webrtc
This also runs as a part of the gclient runhooks
step.
Building
out/Debug andout/Release
for debug and release builds respectively. SeeAndroid and iOS for build instructions specific to those platforms.
With Ninja
out
folder), run
python webrtc/build/gyp_webrtc
Then compile with (standing in src/
):
ninja -C out/Debug
Release:
ninja -C out/Release
Using another build system
Other build systems are not fully supported (and may fail), such as Visual Studio on Win or Xcode on OSX. GYP supports a hybrid approach of using ninja for building, but VS/Xcode for editing and driving compilation. Set the GYP_GENERATORS environment variable to the string:
ninja,msvs-ninja
for Visual Studio project building with ninjaninja,xcode-ninja
for Xcode
GYP_MSVS_VERSION=<version>
before runhooks or manually run the following gyp command from the src/ directory (this replaces gclient runhooks):
python webrtc/build/gyp_webrtc -G msvs_version=<version>
Where <version> is on the form YYYY. And Chromium requests VS2013 for now.
src/all.sln
solution file
Working with Release Branches
git branch -r
cd /path/to/webrtc/src
gclient sync --with_branch_heads
git fetch origin
[remote "origin"]
in.git/config
:
fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*
git checkout -b my_branch refs/remotes/branch-heads/43
Contributing Patches
Committing Code
From March 24, 2015, the source of truth is the Git repository at https://chromium.googlesource.com/external/webrtc. To be able to push commits to it, you need to perform the steps below.
- Go to https://chromium.googlesource.com/new-password and login with your webrtc.org account.
- Follow the instructions on how to store the credentials in the .gitcookies file in your home directory.
- Go to https://chromium-review.googlesource.com and login with your webrtc.org account. This will create the user in the Gerrit permission system so it can be added to the right committers group.
- Make sure you have set the
user.name
anduser.email
Git config settings as specified at thedepot tools setup page. If you're also a Chromium committer: also read the next section.
git cl land
--bypass-hooks
flag.
Chromium committers
Many WebRTC committers are also Chromium committers. To make sure to use the right account for pushing commits to WebRTC, use theuser.email
Git config setting. The recommended way is to have the chromium.org account set globally as described at the depot tools setup page and then set user.email
locally for the WebRTC repos using (change to your webrtc.org address):
cd /path/to/webrtc/src
git config user.email yourname@webrtc.org
Example Applications
Peerconnection
- A server application, with target name peerconnection_server
- A client application, with target name peerconnection_client(not currently supported on Mac/Android)
Setting up P2P calls between peerconnection_clients
Testing peerconnection_server
Open
src/talk/examples/peerconnection/server/server_test.html
in your browser. Click connect. Observe that the peerconnection_server announces your connection. Open one more tab using the same page. Connect it too (with a different name). It is now possible to exchange messages between the connected peers.
Call app
call
(currently disabled). An application that establishes a call using libjingle. Call uses xmpp (as opposed to SDP used by WebRTC) to allow you to login using your gmail account and make audio/video calls with your gmail friends. It is built on top of libjingle to provide this functionality.
Relay server
relayserver
. Relays traffic when a direct peer-to-peer connection can't be established. Can be used with thecall
application above.
Stun server
stunserver
. Implements the STUN protocol for Session Traversal Utilities for NAT as documented in rfc5389.
Turn server
turnserver
. In active development to reach compatibility with rfc5766.
windows WebRTC下载编译相关推荐
- windows平台下载编译好的webrtc代码vs2015
windows平台下载编译好的webrtc代码vs2015 编译好的源码工程地址: https://github.com/hujianhua888/webrtc_vs2015,工程目录如下,包含所有 ...
- 最新版本webrtc源代码在windows上的编译方法
http://blog.csdn.net/choday/article/details/19978427 分类: webrtc 2014-02-26 14:34 1893人阅读 评论(8) 收藏 举报 ...
- Windows11/Win10+VS2019下载编译WebRTC源码
前言 1.目前webrtc支持vs2017 vs2019 vs2022版本 (由于下载的是vs2022放在了D盘,但是webrtc中有些编译文件将vs的路径写死,所以重新下载了vs2019版本放在了C ...
- windows下载编译chromium源码
前言 chromium 源码的下载编译,真的就是如各位前辈说的一样,参考再完整的教程,还是会遇到各种各样的问题.因为每个人的开发环境是不一样的,网络环境也不一样. 一路参考各路大神的教程开始踩坑填坑的 ...
- 最详细记录安装NCNN:windows,NCNN下载和编译
windows,NCNN下载和编译 一.前准备 下载和安装protobuf 第一种选择window的protobuf包 : 校验安装 第二种选择另一种包进行配置: 2.为VS 2019配置protob ...
- Qt最新版5.14在Windows环境静态编译安装和部署的完整过程 VS 2019-Qt static link build Windows 32 bit/64 bit
文章目录 为什么要静态编译(static link) 1.源码下载/source code download 2. 编译工具下载/compiler download 编译环境选择:MinGW/MSVC ...
- Qt最新版5.13在Windows环境静态编译安装和部署的完整过程(VS 2017/VS 2019)
文章目录 为什么要静态编译 1.源码下载 2. 编译工具下载 ActivePerl Python Ruby 编译环境选择 3.编译 1.修改源码里的qtbase\mkspecs\common\msvc ...
- Qt最新版5.12在Windows环境静态编译安装和部署的完整过程(VS2017)
文章目录 为什么要静态编译 1.源码下载 2. 编译工具下载 ActivePerl Python Ruby 编译环境选择 3.编译 1.修改源码里的qtbase\mkspecs\common\msvc ...
- Caffe Windows版本的编译
2019独角兽企业重金招聘Python工程师标准>>> 1:Caffe的主版本只支持Linux,所以要下载专门的Caffe Windows版本,网址为 https://github. ...
最新文章
- php 运行外部程序_php 中运行外部程序的一个潜在风险
- c++将小数化为二进制_C/C+学习笔记:C语言实现任意进制转换,代码全解析!...
- c语言歌曲评选系统报告,C语言程序设计报告—歌曲信息管理系统精要.doc
- POI以SAX方式解析Excel2007大文件(包含空单元格的处理) Java生成CSV文件实例详解...
- 升级Mountain Lion后git等工具不能用的问题的解决方法
- Redis的Linux单机版安装
- php文件解锁,php文件锁怎么用
- mysql 的日常管理软件_MySQL常用的日常管理工具
- vc安装.zip_空间分析:4-1.分词模型hanLP简介与安装
- BST:Transformer在推荐领域的应用
- 2021第一场教师招聘考试3.28开始!一个月备考来得及吗?
- javascript 变换变量 数据类型 类型转换 运算符 运算表达式 运算优先级 理解笔记...
- 黑加仑妞 使用vue+flask做全栈开发的全过程(实现前后端分离)
- 请问spfa+stack 和spfa+queue 是什么原理
- ubuntu14.04LTS 安装后几个基本设置
- Matlab程序中调用其他程序
- 损失函数为什么用平方形式
- 周鸿伟揭秘华为事件,美国针对华为另有打算
- 直播互动软件神器有哪些
- 小米手机 5 开启【开发者选项】
热门文章
- 爬虫:程序_进程_线程_多线程(案例多线程下载壁纸)
- mod_jk(Apache+mod_jk+tomcat)详细配置方法
- ESP32设置AP模式与手机连接,并向手机发送数据
- 信息安全入门必备认证-Security+
- 恢复Word默认设置,将Word还原到初始状态
- 文件后缀名对应的Content-Type表
- MySQL实现成绩表单视图
- 高通801+A311D+HISI RTK定位定向技术小结
- 学计算机软件逻辑测试,计算机软件测试方法及应用分析
- 全球前十上市公司中石油失首