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