Compiling Chrome on Ubuntu

Source: Internet
Author: User

compiling chrome on Ubuntusweet potato with hearts1. Get code 1) Download TARBALL,HTTP://CHROMIUM-BROWSER-SOURCE.COMMONDATASTORAGE.GOOGLEAPIS.COM/CHROMIUM_TARBALL.HTML2) Unzip 3) Install Dept_tools:http://www.chromium.org/developers/how-tos/install-depot-tools
Add Dept_tools to Path export PATH="$PATH":' pwd '/depot_tools or add to ~/.BASHRC inside

2. Install the dependency intounder the CHROMIUM/SRC directory ./build/install-build-deps.sh

3. Synchronizing the Codego into the CHROMIUM/SRC directoryGCLIENT sync --force
If you do not want to synchronize, you must perform gclient runhooks--force
This step will call Gyp to Phoenix some platform-specific code, just do it once to
4. Configuration
./Build/-Dflag1=-Dflag2=value2        

5. CompilingMake Chrome
encounter problems and solve1.bison:cannot Open file ' external/bison/data/m4sugar/m4sugar.m4 ': No such file or directorylook like bison not installed, and re-apt-get Remove/install installed bison, or not, to the website to download the latest 2.5 compilation installation, or notso bison-vThe discovery shows that theBison (GNU Bison) 2.3
but I'm using Whereis bison, which shows the 2.5 address I just loaded .judge where the bison was pre-executedsostrace (Bison), sure enoughexecve ("/home/tom/work/gingerbread/out/host/linux-x86/bin/bison", ["Bison"], [/* Wuyi VARs */]) = 0

The reason is that I set the Android out address in front of the path, so I covered the/usr/local/bin, executed the android under the BisonModify the PATH variable to resolve the problem
2.link When the memory is not enough to exitWorkaround:1) Increase swap, I added to the 8Ghttp://www.ylmf.net/ubuntu/tips/2010123119690.html

2) Link with gold ld instead of LD export cc= "Gcc-b/usr/local/gold/bin"
or the /usr/local/gold/bin to the front of/usr/bin in the PATH variable


Reference:1) Get-the-code,http://www.chromium.org/developers/how-tos/get-the-code2) Linux build Instruction,http://code.google.com/p/chromium/wiki/linuxbuildinstructions3) Linuxfasterbuilds, Http://code.google.com/p/chromium/wiki/LinuxFasterBuilds

Compiling Chrome on Ubuntu

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.