我该如何解决这个下载铬问题
how can i fix this download chromium prob
我尝试下载铬代码。
我现在正在指挥
$ 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\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
Returned 1 and printed out:
Copying C:\WINDOWS\System32\msvcp140.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\msvcp140.dll...
Copying C:\WINDOWS\System32\vccorlib140.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vccorlib140.dll...
Copying C:\WINDOWS\System32\vcruntime140.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vcruntime140.dll...
Copying C:\WINDOWS\System32\vcruntime140_1.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vcruntime140_1.dll...
Copying C:\WINDOWS\System32\ucrtbase.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\ucrtbase.dll...
Copying C:\WINDOWS\System32\msvcp140d.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\msvcp140d.dll...
Copying C:\WINDOWS\System32\vccorlib140d.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vccorlib140d.dll...
Copying C:\WINDOWS\System32\vcruntime140d.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vcruntime140d.dll...
Copying C:\WINDOWS\System32\vcruntime140_1d.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vcruntime140_1d.dll...
Copying C:\Program Files (x86)\Windows Kits\bin.0.18362.0\x64\ucrt\ucrtbased.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\ucrtbased.dll...
See //BUILD.gn:66:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
File "C:/Users/sapir/Downloads/depot_tools/chromium/src/build/toolchain/win/setup_toolchain.py", line 304, in <module>
main()
File "C:/Users/sapir/Downloads/depot_tools/chromium/src/build/toolchain/win/setup_toolchain.py", line 257, in main
vc_lib_um_path = FindFileInEnvList(env, 'LIB', ';', 'user32.lib')
File "C:/Users/sapir/Downloads/depot_tools/chromium/src/build/toolchain/win/setup_toolchain.py", line 211, in FindFileInEnvList
file_name, env_name, '\n'.join(parts))
AssertionError: user32.lib is not found in LIB:
C:\Program Files (x86)\Microsoft Visual Studio19\Community\VC\Tools\MSVC.27.29110\ATLMFC\lib\x64
C:\Program Files (x86)\Microsoft Visual Studio19\Community\VC\Tools\MSVC.27.29110\lib\x64
C:\Program Files (x86)\Windows Kits\NETFXSDK.8\lib\um\x64
C:\Program Files (x86)\Windows Kits\lib.0.18362.0\ucrt\x64
C:\Program Files (x86)\Windows Kits\lib.0.19041.0\um\x64
Check if it is installed.
我需要做什么??
您还没有为 Windows 安装调试工具。这条消息很清楚
You must install Windows 10 SDK version 10.0.19041.0 including the "Debugging Tools for Windows"
因为 GN
构建系统在执行命令 gn gen out\YourBuildFolder
时生成构建文件时正在搜索这些文件。您应该安装 Debugging Tools for Windows
并且看起来您使用的 Chromium 版本需要 Windows 10 SDK 版本 10.0.19041.0
.
我尝试下载铬代码。 我现在正在指挥 $ 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\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
Returned 1 and printed out:
Copying C:\WINDOWS\System32\msvcp140.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\msvcp140.dll...
Copying C:\WINDOWS\System32\vccorlib140.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vccorlib140.dll...
Copying C:\WINDOWS\System32\vcruntime140.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vcruntime140.dll...
Copying C:\WINDOWS\System32\vcruntime140_1.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vcruntime140_1.dll...
Copying C:\WINDOWS\System32\ucrtbase.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\ucrtbase.dll...
Copying C:\WINDOWS\System32\msvcp140d.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\msvcp140d.dll...
Copying C:\WINDOWS\System32\vccorlib140d.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vccorlib140d.dll...
Copying C:\WINDOWS\System32\vcruntime140d.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vcruntime140d.dll...
Copying C:\WINDOWS\System32\vcruntime140_1d.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\vcruntime140_1d.dll...
Copying C:\Program Files (x86)\Windows Kits\bin.0.18362.0\x64\ucrt\ucrtbased.dll to C:/Users/sapir/Downloads/depot_tools/chromium/src/out/Default\ucrtbased.dll...
See //BUILD.gn:66:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
File "C:/Users/sapir/Downloads/depot_tools/chromium/src/build/toolchain/win/setup_toolchain.py", line 304, in <module>
main()
File "C:/Users/sapir/Downloads/depot_tools/chromium/src/build/toolchain/win/setup_toolchain.py", line 257, in main
vc_lib_um_path = FindFileInEnvList(env, 'LIB', ';', 'user32.lib')
File "C:/Users/sapir/Downloads/depot_tools/chromium/src/build/toolchain/win/setup_toolchain.py", line 211, in FindFileInEnvList
file_name, env_name, '\n'.join(parts))
AssertionError: user32.lib is not found in LIB:
C:\Program Files (x86)\Microsoft Visual Studio19\Community\VC\Tools\MSVC.27.29110\ATLMFC\lib\x64
C:\Program Files (x86)\Microsoft Visual Studio19\Community\VC\Tools\MSVC.27.29110\lib\x64
C:\Program Files (x86)\Windows Kits\NETFXSDK.8\lib\um\x64
C:\Program Files (x86)\Windows Kits\lib.0.18362.0\ucrt\x64
C:\Program Files (x86)\Windows Kits\lib.0.19041.0\um\x64
Check if it is installed.
我需要做什么??
您还没有为 Windows 安装调试工具。这条消息很清楚
You must install Windows 10 SDK version 10.0.19041.0 including the "Debugging Tools for Windows"
因为 GN
构建系统在执行命令 gn gen out\YourBuildFolder
时生成构建文件时正在搜索这些文件。您应该安装 Debugging Tools for Windows
并且看起来您使用的 Chromium 版本需要 Windows 10 SDK 版本 10.0.19041.0
.