Google Chrome Download & Build

Source: Internet
Author: User
Tags svn

-----------------------------------------------Summary--------------------------------------------------

1. In the. gclient file, in the format, populate the dependent libraries that are required in the Deps.

2. Execute gclient command, update.

3. Direct compilation does not report any errors.

The version passed is: 1.0.154.53

Invalid----------------------------------------------old--------------------------------------------------

[Done] Download the R70488.TGZ package & 1.0.154.53 Source code Two versions of the source.

[Done] compile.


Chrome Official

Http://dev.chromium.org/developers

All the information is here. Here is the source of information.

Down Code [Windows version]

Http://dev.chromium.org/developers/how-tos/get-the-code

1.

(1) Install SVN

(2) with svn download depot_tools, Depot_tools address: Http://src.chromium.org/svn/trunk/tools/depot_tools

(3) Modify the environment variable and add the address of the Depot_tools directory to the environment variable.

(4) "Start"-> "Run"-> "cmd", enter "Gclient", Automatic Download Installation "Subversion" and "Phthon: After the installation is successful, you can use the gclient command to download the command line."

Method One

2. Download source TGZ Compression Package

3. Download 7-zip:windows to extract tgz tools

4. New Empty directory D:\chrome

5. "Source Tgz compression Package" with "7-zip", extract to the directory d:\chrome.

6. Dos enters D:\chrome, runs Gclient runhooks--force, will produce. sln file. So we can open it with the VS project.

7. Now the code is complete.

Method Two

2. Go to Chrome's SVN, find a desired version, view the path in the browser, like "http://src.chromium.org/svn/releases/4.0.262.0/"

3. New Empty directory D:\chrome

4. Enter the catalogue d:\chrome under CMD

5. Enter "gclient config http://src.chromium.org/svn/releases/4.0.262.0/" Download configuration file ". Gclient" to D:\chrome.

6. Enter "gclient sync" download source code (according to the current directory ". gclient" file source download) to D:\chrome.

7. For older versions (such as 1.0.XX), you need to download dependencies separately, open ... Src/deps, here is the project dependencies, which I manually download with SVN and copy to the corresponding directory. (There should be a way to invoke Deps automatically, I didn't find it.)

8. Now the code is complete.


Compile

Some common compilation errors are mainly mentioned.

1. First you need to update the code, regardless of what version of the code is downloaded.

Enter cmd-> gclient sync d:\chrome

Situation 1:. tgz package Download the source code, the update process, directly to the D:\CHROME\SRC directory in the update.

Situation 2:SVN pull out of the source folder, it will create a new directory update.

2. Go to the official website to the VS patch is played.

3. Save the source of the SRC path must not have spaces. Otherwise you will report an error:

Figure.

4. For a large number of reports in the compilation process. h does not exist, you need to find the directory where the.

A lot of. CC does not exist, you need to find the directory where the. cc file resides, and then read the wrong reference directory and copy the found folder to the reference directory.

---------------------------------------------------------------------------------------------------

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.