gn gen out/Default error

806 views
Skip to first unread message

LeonGamer_HD

unread,
Nov 2, 2020, 11:13:19 PM11/2/20
to Chromium-dev
Hello Everyone,

can somebody help me please?

i want to checkout chomium on windows:
the fetch chromium works properly, but wenn i run gn gen out/Default i receive an error.

Traceback (most recent call last):
  File "D:/src/depot_tools/src/build/vs_toolchain.py", line 577, in <module>
    sys.exit(main())
  File "D:/src/depot_tools/src/build/vs_toolchain.py", line 573, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "D:/src/depot_tools/src/build/vs_toolchain.py", line 550, in GetToolchainDir
    runtime_dll_dirs = SetEnvironmentAndGetRuntimeDllDirs()
  File "D:/src/depot_tools/src/build/vs_toolchain.py", line 93, in SetEnvironmentAndGetRuntimeDllDirs
    os.environ['GYP_MSVS_OVERRIDE_PATH'] = DetectVisualStudioPath()
  File "D:/src/depot_tools/src/build/vs_toolchain.py", line 184, in DetectVisualStudioPath
    version_as_year = GetVisualStudioVersion()
  File "D:/src/depot_tools/src/build/vs_toolchain.py", line 174, in GetVisualStudioVersion
    ' Supported versions are: %s.' % supported_versions_str)
Exception: No supported Visual Studio can be found. Supported versions are: 16.0 (2019), 15.0 (2017).
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:/src/depot_tools/src/out/Default/
Command: D:/src/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe D:/src/depot_tools/src/build/vs_toolchain.py get_toolchain_dir
Returned 1.
See //third_party/angle/gni/angle.gni:26:5: 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("../../gni/angle.gni")
^---------------------------
See //BUILD.gn:190:7: which caused the file to be included.
      "//third_party/angle/src/tests:angle_unittests",
      ^----------------------------------------------

Andreas Papacharalampous

unread,
Nov 2, 2020, 11:49:54 PM11/2/20
to yt_leon...@gmx.de, Chromium-dev
Do you have Visual Studio installed? If you do, you may have to set some variables as explained here.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/4d74840a-4573-4c97-94d6-1c2198bde8d7n%40chromium.org.

LeonGamer_HD

unread,
Nov 3, 2020, 1:43:49 AM11/3/20
to Chromium-dev, and...@apap04.com, Chromium-dev
Yes, I installed Visual Studio this is what the variable looks like and the Visual Studio version is 16.7.7
Unbenannt.PNG

Andreas Papacharalampous

unread,
Nov 3, 2020, 12:03:27 PM11/3/20
to LeonGamer_HD, Chromium-dev, and...@apap04.com
The variable value should only include the path of your installation, remove "set vs2018_install=" and leave the path intact.

SystemPropertiesAdvanced_aIBqIkHqNF.png

LeonGamer_HD

unread,
Nov 3, 2020, 12:57:32 PM11/3/20
to Chromium-dev, and...@apap04.com, Chromium-dev
thank you very much now it works without problems  
Reply all
Reply to author
Forward
0 new messages