【问题标题】:Build CEF (Chormium) from Source Code error从源代码错误构建 CEF (Chromium)
【发布时间】:2017-10-19 10:01:06
【问题描述】:

我按照以下步骤从源代码构建 Chromium: https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md#Install

但是当我尝试“获取铬”时

我得到错误:

fetch chromium
Running: 'D:\dev\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe' 'D:\dev\depot_tools\gclient.py' root
Running: 'D:\dev\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe' 'D:\dev\depot_tools\gclient.py' config --spec 'solutions = [
{
"url": "https://chromium.googlesource.com/chromium/src.git",
"managed": False,
"name": "src",
"deps_file": ".DEPS.git",
"custom_deps": {},
},
]
'
Running: 'D:\dev\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe' 'D:\dev\depot_tools\gclient.py' sync
Error: Command 'D:\\dev\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe src/build/landmines.py' returned non-zero exit status 1 in D:\dev\chromium
Traceback (most recent call last):
File "D:\dev\depot_tools\\fetch.py", line 299, in <module>
sys.exit(main())
File "D:\dev\depot_tools\\fetch.py", line 294, in main
return run(options, spec, root)
File "D:\dev\depot_tools\\fetch.py", line 288, in run
return checkout.init()
File "D:\dev\depot_tools\\fetch.py", line 131, in init
self.run_gclient(*sync_cmd)
File "D:\dev\depot_tools\\fetch.py", line 78, in run_gclient
return self.run(cmd_prefix + cmd, **kwargs)
File "D:\dev\depot_tools\\fetch.py", line 68, in run
return subprocess.check_output(cmd, **kwargs)
File "D:\dev\depot_tools\win_tools-2_7_6_bin\python\bin\lib\subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '('D:\\dev\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe', 'D:\\dev\\depot_tools\\gclient.py', 'sync')' returned non-zero exit status 2

感谢您的帮助!

【问题讨论】:

  • 在此之前从该命令行运行:设置 DEPOT_TOOLS_WIN_TOOLCHAIN=0。你有安装VS吗?最新的 SDK 使用 VS 2017,所以你也必须安装 VS。让我知道,如果它有效

标签: chromium chromium-embedded


【解决方案1】:

关于如何构建 CEF(也构建 Chromium)的官方文档可以在这里找到:

https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md https://bitbucket.org/chromiumembedded/cef/wiki/BranchesAndBuilding.md

让您了解您的需求:

  • Windows 7 或更新版本的 64 位操作系统。
  • Visual Studio VS2017 15.3.2+ 安装在默认位置。
  • Windows 10.0.15063.468 SDK 安装在默认位置。您必须安装这个确切的 SDK 版本以避免构建问题。
  • 至少 8GB 的​​ RAM 和 40GB 的可用磁盘空间。

我建议至少 16GB 的 RAM、100GB 的磁盘空间(快速 SSD)和至少 4 核 CPU。构建 CEF 仍需要许多小时。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-20
    • 2011-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-19
    • 2016-04-13
    相关资源
    最近更新 更多