Chromium Download Compilation process

Source: Internet
Author: User
Tags locale svn

For a long time did not sync Google Code, before the agent is not available so the source is also compiled no sln.

With the agent, found that the compilation is not imagined complex.

Now compile the process to make a summary.

/////////////////////////////////

The following is another tool download, you can refer to. My environment Depot_tools is a year ago configuration can also use, if the configuration depot_tools out of the problem, but also please find their own Niang toss down.

////////////////////////////////

1, download tool preparation

Download Depot_tools and extract to C:\

Https://src.chromium.org/svn/trunk/tools/depot_tools.zip

Set up Depot_tools agent [recommended]

In order to solve the problem of Depot_tools itself update, add proxy support for Depot_tools, modify C:\depot_tools\bootstarp\win\get_file.js file:

(1) Change xml_http = Newactivexobject ("MSXML2"). ServerXMLHTTP ");

For xml_http = Newactivexobject ("MSXML2"). serverxmlhttp.5.0 ");

(2) in Xml_http.open ("get", url,false); Before the increase

Xml_http.setproxy (2, "Proxyurl:proxyport") or Xml_http.setproxy (2, "127.0.0.1:8118");

In Xml_http.open ("get", url,false); After the increase

Xml_http.setproxycredentials ("Proxyuser", "proxypwd"); Need user password to use, no need to set

Note: If an ActiveX widget does not create an object: msxml2.serverxmlhttp.5.0 Microsoft VBScript run-time error ' 800A01AD ' recommended processing is as follows: 1 first in C:\Windows\System 32 find MSXML, such as the Msxml[x].dll and Msxml[x]r.dll than Msxml5.dll Msxml5r.dll version of the high, you can try to use it. That is, set xml_http = Newactivexobject ("MSXML2. ServerXMLHTTP. [x].0 "); X>5 2) If not Baidu under Msxml5.dll msxml5r.dll download and to C:\Windows\System32;

2, set the download tool path to environment variables

Computer Properties-"advanced-" Environment variables-"System attributes-" open path, the most front to increase C:\depot_tools;

Admin privileges Open cmd, run gclient Automatic Update tool, download Python, git, svn, and so on.

If the error indicates that FQ failed or the above settings failed.

/////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////

The following are the agents that were configured before compilation

/////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////

Agent with no account password:

Set Http_proxy=http://proxy.server.com:proxyport
Set Https_proxy=https://proxy.server.com:proxyport
git config--global http.proxy%http_proxy%
git config--global https.proxy%https_proxy%

Agent with account password:

Set Http_proxy=http://domain\proxyuser:proxypwd@proxy.server.com:proxyport
Set Https_proxy=https://domain\proxyuser:proxypwd@proxy.server.com:proxyport
git config--global http.proxy%http_proxy%
git config--global https.proxy%https_proxy%


You also need to set up the Boto agent to resolve the download Google storage failure problem:

1 in Depot_tools to the directory under the new Http_proxy.boto, the contents are as follows:

[Boto]

proxy= 127.0.0.1

proxy_port= 8118

Add the following two items with a password

Proxy_user=proxy User Name

Proxy_pass=proxy Password

2) Set No_auth_boto_config=c:\depot_tools\http_proxy.boto

/////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////

Download and compile

/////////////////////////////////////////////////////////////////////////////////////////////////////////////// 1, refer to the official download Note: Http://www.chromium.org/developers/how-tos/get-the-code

The simple point is to run directly: Fetch chromium

If the proxy settings are successful, you will see still working on refresh every 10 seconds. This means congratulations, just be patient.

2, download the compilation

D:\chromium42>gclient Sync--force (The previous step will force the synchronization code to build the solution, and now there will be a failure to find the file after synchronizing a portion)

D:\CHROMIUM42>CD SRC

D:\chromium42\src>gclient Sync (ensure source sync complete)

D:\chromium42\src>set Gyp_generators=msvs-ninja,ninja

D:\chromium42\src>gclient Runhooks and then you can find Chrome.sln solution under src/chrome/, the same way you used to debug.

3, if the following error occurs in the Gclient runhooks procedure, set the set depot_tools_win_toolchain=0 and then run Gclient Runhooks try again. Set to 0 is to let gclient not automatically to construct the environment, but to take advantage of the native existing environment.

