WEBRTC Compilation Specific Introduction

Source: Internet
Author: User


WEBRTC Compilation specific Introduction--record + reprint

Original Address: http://blog.csdn.net/temotemo/article/details/7056581


WEBRTC compiling

My environment:

Operating system: XP SP3

VS 2013



Tools required before compiling source code


Get Source code Tool:

1, first need to install the tool to get the source code SVN (project code version number management tool, Google also use This)

TortoiseSVN 1.6.12

http://sourceforge.net/projects/tortoisesvn/

2. Download and install Msysgit and Tortoisegit

Msysgit:http://code.google.com/p/msysgit/downloads/list

Select git-1.7.4-preview20110204.exe, Download and install

Tortoisegit:http://code.google.com/p/tortoisegit/downloads/list

Select the version number that is appropriate for your SYSTEM. Download and install (note: tortoisegit is just a gui.) Msysgit must be Installed)

Tortoisegit will find the Git folder and configure it on its own initiative when INSTALLING.

Manually add the Bin folder in the Msysgit to the system environment variable path, For example my folder is "d:/programfiles/git/bin"

3. Download and install python, It is recommended to install Python2.6, for example, installed in C drive

The installation will C:\Python26 run the folder itself into the system environment variable path.

(WEBRTC is written in C + + Why use python, because WEBRTC source code and Depot_tools There are a lot of. py python program. Used to configure the Item. Build project files in various Environments)

Official Request Note:

Http://www.webrtc.org/reference/getting-started/prerequisite-sw

1. Depot Tools

1. you'll need to the depot tools Installed:

Https://sites.google.com/a/chromium.org/dev/developers/how-tos/depottools

2. You need git installed (needed for getting WebM source):

http://git-scm.com/

/*====================================================*/


well, The external tools are almost identical.

4. Download and configure Depot_tools

A lot of people recommend creating a folder to store depot_tools, command to enter the folder

SVN Co Http://src.chromium.org/svn/trunk/tools/depot_tools

This should be done under linux, just under the Windows system, I think it's easier to do this:

Recommended Action:

Because of the previous installation of svn, git and other tools, we can take the Depot_tools tool directly:

Back to the Desktop. Right-click


Choose SVN Checkout directly


Fill the http://src.chromium.org/svn/trunk/tools/depot_tools to the URL of respository, Checkout Directory can randomly specify the path you want to save (there is no way to suggest that there is no chinese.) Because one will add to the path of the system), the other default, and then click OK, self-download, you can get the Depot_tools Tool.

The play is coming! Get WEBRTC Source Code:

Source code URL is http://webrtc.googlecode.com/svn/trunk/

5. In order to capture the source code, the ability to create a WEBRTC source folder

For example D:\WebRTC

General Operation : (not recommended)

Enter the folder with a DOS command, and then

SVN checkout http://webrtc.googlecode.com/svn/trunk/

After the download is Complete. WEBRTC will get a default folder called trunk, inside is the WEBRTC source Code. It's just the source code, and There's no compiled project File.

And then

>gclient config https://webrtc.googlecode.com/svn/trunk (to Download 1 multi-g files, The Internet is not good.) Be able to play a game of DotA Back)

>gclient Sync--force (sync Project File)

> Gclient runhooks--force (production of various project files, like vs project files Webrtc.sln files, Linux makefile Files)

Wait a minute... But I found a lot of students trying to compile WEBRTC in the DOS command into the operation there are a variety of problems 、、、

Analogy: Installing Subversion ...

[-] XMLHTTP 80072ee2:cannot make HTTP request (operation timeout

... Failed to checkout SVN automatically.

Visit http://subversion.tigris.org to download the latestsubversion Clie

Nt

Before Continuing. (this is a network connection problem, try a few more times)

F:\webrtc\webrtc>gclient.bat Confighttps://webrtc.googlecode.com/svn/trunk

Installing Python ... (this is a configuration Problem)

And so on the maddening Question.

Originally we have already installed python, svn, How still need installing 、、、 and will let you wait very long, depressed bar!

Recommended Action:

But I do it better:

Select the WebRTC folder, right-click


Then choose Git Bashand then go directly to the Folder: (for Example)


ok, It's time to get WEBRTC source code to produce project (assuming it's purely to get WEBRTC source code, It can be done exactly as you would get depot_tools. But we also need to get the source code after the production project File)

First step, take source code: svn checkout Http://webrtc.googlecode.com/svn/trunk/(source file is not very large, dozens of M)

The second step, take the project related configuration file: gclient config https://webrtc.googlecode.com/svn/trunk (file very large, 1G more, to wait very long Oh)

Step three, Sync your project files with Google and get the latest project:gclient Sync--force

Fourth Step. Project files for production platforms: gclient Runhooks--force

Note: before the fourth Step. Assume under the Windows Platform. Need to install the DirectX SDK and SDK for Windows 7.1

SDK 7.1:

Http://www.microsoft.com/download/en/details.aspx?

displaylang=en&id=8279

DirectX SDK:

 

displaylang=en&id=6812 ">http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6812

Note Again:

When installing SDK 7.1, be sure to note the installation path of SDK 7.1, because in the configuration of the WEBRTC project, the configuration file is in The. The. \trunk\src\build file named Common.gypi


This means that Google Default SDK 7.1 is installed under C Drive. Suppose the classmate you do not want to install under the C Drive. Then you need to change this configuration File. otherwise, there will be a variety of warning problems when running the fourth Step.

Suppose you don't want to install the SDK. The ability to rely on files from here:

SVN Co http://vsfiltermod.googlecode.com/svn/trunk/src/BaseClasses. Then place the file in this path: c:/programfiles/microsoft sdks/windows/v7.1/samples/multimedia/directshow/baseclasses

If you have successfully completed the above four steps, and there is no problem in the fourth step, then congratulations, you will be able to see under the Trunk folder under the Windows System platform of the WEBRTC.SLN projects project File. The Linux project file is in the Trunk\build install-build-deps.sh script.

There are Mac OS and Android and so on ...

There are many other things that Linux platforms need to Install:

g++ (>= 4.2)

Python (>= 2.4)

Libasound2-dev

Libpulse-dev

Libjpeg62-dev

Libxv-dev

Libgtk2.0-dev

Libexpat1-dev

For 32-bit builds on a 64-bit system:

Lib32asound2-dev

Ia32-libs

All right. I studied on vs 2008, opened webrtc.sln, and then generated the solution, so far there are 122 items in the solution, the audio engine. Video engine, and a lot of test code. Video chat test, API Test. Their own initiative test, VP8 and H. A test, sound Test. Channel Test 、、、 and so on, all generated about half an hour or so ... 、、、 ok,enjoy!

Be careful when compiling. Configuration of the Solution:

Ensure that there are for example the following configuration: include file DirectX sdk\include and $ (windowssdkdir) \include



Library files: DirectX sdk\lib\x86 DirectX sdk\lib sdks\windows\v7.1\lib




We'll have time to share these tests with you later.

??

WEBRTC Compilation Specific Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.