编译时提到的文档我必须遵循Windows的此说明:http://www.chromium.org/developers/how-tos/build-instructions-windows
所以我完成了所有步骤,但以下是失败的,我该如何解决呢?
C:\tpt\depot_tools>mkdir out\Debug
C:\tpt\depot_tools>ninja -C out\Debug chrome
ninja: error: loading 'build.ninja': Het systeem kan het opgegeven bestand niet
vinden.
ninja: Entering directory `out\Debug'
答案 0 :(得分:6)
DONE。 Windows 8.1 Pro 64位。 Visual Studio 2013社区版
安装git https://git-scm.com/download/win
第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
第2步:
C:\folder\depot_tools>git config --global user.name "John Doe"
C:\folder\depot_tools>git config --global user.email "jdoe@email.com"
C:\folder\depot_tools>git config --global core.autocrlf false
C:\folder\depot_tools>git config --global core.filemode false
C:\folder\depot_tools>git config --global color.ui true
第3步:
/*
NOTE: A) Add those in the environment variable
C:\Users\folder>echo %PATH%
C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\Sy
stem32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\S
kype\Phone\;C:\Go\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program File
s (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\folder\depot_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:\folder\chromium>gclient sync
C:\folder\chromium>gclient runhooks
第4步:
C:\folder\chromium\src>ninja -C out\Debug chrome && out\Debug\chrome.exe
// NOTE: this takes several hours
SUCCESS:
可选注意:
https://www.chromium.org/developers/how-tos/getting-around-the-chrome-source-code