gpt4 book ai didi

google-chrome - Google Chrome - 如何在 Windows 中编译 Google Chrome?

转载 作者:行者123 更新时间:2023-12-02 08:27:19 30 4
gpt4 key购买 nike

提到编译的文档我必须遵循 Windows 的此说明:http://www.chromium.org/developers/how-tos/build-instructions-windows

所以我做了所有的步骤,但以下失败了我该如何解决?

enter image description here

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'

最佳答案

完毕。 Windows 8.1 专业版 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

第四步:
C:\folder\chromium\src>ninja -C out\Debug chrome && out\Debug\chrome.exe 
// NOTE: this takes several hours

成功:

enter image description here

可选注释:
  • 你需要有足够的磁盘空间。否则编译/构建失败

  • enter image description here
  • 你需要有足够的内存空间。否则它也会失败

  • enter image description here
  • 从哪里开始使用代码?

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

    关于google-chrome - Google Chrome - 如何在 Windows 中编译 Google Chrome?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30902179/

    30 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com