Compile chromium, memo, and chromium in windows

Source: Internet
Author: User
Tags install window

Compile chromium, memo, and chromium in windows

Compile chromium in windows at: 20170619,

Official Address: https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md

I. system requirements:

1. 64-bit machines with at least 8 GB of memory, more than 16 GB is recommended. (I use a Win10 64-bit Virtual Machine with 8 GB memory );

2. At least GB of hard disk space, in the NTFS format. FAT32 does not support files larger than 4 GB, but may have 20 GB + files downloaded from git;

3. Visual studio 2015 update 3;

4. Win7 + (I used Win10 for compilation. This may be a pitfall, which is described below );

Ii. System Configuration:

1. install Visual studio 2015 update3 and install window sdk 14393. Three options for Visual C ++ to be installed in vs include MFC, Universal Windows Apps Development Tools> Tools (1.4.1) and Windows 10 SDK (10.0.14393 );

2. Debugging Tools For Windows must be installed in SDK 14393. I didn't know why I didn't install it when I started installing the SDK. It was only available after I fixed it;

3. Install depot_tools:

1. Download depot_tools bundle and decompress it at https://storage.googleapis.com/chrome-infra/depot_tools.zip;

2. put depot_tools at the beginning of the PATH environment variable, at least in front of your installed python and git, because depot_tools will download python, if it is behind your installed python, unexpected problems may occur;

3. Add the environment variable DEPOT_TOOLS_WIN_TOOLCHAIN and set it to 0;

4. Open cmd.exe to run gclient. During the first running, gclient will install python, msysgit, and other necessary components;

4. Obtain the source code:

1. Open cmd, create the chromium folder and enter the directory where you want to place the source code. mkdir chromium & cd chromium;

2. fetch chromium;

Ps: there is a problem here. The default windows defender in Win10 is enabled. After the source code is downloaded, it will appear:

This problem is mainly caused by soft interception to delete the file directory failed, disable WinDefender is good, other soft may have similar circumstances, please note, refer to the https://bugs.chromium.org/p/chromium/issues/detail? Id = 464132)

3. After the source code is successfully downloaded, run cd src to enter the src directory;

5. Compile (the most anticipated time is up ):

1. Use the Default compiling method first. Using gn gen out/Default, the out/Default directory will be created under the src directory and some files required for compilation will be configured;

2. Compile chrome using ninja-C out \ Default chrome command line. It takes a long time;

Ps: when using ninja for compilation, I see

Ninja: Entering directory 'out/default'
Ninja: error :'.. /.. /native_client/toolchain/mac_x86/pnacl_newlib/bin/x86_64-nacl-objcopy ', needed by 'irt _ x64/obj/ppapi/native_client/done', missing and no known rule to make it

This kind of error, in the src directory using cmd to execute gclient sync, smooth solution, refer to the https://groups.google.com/a/chromium.org/forum! Topic/chromium-dev/tQGuR7Ur0i8;

3. Compile and run chrome.exe under ultult.

 

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.