C:\Chromium_105\src>gn args out\Release
Waiting for editor on "C:\Chromium_105\src\out\Release\args.gn"...
Generating files...
Traceback (most recent call last):
File "C:/Chromium_105/src/build/toolchain/win/setup_toolchain.py", line 315, in <module>
main()
File "C:/Chromium_105/src/build/toolchain/win/setup_toolchain.py", line 273, in main
env = _LoadToolchainEnv(cpu, toolchain_root, win_sdk_path, target_store)
File "C:/Chromium_105/src/build/toolchain/win/setup_toolchain.py", line 189, in _LoadToolchainEnv
return _ExtractImportantEnvironment(variables)
File "C:/Chromium_105/src/build/toolchain/win/setup_toolchain.py", line 67, in _ExtractImportantEnvironment
raise Exception(
Exception: Path "C:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\um" from environment variable "include" does not exist. Make sure the necessary SDK is installed.
ERROR at //build/toolchain/win/toolchain.gni:500:24: Script returned non-zero exit code.
win_toolchain_data = exec_script("//build/toolchain/win/setup_toolchain.py",
^----------
Current dir: C:/Chromium_105/src/out/Release/
Command: C:/Chromium_105/depot_tools/bootstrap-2@3_8_10_chromium_23_bin/python3/bin/python3.exe C:/Chromium_105/src/build/toolchain/win/setup_toolchain.py "C:\Program Files\Microsoft Visual Studio\2022\Community" "C:\Program Files (x86)\Windows Kits\10" "C:\Windows\System32;C:\Windows\SysWOW64;Arm64Unused" win x86 environment.x86
Returned 1.
See //build/toolchain/win/BUILD.gn:34:3: whence it was called.
win_toolchains("x86") {
^----------------------
See //BUILD.gn:76:1: which caused the file to be included.
group("gn_all") {
^----------------
C:\Chromium_105\src>
代码是从另外一台电脑拷贝的, 拷贝过来有一定的问题 改一下这个就可以
C:\Chromium_105\src\build\toolchain\win 改这个
标签:src,toolchain,win,Chromium,build,出错,gn,chromium,105 From: https://www.cnblogs.com/Galesaur-wcy/p/16902707.html