Compilation of chromium under ubuntu14.04

Source: Internet
Author: User

1. Download Depot_tools:

First install Git-core:sudo Apt-get installation Git-core

Execute command: Git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

2, update Depot_tools:

Input directly in the current Shell environment: Export path= "$PATH:d epot_tools_dir/depot_tools";

or add as System environment variables: Vim ~/.BASHRC file, at the end of the Add export path= "$PATH:d epot_tools_dir/depot_tools",

Save Execution Source ~/.BASHRC

3. Configure the Code branch

Go to your local directory to save the source code, Execute gclient config http://src.chromium.org/svn/releases/36.0.1985.135

You can download the appropriate version according to your needs. If you do not need to download some files, such as Layouttest, modify the. Gclient in the directory:

1 solutions = [

2 {"name": "36.0.1985.135",

3 "url": "http://src.chromium.org/svn/releases/36.0.1985.135",

4 "Deps_file": "Deps",

5 "Managed": True,

6 "Custom_deps": {

7 "src/content/test/data/layout_tests/layouttests": None,

8 "src/third_party/webkit/layouttests": None,

9 "Src/chrome/tools/test/reference_build/chrome_win": None,

Ten "Src/chrome_frame/tools/test/reference_build/chrome_win": None,

"Src/chrome/tools/test/reference_build/chrome_mac": None,

"Src/third_party/hunspell_dictionaries": None,

13},

"Safesync_url": "",

15},

16]

Cache_dir = None

Target_os = [' Android ']


4, Code synchronization:

Performing glient Sync--force synchronization generally takes longer,

Special Note:

Please use a VPN gate that I use for an open source VPN Client (window platform) + ubuntu14.04 virtual machine.

5. Installing the Java SDK

sudo apt-get install OPENJDK-7-JDK

sudo upate-alternatives--config javac

sudo upate-alternatives--config javaws

sudo upate-alternatives--config JAVAP

sudo upate-alternatives--config Jar

sudo upate-alternatives--config Jarsigner

sudo upate-alternatives--config Java


6. Compiling chromium

Execution: src/build/install-build-deps-android.sh (Android)

Ninja-c Out/release content_shell_apk

Attention:

When compiling on ubuntu14.04 (36.0.1985.135), you need to change the install-build-deps.sh script

Ubuntu_versions= "12\.04|12\.10|13\.04|13\.10|14\.04"

Add 14\.04 to do this.

If you have questions and needs, please leave a message, I will answer the questions for you.

Compilation of chromium under ubuntu14.04

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.