Build the code on Windows 10 (Visual Studio 2013 Professional) - sukinull/libwebrtc GitHub Wiki

READ THIS !!!

This document works fine with webrtc commit: 9eb1365939683cc5462a5359344148efb7d84f97

Download and install depot_tools

  1. Install MS Visual Studio Express 2013 for Desktop

  2. Download depot_tools for windows

  3. Extract depot_tools.zip to C:\Build\

  4. Add depot_tools folder to your environmental variables PATH *1

set C:\Build\depot_tools;PATH=%PATH%
  1. I also set as global variables
DEPOT_TOOLS_WIN_TOOLCHAIN=0
GYP_GENERATORS=msvs-ninja,ninja
GYP_MSVS_VERSION=2013e
# for Visual Studio Pro set GYP_MSVS_VERSION=2013

Download source code

  1. Open a windows cmd shell with Administrator and create webrtc-checkout folder
mkdir webrtc-checkout
cd webrtc-checkout
  1. Set necessary environmental variables, if you didn't set them in global *2
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_GENERATORS=msvs-ninja,ninja
set GYP_MSVS_VERSION=2013e

set GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio 12.0
set WindowsSdkDir=C:\Program Files (x86)\Windows Kits\8.1
  1. Configure gclient to download webrtc code
cd webrtc-checkout
# My path is C:\Build\webrtc-checkout\
fetch webrtc
  1. Download webrtc and dependencies (this may take a while). Running this command twice ensures you have all dependencies (ipop-project thinks, and I believe)
gclient sync --force
gclient sync --force

Building the code (from src folder)

  1. Generate Visual Studio solution files
gclient runhooks --force
  1. WIN32
python webrtc/build/gyp_webrtc -Dtarget_arch=ia32 -DOS=win
ninja -C out/Debug
ninja -C out/Release

Notes

*1) depot_tools should put at the first *2) GYP_MSVS_OVERRIDE_PATH & WindowsSdkDir may help in some situation