1
我下面的步驟從源代碼讓某個版本的Chromium: https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md#Install構建CEF(Chormium)
但是,當我在嘗試「取鉻」
我得到錯誤:
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
謝謝你的幫忙!
在執行此操作之前,請從該命令行運行:set DEPOT_TOOLS_WIN_TOOLCHAIN = 0。你有VS安裝?最新的SDK使用VS 2017,所以你必須安裝VS。讓我知道,如果它有效 – Asesh