Compile chrome on Ubuntu

Source: Internet
Author: User
Download tarball, http://chromium-browser-source.commondatastorage.googleapis.com/chromium_tarball.html2) decompress 3) install dept_tools: http://www.chromium.org/javass/how-tos/install-depot-toolsadd dept_toolsto path export PATH="$PATH":'Pwd'/depot_tools or add it ~ /. Bashrc inside 2. Install dependency into the chromium/src directory./build/install-build-deps.sh

3. Synchronize the code to gclient sync -- force under the chromium/src directory.
If you do not want to synchronize, you must execute gclient runhooks -- force
This step calls gyp to produce some specific platform code.
4. Configuration

./build/gyp_chromium -Dflag1=value1 -Dflag2=value2

5. Compile make Chrome
Problems encountered and solved 1. bison: cannot open file 'external/Bison/data/m4sugar/m4sugar. m4 ': no such file or directory. It looks like Bison is not installed, and apt-Get remove/install is installed with bison again. It still doesn't work. download the latest 2.5 compilation and installation from the website, bison-V found that Bison (GNU bison) 2.3
However, I used whereis bison to show that the newly installed 2.5 address was used to determine where Bison was pre-executed, so strace (bison ), sure enough execve ("/home/Tom/work/gingerbread/out/host/linux-x86/bin/bison", ["bison"], [/* 51 vars */]) = 0

The reason is that I set the android out address in front of the path, so I overwrite/usr/local/bin, and executed bison under android to modify the PATH variable. The problem is solved.
2. How to exit when the link memory is insufficient: 1) Increase the swap and I added it to 8 ghttp: // www.ylmf.net/ubuntu/tips/2010123119690.html
2) Replacing LD with gold ld for LinkExport
Cc = "gcc-B/usr/local/gold/bin"
Or Add/usr/local/gold/bin to the PATH variable before/usr/bin.


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

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.