从源代码错误构建CEF(Chormium)

时间:2017-10-19 10:01:07

标签: chromium chromium-embedded

我正在遵循从源代码构建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

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

有关如何构建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,100 GB的磁盘空间(快速SSD)和至少4核CPU。建立CEF还需要几个小时。