Hi, everyone.
If there is any difference, at first, I use vs2017 but not vs2015. Buf at last, because I can't build using vs2017(even I followed some tutorial about it), so I downloaded and installed the vs2015.
After that , I have successfully run the command 'gn gen out/Default'
But when I run 'ninja -C out\Default chrome', there is a new problem again = =. I'm sorry that I can't show you the output about it. Because when i see the output and found it seems is because the 15063 Windows SDK, so I uninstalled it.
And now, when I run 'ninja -C out\Default chrome', the output is as follow:
ninja -C out\Default chrome
ninja: Entering directory `out\Default'
[1/1] Regenerating ninja files
FAILED: build.ninja
D:/win_src/chromium/src/buildtools/win/gn.exe --root=D:/win_src/chromium/src -q gen .
Traceback (most recent call last):
File "D:/win_src/chromium/src/build/vs_toolchain.py", line 454, in <module>
sys.exit(main())
File "D:/win_src/chromium/src/build/vs_toolchain.py", line 450, in main
return commands[sys.argv[1]](*sys.argv[2:])
File "D:/win_src/chromium/src/build/vs_toolchain.py", line 425, in GetToolchainDir
runtime_dll_dirs = SetEnvironmentAndGetRuntimeDllDirs()
File "D:/win_src/chromium/src/build/vs_toolchain.py", line 44, in SetEnvironmentAndGetRuntimeDllDirs
Update()
File "D:/win_src/chromium/src/build/vs_toolchain.py", line 397, in Update
subprocess.check_call(get_toolchain_args)
File "D:\win_src\depot_tools\win_tools-2_7_6_bin\python\bin\lib\subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['D:\\win_src\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe', 'D:\\win_src\\chromium\\src\\third_party\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'D:\\win_src\\chromium\\src\\build\\win_toolchain.json', 'f53e4598951162bad6330f7a167486c7ae5db1e5']' returned non-zero exit status 1
ERROR at //build/config/win/visual_studio_version.gni:27:7: Script returned non-zero exit code.
exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope")
^----------
Current dir: D:/win_src/chromium/src/out/Default/
Command: D:/win_src/depot_tools/win_tools-2_7_6_bin/python/bin/python.exe -- D:/win_src/chromium/src/build/vs_toolchain.py get_toolchain_dir
Returned 1 and printed out:
Please follow the instructions at https://www.chromium.org/developers/how-tos/build-instructions-windows
See //third_party/angle/gni/angle.gni:20:3: whence it was imported.
import("//build/config/win/visual_studio_version.gni")
^----------------------------------------------------
See //third_party/angle/src/tests/BUILD.gn:7:1: whence it was imported.
import("//third_party/angle/gni/angle.gni")
^-----------------------------------------
See //BUILD.gn:205:7: which caused the file to be included.
"//third_party/angle/src/tests:angle_end2end_tests",
^--------------------------------------------------
ninja: error: rebuilding 'build.ninja': subcommand failed'
I'm confusing, so I want to try to sync. But when I run 'gclient sync', the output is as follow:
gclient sync
Syncing projects: 100% (84/84), done.
________ running 'D:\win_src\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe src/build/landmines.py' in 'D:\win_src\chromium'
Please follow the instructions at https://www.chromium.org/developers/how-tos/build-instructions-windows
Traceback (most recent call last):
File "src/build/landmines.py", line 148, in <module>
sys.exit(main())
File "src/build/landmines.py", line 135, in main
gyp_environment.SetEnvironment()
File "D:\win_src\chromium\src\build\gyp_environment.py", line 30, in SetEnvironment
vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
File "D:\win_src\chromium\src\build\vs_toolchain.py", line 44, in SetEnvironmentAndGetRuntimeDllDirs
Update()
File "D:\win_src\chromium\src\build\vs_toolchain.py", line 397, in Update
subprocess.check_call(get_toolchain_args)
File "D:\win_src\depot_tools\win_tools-2_7_6_bin\python\bin\lib\subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['D:\\win_src\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe', 'D:\\win_src\\chromium\\src\\third_party\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'D:\\win_src\\chromium\\src\\build\\win_toolchain.json', 'f53e4598951162bad6330f7a167486c7ae5db1e5']' returned non-zero exit status 1
Error: Command 'D:\\win_src\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe src/build/landmines.py' returned non-zero exit status 1 in D:\win_src\chromium
Hook ''D:\win_src\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe' src/build/landmines.py' took 17.10 secs
This is the problem I encountered, someone can help me? Thank you QAQ
> Here's some of my computer information might be useful:
1. Now it still have two Windows SDK(even after I unstalled 15063), these are 14393.33 and 14393.795(And both with the debugging tools)
2. I installed vs2015 and vs2017 both.(And both in the default location)
3. This is my system environment variables: