Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
586 views
in Technique[技术] by (71.8m points)

visual c++ - Google Chrome - How to compile Google Chrome in Windows?

Documentation mentioned to compile i have to follow this instruction for Windows: http://www.chromium.org/developers/how-tos/build-instructions-windows

So i did all the steps, but the following is failing how can i resolve it?

enter image description here

C:ptdepot_tools>mkdir outDebug

C:ptdepot_tools>ninja -C outDebug chrome
ninja: error: loading 'build.ninja': Het systeem kan het opgegeven bestand niet
vinden.

ninja: Entering directory `outDebug'
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

DONE. Windows 8.1 Pro 64-bit. Visual Studio 2013 Community edition

Install git https://git-scm.com/download/win

Step 1:

C:>mkdir folder
C:>cd folder
C:>unzip https://src.chromium.org/svn/trunk/tools/depot_tools.zip
C:folder>dir
 Directory of C:folder
18/04/2015  02:59    <DIR>          depot_tools
               0 File(s)              0 bytes
               3 Dir(s)  67?387?064?320 bytes free

Step 2:

C:folderdepot_tools>git config --global user.name "John Doe"
C:folderdepot_tools>git config --global user.email "jdoe@email.com"
C:folderdepot_tools>git config --global core.autocrlf false
C:folderdepot_tools>git config --global core.filemode false
C:folderdepot_tools>git config --global color.ui true

Step 3:

/*
NOTE: A) Add those in the environment variable

C:Usersfolder>echo %PATH%
C:ProgramDataOracleJavajavapath;C:windowssystem32;C:windows;C:windowsSy
stem32Wbem;C:windowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)S
kypePhone;C:Goin;C:Program Files (x86)QuickTimeQTSystem;C:Program File
s (x86)Windows Kits8.1Windows Performance Toolkit;C:folderdepot_tools

NOTE: B) Add those in the environment variable

C:folder>set DEPOT_TOOLS_WIN_TOOLCHAIN=0
C:folder>echo %DEPOT_TOOLS_WIN_TOOLCHAIN%
0
*/


C:>cd folder
C:folder>fetch chromium
// or use fetch --no-history chromium 
//.....(wait: 1 hour or 3 hour just wait??? and shut up)
C:folderchromium>gclient sync
C:folderchromium>gclient runhooks

Step 4:

C:folderchromiumsrc>ninja -C outDebug chrome && outDebugchrome.exe 
// NOTE: this takes several hours

SUCCESS:

enter image description here

OPTIONAL NOTE:

  • you need to have enough disk space. otherwise the compile/build fails

enter image description here

  • you need to have enough memory space. otherwise it also fail

enter image description here

  • where to get started with code?

https://www.chromium.org/developers/how-tos/getting-around-the-chrome-source-code


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...