Build WebRTC on windows

1. Install git:

if you haven’t installed a copy of git, open https://git-for-windows.github.io/, download and install, suggest to select “Use Git from Windows Command Prompt” during installation.

2. Fetch depot_tools:

follow http://dev.chromium.org/developers/how-tos/install-depot-tools, use 7z to extract to E:\webrtc\depot_tools

3. Run depot_tools:

http://www.chromium.org/developers/how-tos/build-instructions-windows

Open Git Cmd from startmenu, “Git CMD”

set path=%PATH%;E:\webrtc\depot_tools
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
cd /d e:\webrtc\

gclient

4. Get the webrtc code

http://webrtc.org/native-code/development/

mkdir webrtc-checkout
cd webrtc-checkout
fetch webrtc

5. make sure code is latest (if you want to update an existing copy, start from this step)

gclient sync

6. generate native slolutions

gclient runhooks

7. build (enter E:\webrtc\webrtc-checkout\src folder)

set path=E:\webrtc\depot_tools\python276_bin\;%path%

cd src
set GYP_GENERATORS=ninja,msvs-ninja
python webrtc/build/gyp_webrtc -G msvs_version=2013 (this is not required, but to ensure files are latest)
ninja -C out/Release

8. done, you can find binary in src\release
this is the echo info:
ninja: Entering directory `out/Release’
[2950/2950] STAMP obj\All.actions_depends.stamp

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s