Windows下WebRTC的编译方法

http://www.agilevideo.net  所有

 

环境:win7, VS2008, Windows SDK

 1 下载google的源码工具depot_tools

svn co http://src.chromium.org/svn/trunk/tools/depot_tools
并把depot_tools添加到系统的环境变量PATH里;

2 下载git工具:并把git添加到系统的环境变量PATH里

3 创建webrtc工作目录,并在该目录下运行:
gclient config https://webrtc.googlecode.com/svn/trunk

提示:

Installing subversion ...
Installing python ...

耐心等待,我的是一两个小时...(不知道什么原因,我的机器已经安装了python2,而且python也不大)

4 在webrtc工作目录下运行:

 gclient sync --force

或者

gclient runhooks --force

 

耐心等待,又是几个个小时...

 

The sync will generate native build files for your environment using gyp (Linux: make, OS X: XCode, Windows: Visual Studio).

On Windows, gyp will use the latest Visual Studio on your system by default. In order to specify a particular Visual Studio version, there are a few options. You can set an environment variable:
GYP_MSVS_VERSION=<version>
before runhooks
where <version> is, for example, 2008.

5 对windows平台,在trunk目录下,已经有针对Visual Studio的工程文件:
webrtc.sln

好了,打开它,这就可以编译了。(我机器上已经装了Windows SDK, VS2008,编译顺利完成!!!)

参考

http://blog.csdn.net/coloriy/article/details/6671286

http://www.webrtc.org/reference/getting-started


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值