1.Download Google depot tools, a distribution tool that Google started to use in chromium.
Address:Https://sites.google.com/a/chromium.org/dev/developers/how-tos/depottools
Download depot_tools.zip and decompress it. Add the directory (path of gclient) to "environment variable | system variable | path.
2.Install the GIT tool. Download and install msysgit and tortoisegit:
Msysgit: http://code.google.com/p/msysgit/downloads/list
Tortoisegit: http://code.google.com/p/tortoisegit/downloads/list
Select a version suitable for your system and download and install it. (Note: tortoisegit is only a GUI and msysgit must be installed .) Put the bin directory in msysgit (default:"C:/ProgramFiles/git/bin") Manually add it to the path of the system environment variable. During tortoisegit installation, the GIT directory will be found and configured automatically.
3.InstallVisual Studio 2008, And add the service pack1 patch package (Visual Studio 2010 can also be installed, but the subsequent compilation process will be a little more troublesome ).
4.InstallMicrosoft sdks 7.1.Make sure that the lib and include directories are set in Visual Studio:
Msvc | tools | options | projects and solutions | VC ++ directories (e.g. C: \ Program Files \ microsoft sdks \ windows \ v7.1 \ Lib ).
5.InstallMicrosoft DirectX SDK(June 2010), in"Msvc | tools | options | projects and solutions | VC ++ directories"Ensure that the include directory"$ (Dxsdk_dir) include"And lib directory"$ (Dxsdk_dir) Lib \ x86"Added.
Note:The "include" Directory of DirectX must be the first in the search path; otherwise, problems may occur.
6.Install Python 2.x and add the python installation directory to the path of the system environment variable.
In theMsvc | tools | options | projects and solutions | VC ++ directories | executable files"To add the python installation directory (e.g. C: \ python27 ).
7.Create a working directory, such as "WebRTC", and enter the directory at the command prompt.
Run the following command at the command prompt to obtain the source code of WebRTC:
$ gclient confighttp://webrtc.googlecode.com/svn/trunk$ gclient sync --force
Or:
$ gclient.bat confighttp://webrtc.googlecode.com/svn/trunk$ gclient.bat sync --force
In this case, the subvison and other required environments are automatically installed. The "sync" command can also create a development environment (Linux: Make, OSX: xcode, Windows: Visual Studio ), for example, here we are most concerned about the msvisual studio solution (trunk/WebRTC. SLN ). You can also manually generate a development environment using the following command:
$ gclient runhooks --force
To specify a version of MS Visual Studio, call the following before gclient:
set GYP_MSVS_VERSION=2008
WebRTC. sln should be included in the source code directory and can be opened with Visual Studio. There may be some minor problems during compilation. It should be directory-related. Just reset it according to your own environment. For example, you can change the problematic project as described below,"Msvc | tools | options | projects and solutions | VC ++ directories ":
Executable file:
C:\Program Files\Microsoft SDKs\Windows\v7.1\BinC:\Python27C:\Program Files\Microsoft DirectX SDK (June2010)\Utilities\bin\x86
Include files:
C:\Program Files\Microsoft DirectX SDK (June 2010)\IncludeC:\Program Files\Microsoft SDKs\Windows\v7.1\Include
Library file:
C: \ Program Files \ microsoft sdks \ windows \ v7.1 \ libc: \ Program Files \ Microsoft DirectX SDK (June 2010) the executable files generated by \ Lib \ x86 are located in \ trunk \ debugloud, for example, peerconnection_server.exe”and paipeerconnection_client.exe ".
You can also use the HTML test page (Trunk/peerconnection/samples/Server/server_test.html) To connect to the server. When only onePeerconnection_clientEnabled during instance runningLookbackYou can create a local and your own voice/video session.
Reference:
1.
Http://www.webrtc.org/reference/getting-started
2.
Http://blog.foolbear.com/2011/06/google-webrtc-for-windows-32bit.html
3.
Http://white313.blog.163.com/blog/static/2102620116314827580/