Compiling chromium
System for Windows, the domestic compilation of chromium on Windows less information, I can only as a reference in this article, to record some of the problems I encountered, because the chromium team will also modify the code, or compile the process;
If you use Linux or Mac, do not look at this article, foreign compiled documents are Linux and Mac, because the difference is still more;
12 Compilation process:
1:chrome Source; https://chromium.googlesource.com/chromium/chromium/
2: System Requirements: Win7 later version, the processor requires x86 or x64;
3:window, at least 8G of spare memory, hard disk is best solid state, chromium the entire project needs a 10G hard disk space;
4:VS2015 second Edition or newer version, install the time to choose a Custom installation (choose Visual C + + 3 options, MFC);
As well as the WINDOW10 SDK, anyway, see the SDK to choose it, or reinstall VC2015:
5: Download Depot_tools:https://src.chromium.org/svn/trunk/tools/depot_tools.zip;
6: Download after decompression, set depot_tools to environment variables, and environment variable depot_tools_win_toolchain = 0;
7: Create a chrome_build directory and put the source of chrome here (slow and slow to download with git); if it is a Mac system, refer to the official article directly: Http://www.chromium.org/Home
mkdir chromium//Create directory CD chromium fetch--no-history chromium//Sync code
8: Do gclient sync, no problem, will automatically download Python and git, it is important to note, because there is GW, we want to let Git protocol also go proxy,
Let Git go agent is the premise of a proxy server or socks agent, my side with the SOCKS5 proxy, proxy port for the local 1080:
git config--global https.proxy SOCKS5://localhost:1080git config--global Core.proxy SOCKS5://localhost:1080git config--global http.proxy SOCKS5:/ /localhost:1080git config--globalfalse
If you want to cancel the git proxy, we execute the following command:
git config--system (or---global or--local)----system (or--global or--local)----syste M (or--global or--local)--unset Core.proxy
9: The above step is to set up a proxy for Git, agent for the local Sock5, but has not set up a proxy for Python, if you do not set up a proxy for Python, will cause the Python download file failure, we modify the Depot_ Tools source way to let Python go proxy
Modify several files, this path is relative to the directory of Depot_tools , at present just change 3 python script file, later do not know, according to the error source of cmd , you change to:
depot_tools\gsutil.py
depot_tools\external_bin\gsutil\gsutil_4.15\gsutil\third_party\httplib2\python2\httplib2\__init__.py
depot_tools\external_bin\gsutil\gsutil_4.13\gsutil\third_party\httplib2\python2\httplib2\__init__.py
After the associated file import, the main program code is added later:
" 127.0.0.1 " the = Socks.socksocket
Because I use shadowsocks locally, I set the proxy to the local 1080 port
Download process if the card is dead, you can determine the background through the task manager is not in the download, if it is really stuck, Ctrl + C, force Cancel, and then re-execute gclient sync, re-sync;
10: In src directory execution, Python will link to https://storage.googleapis.com/download third-party dependency module:
Gclient Runhooks
11: So far, the code is downloaded and executed:
Ninja-c Out/default Chrome
12: More than 20,000 files, let him slowly compile:
Reference:
Python Walk socks5 Proxy reference: http://www.cnblogs.com/diligenceday/p/5719978.html
Workaround for unable to download remote RAR package When executing gclient: http://longyw.iteye.com/blog/2058949
This guy has compiled chromium:http://wendal.net/2015/02/04.html.
How to use git through a proxy:http://cms-sw.github.io/tutorial-proxy.html, old git need to manually convert SOCKS5 agent to git agent, the new version of the not, so long as there is The new version of Git is good;
Chromium source Download_from_google_storage cannot download file: http://www.cnblogs.com/ayanmw/p/4500825.html
Install PyPI for Python, let Python go proxy: https://pypi.python.org/pypi/setuptools#windows-simplified
Official Document: http://www.chromium.org/developers/how-tos/
Can only say chromium source is really too pit dad, even if there is FQ, is still a variety of tragedies, hey: http://blog.csdn.net/qhh_qhh/article/details/49078425
Attention:
Be sure to set up a proxy for git and Python, and if you implement FQ using change host, there will be a validation issue that causes Python and git to sync files to fail
Never use someone else to download a good project, because chromium this project is very large, compiling will involve operating system, environment, compiling tool, chromium version, and FQ, file download failure, verification .... Various issues
We recommend that you do not look at the Web on the Chrome compilation tutorial, because the chrome code has been updated, and now has a new way to compile, others can compile, you must not compile , the best way is to refer to official documents, must look at the official :
https://www.chromium.org/developers/
Https://www.chromium.org/developers/how-tos/get-the-code
NONO
Source: http://www.cnblogs.com/diligenceday/
QQ: 287101329
: 18101055830
12 processes for compiling chromium browsers under Windows