2017-10-19 126 views
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 

謝謝你的幫忙!

+0

在執行此操作之前,請從該命令行運行:set DEPOT_TOOLS_WIN_TOOLCHAIN = 0。你有VS安裝?最新的SDK使用VS 2017,所以你必須安裝VS。讓我知道,如果它有效 – Asesh

回答

0

關於如何建立CEF(這也是建立鉻)的官方文檔可以在這裏找到:

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仍需要很多時間。