我几乎已经完成了从我的windows桌面构建chromium,但我在最后一步卡住了,运行gn gen out/Default。我检查了我的visual studio安装程序,Windows 10 SDK版本10.0.19041.0已经安装。我不知道该怎么做。整个输出如下所示:
C:\chromium\src>gn gen out/Default
Traceback (most recent call last):
File "C:/chromium/src/build/vs_toolchain.py", line 573, in <module>
sys.exit(main())
File "C:/chromium/src/build/vs_toolchain.py", line 569, in main
return commands[sys.argv[1]](*sys.argv[2:])
File "C:/chromium/src/build/vs_toolchain.py", line 400, in CopyDlls
_CopyDebugger(target_dir, target_cpu)
File "C:/chromium/src/build/vs_toolchain.py", line 433, in _CopyDebugger
raise Exception('%s not found in "%s"\r\nYou must install'
Exception: dbghelp.dll not found in "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll"
You must installWindows 10 SDK version 10.0.19041.0 including the "Debugging Tools for Windows" feature.
ERROR at //build/toolchain/win/BUILD.gn:54:3: Script returned non-zero exit code.
exec_script("../../vs_toolchain.py",
^----------
Current dir: C:/chromium/src/out/Default/
Command: C:/src/depot_tools/bootstrap-3_8_0_chromium_8_bin/python3/bin/python3.exe C:/chromium/src/build/vs_toolchain.py copy_dlls C:/chromium/src/out/Default Debug x64
Returned 1.
See //BUILD.gn:66:1: which caused the file to be included.
group("gn_all") {
1条答案
按热度按时间zpgglvta1#
来自 chrome 文件:
还必须安装SDK调试工具。如果Windows 10 SDK是通过Visual Studio安装程序安装的,则可以通过转到以下位置进行安装:控制面板→程序→程序和功能→选择“Windows软件开发工具包”→更改→更改→选中“Windows调试工具”→更改。或者,您可以下载独立的SDK安装程序并使用它来安装调试工具。