GClient运行挂接失败

人气:313 发布:2022-10-16 标签: build-process chromium

问题描述

我正在尝试在Windows下构建Chrome,我使用tortoiseSVN获得了Chrome主干,我相信我得到的一切都是正确的,但当我运行"gClient runhooks"时,我收到错误:"Error:客户端未配置;请参阅‘gclient config’"。

现在,我知道发生这种情况是因为我在同一目录中没有".gclient"文件,但我在项目中的任何位置都找不到.gclient文件。我尝试自己创建.gclient文件,但它显示缺少解决方案。

我可能遗漏了什么,有人能帮我吗?我被卡住了! 谢谢!

推荐答案

上述解决方案已过时。与SVN存储库一起运行会导致:

Error: 
The chromium code repository has migrated completely to git.
Your SVN-based checkout is now obsolete; you need to create a brand-new
git checkout by following these instructions:

http://www.chromium.org/developers/how-tos/get-the-code

现在您需要创建一个.gclient文件,如下所示

solutions = [
  {
    "managed": False,
    "name": "src",
    "url": "https://chromium.googlesource.com/chromium/src.git",
    "custom_deps": {},
    "deps_file": ".DEPS.git",
    "safesync_url": "",
  },
]

并执行:

gclient sync

343