Windows下WebRTC的编译方法

来源:互联网 发布:linux samba权限控制 编辑:程序博客网 时间:2024/05/16 17:42

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,编译顺利完成!!!)

参考

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

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