Please follow the instructions at Http://www.chromium.org/developers/how-tos/bui
Ld-instructions-windows
Traceback (most recent call last):
File "Src\build\gyp_chromium", line 244, in <module>
Gyp_environment. Setenvironment ()
File "D:\ChromiumLast\src\build\gyp_environment.py", line, in Setenvironmen
T
Vs_toolchain. Setenvironmentandgetruntimedlldirs ()
File "D:\ChromiumLast\src\build\vs_toolchain.py", line, in Setenvironmentan
Dgetruntimedlldirs
Update ()
File "D:\ChromiumLast\src\build\vs_toolchain.py", line 177, in Update
Subprocess.check_call (Get_toolchain_args)
File "D:\depot_tools\python276_bin\lib\subprocess.py", line 540, in Check_call
Raise Calledprocesserror (Retcode, cmd)
Subprocess. Calledprocesserror:command ' [' D:\\depot_tools\\python276_bin\\python
. exe ', ' d:\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py ', '--OUTPU
T-json ', ' D:\\chromiumlast\\src\\build\\win_toolchain.json ', ' ee7d718ec60c2dc5d2
55BBE325909C2021A7EFEF '] ' returned Non-zero exit status 1


The following two blog summary is good, the suggestion has the question may refer to the following:

1,http://blog.csdn.net/kuerjinjin/article/details/23563059

2,http://blog.csdn.net/wpc320/article/details/44918321 This is a WEBRTC configuration, but some depot_tools configurations are worth referencing (because chromium is also used Depot_ Tools).


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

Add:

First, use the vs2013 compilation process to appear error msb3073....d3dcompiler_47*** related things, there are some action copying D3D Compiler DLL information.

Google has relevant information, useful is set gyp_defines=windows_sdk_path= "C:\Program Files (x86) \ Windows kits\8.0", and there is information about d3dcompiler_47.

Therefore, it is suspected that the local Windows SDK environment variable settings and chromium inconsistency problem (I under the 42.0.2311.135), combined with the chance to see D:\ChromiumLast\src\build\vs_ toolchain.py, there's a paragraph inside.

If not ' WindowsSDKDir ' in Os.environ:
Default_sdk_path = ' C:\\Program Files (x86) \\Windows kits\\8.1 "

content, so I searched for the next d3dcompiler_47.dll in C:\Program Files (x86) \ Windows Kits, which appeared in 8.1 directories and 8.0 in D3dcompiler_46.dll.

Therefore, change the system environment variable Windows_sdk_path to "C:\Program Files (x86) \ Windows kits\8.1" (8.0 is compiled before 36 version).

Set the set gyp_defines=windows_sdk_path= "C:\Program Files (x86) \ Windows kits\8.1" before the command line compiles

Then again gclient Runhooks, finally compile normal.

Second, error C1902 errors are found using the vs2013 compilation process

This error is a combination of official instructions http://www.chromium.org/developers/how-tos/build-instructions-windows honest to upgrade vs 2013 to update version 4.

Third, the vs2013 compile process error C2990 errors, the file contains a character that cannot is represented in the current code page, and other information

or according to the official, set the system locale to English bar, (Control Panel \ Clock, language and area-> change display language-> management-> non-Unicode program language, set it to English (USA)

Setting up Windows

You are must set your Windows system locale to 中文版, or else you have build errors about "The file contains a character That cannot is represented in the current code page.

Who call English is not good, foreigners like to play with you.


/////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////

/**********************chromium version Switching ************************/

/////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////

1) CD src #需要切换到src下才能使用git仓库管理

2 git checkout-b-newbranch [<start_poimt>]

Create a new branch and switch to a new branch.
b represents the meaning of branch, Newbranch is the name of the new branch,
If no submission point (Start_point) is specified, the default is to create a branch from the commit that is pointed to by the head. such as: Git Checkout-b 42.0.2311.135 42.0. 2311.135

3) gclient sync--nohooks--with_branch_heads--with_tags--output-json= "Log.json"

4 gclient unhooks Update sln (requires the preceding environment variable)

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.