I am currently experiencing the following build errors after building chromium after running fetch --no-history chromium
在运行FETCH之后构建Chrome之后,我目前遇到了以下构建错误--无历史记录的Chrome
No downloadable toolchain found. In order to use your locally installed version of Visual Studio to build Chrome please set DEPOT_TOOLS_WIN_TOOLCHAIN=0.
For details search for DEPOT_TOOLS_WIN_TOOLCHAIN in the instructions at https://chromium.googlesource.com/chromium/src/+/HEAD/docs/windows_build_instructions.md
Traceback (most recent call last):
File "src/build/vs_toolchain.py", line 589, in <module>
sys.exit(main())
File "src/build/vs_toolchain.py", line 585, in main
return commands[sys.argv[1]](*sys.argv[2:])
File "src/build/vs_toolchain.py", line 531, in Update
subprocess.check_call(get_toolchain_args)
File "C:\workspace\depot_tools\bootstrap-2@3_8_10_chromium_26_bin\python3\bin\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\workspace\\depot_tools\\bootstrap-2@3_8_10_chromium_26_bin\\python3\\bin\\python3.exe', 'C:\\chromium\\src\\third_party\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'C:\\chromium\\src\\build\\win_toolchain.json', '27370823e7', '--force']' returned non-zero exit status 1.
I have tried the command set DEPOT_TOOLS_WIN_TOOLCHAIN=0
multiple times but after running gclient sync
to try to build again the same error comes back.
我已经多次尝试命令set Depot_Tools_Win_TOOLCHAIN=0,但在运行gclient sync再次尝试构建之后,再次出现相同的错误。
更多回答
Do you have all the dependencies installed? Looks like you don't have Visual Studio (Not VS Code or Visual Studio Code) installed?
您是否安装了所有依赖项?看起来您没有安装Visual Studio(不是VS代码或Visual Studio代码)?
I do have Visual Studio 2022 installed. Then I did run set DEPOT_TOOLS_WIN_TOOLCHAIN=0
and it still doesn't work.
我确实安装了Visual Studio 2022。然后,我确实运行了set Depot_Tools_Win_TOOLCHAIN=0,但它仍然不起作用。
优秀答案推荐
我是一名优秀的程序员,十分优秀!