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