webrtc 在MAC下和iOS下的编译

一:安装brew和git

1. mkdir /usr/local

2. curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1

3. /usr/local/bin/brew install git

二:下载编译webrtc

1.  下载depot_tools  svn co  http://src.chromium.org/svn/trunk/tools/depot_tools

2. 添加depot_tools路径到系统目录 export PATH="$PATH":`pwd`/depot_tools 

3. gclient config http://webrtc.googlecode.com/svn/trunk

4. gclient sync --force

5.gclient runhooks --force

6. 进入 trunk目录,打开webrtc.xcodeproj/

你可能感兴趣的:(MAC&iPhone开发)