Chromium source code Download (WIN7X64+VS2013SP2, 39.0.2132.2)

Source: Internet
Author: User

Chromium source code Download (WIN7X64+VS2013SP2, 39.0.2132.2)

Http://www.aichengxu.com/diannao/1000251.htm

Before and after tossing for four days, many times are depressed want to give up, but fortunately insisted on down, but also finally overcome and difficult. The reason why it is so difficult to reflect, one is because English is not very good, so can only find Chinese articles to learn from, and the second is that Chinese articles are mostly outdated. So, even though the body is shaking all night, stick to the process of successful operation. The structure of chormium is changing too fast, maybe the day after tomorrow my method will be out of date, the sooner written out, perhaps more help others.
It is important to mention that it is the most recent person to update the download experience that helped me the most, and two or three years ago people put me in the hardest place ....
Here are two of the documents that are currently worth learning, and are here to prove each other:
http://blog.csdn.net/wangcheng711/article/details/38419869
http://blog.csdn.net/glunoy/article/details/23591047
Let's start with my experience (all listed commands are executed under Cmd.exe):
First, preheating
1. Install Win7 64-bit and vs2013 sp2 (after all I only have this environment experience, other environment can only you grope), prepare at least 15G of hard disk space (if you want to compile, X4 bar, hehe, anyway I have 200G. )
2. Learn to use the cmd command CD and set.
3. Learn to set the environment variables, please self-Baidu; It is important to note that the environment variables set by using set in Cmd.exe are not actually saved, that is, if you turn this cmd window off, the original set environment variable needs to be reset (at least on my computer, I can test it myself)
4. Decide the version number to download. You can find a stable version of the Chrome browser to get its version number. Best not to use the latest, because after downloading, not necessarily can be made up, then the headache. (I was the first to download the trunk, the result of the pit, and finally the success of the download release, so I do not know whether the trunk code can also be as below I said the same download)
Ii. Start of configuration action
1. Download depot_tools.https://src.chromium.org/viewvc/chrome/trunk/tools/, this directory has a depot_tools.zip file, click on it can be downloaded. After downloading, unzip to a location. I put it under the d:\, so I generated the D:\depot_tools folder and added this folder path (D:\depot_tools) to the PATH environment variable.
2. Create a new folder, and note that it is best to have English names and no spaces. The folder above Depot_tools is also. Like I just built a new e:\chromium. Then CD to this folder, Execute gclient config
http://src.chromium.org/svn/releases/39.0.2132.2, it should be the version number you chose at the back. Can be in
https://src.chromium.org/viewvc/chrome/releases/View all release versions.
3. The above command will download python276 and install, download svn and install it, download git and install it. But domestic is not linked to the server of git, so either change the script, or on the VPN. I spent 18 dollars for one months Vpn,git also under the good, is installed several times will be wrong, search the Internet a large circle, also found no way. Anyway, do not know what to do, there is svn should be enough. Proceed to the next step.
4. Perform gclient sync. Some people say is gclient sync--force, anyway I was used in front of,--force parameter do not know what use. Then is the long download, the speed is very fast, 4M network speed can fully fill. There are a lot of things to download around 10G, and WIN8SDK. Others say something can be downloaded (more than 4G), but the script should be changed. I'm too lazy to change it, let it go. In the meantime a few nets, repeatedly executed several times gclient sync. Proving that repeated execution is no problem, don't worry about ^_^ (I'm not going to tell you how scared I'm going to be, and I'm afraid it's all over again.) )。 Finally, you can see that it has been updated to version:xxxxx. Well, it's English, I didn't remember. But the last four letters are "done". So if you don't see done, then execute the order.
5. After a long download, we finally saw the dawn. But let's not hurry. Open the Common.gypi in the E:\chromium\src\build directory. Search for msvs_disabled_warnings. There is a place to disable the "many lots" warning, we are also here to mimic plus 4996, 4067, 4800, 4251 save off.
6. To start building the. sln file. But in fact this step is the hardest. Let me find a solution for several hours on the internet.
You should still be in the E:\chromium directory, and then go to src and execute the command in turn:
Set depot_tools_win_toolchain=0
Set gyp_msvs_version=2013
Set Gyp_defines=component=shared_library
Set Gyp_generators=ninja,msvs
Set Use_aura=1
Gclient Runhooks
Note the last command: Set GYP_GENERATORS=NINJA,MSVS, originally I see other people's documents is set GYP_GENERATORS=MSVS, but also specifically emphasized, but I use this, there will be errors:
Traceback (most recent): File "src/build/landmines.py", line 227, <module>
Sys.exit (Main ())
....
Completely can not find the clue, is also my luck, tried to set up the setting Gyp_generators=ninja,msvs, and then execute Gclient runhooks, unexpectedly downloaded and installed some things, on the success. Want to think is chromium recently changed.
7. Once the above command has been executed, you can find the Chrome.sln below Src\chrome and compile it. After I opened it with vs2013, there were more than 900 projects. To more than 200 when still stuck, no success. Finally found a smaller SLN project, changed a few mistakes, but succeeded.
The most important errors are: a. Treat warnings as errors and do not generate obj files, as long as the "treat warnings as errors" to No on the line, you can Baidu;
B. Under the current page (XXX) cannot .... Please save as Unicode file, this as long as the error file Ctrl + A, then click on the VS2013 file---Advanced save options, Save as Unicode (1200) on it.
C. Code that cannot be accessed. This is a Level 4 warning, turn the warning level to level 3. Should be able to set the script, or more than 900, change to what year and month? But I'm not.
8. After the completion of the sixth step, theoretically src and other folder icons should have a green small tick. If not, select this folder right-click, there will be the SVN menu "update Workspace xx", the update is OK.
The above is my most experience, hope can help someone who is depressed ~
Go to bed to Orz

Chromium source code Download (WIN7X64+VS2013SP2, 39.0.2132.2)

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.