猿问

我怎样才能解决这个下载铬问题

我尝试下载 chromium 代码。我目前正在使用命令 $ gn gen out/Default 但它向我显示此错误:


C:\Users\sapir\Downloads\depot_tools\chromium\src>gn gen out/Default

Traceback (most recent call last):

  File "C:/Users/sapir/Downloads/depot_tools/chromium/src/build/vs_toolchain.py", line 577, in <module>

    sys.exit(main())

  File "C:/Users/sapir/Downloads/depot_tools/chromium/src/build/vs_toolchain.py", line 573, in main

    return commands[sys.argv[1]](*sys.argv[2:])

  File "C:/Users/sapir/Downloads/depot_tools/chromium/src/build/vs_toolchain.py", line 388, in CopyDlls

    _CopyDebugger(target_dir, target_cpu)

  File "C:/Users/sapir/Downloads/depot_tools/chromium/src/build/vs_toolchain.py", line 424, in _CopyDebugger

    (debug_file, full_path))

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:49:3: Script returned non-zero exit code.

  exec_script("../../vs_toolchain.py",

  ^----------

Current dir: C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default/

Command: C:/Users/sapir/Downloads/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe C:/Users/sapir/Downloads/depot_tools/chromium/src/build/vs_toolchain.py copy_dlls C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default Debug x64


我需要做什么 ??


守着星空守着你
浏览 106回答 1
1回答

哆啦的时光机

您尚未安装Windows 的调试工具。从这条消息中可以清楚地看出You&nbsp;must&nbsp;install&nbsp;Windows&nbsp;10&nbsp;SDK&nbsp;version&nbsp;10.0.19041.0&nbsp;including&nbsp;the&nbsp;"Debugging&nbsp;Tools&nbsp;for&nbsp;Windows"因为GN构建系统在执行命令时生成构建文件时正在搜索这些文件gn gen out\YourBuildFolder。您应该安装Debugging Tools for Windows并且看起来您正在使用的 Chromium 版本需要 Windows 10 SDK 版本10.0.19041.0。
随时随地看视频慕课网APP

相关分类

Python
我要回答