【发布时间】: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