Build Chrome in Visual Studio 2015

I am following Chromium Projects to create a Chrome browser on Windows. When I go to the Run post-sync hooks step and run

gclient runhooks 

The following errors show

 ________ running 'D:\Chromium\depot_tools\depot_tools\python276_bin\python.exe src/build/landmines.py' in 'D:\Chromium\chromium' Traceback (most recent call last): File "src/build/landmines.py", line 147, in <module> sys.exit(main()) File "src/build/landmines.py", line 134, in main gyp_environment.SetEnvironment() File "D:\Chromium\chromium\src\build\gyp_environment.py", line 33, in SetEnvironment vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs() File "D:\Chromium\chromium\src\build\vs_toolchain.py", line 73, in SetEnvironmentAndGetRuntimeDllDirs os.environ['GYP_MSVS_OVERRIDE_PATH'] = DetectVisualStudioPath() File "D:\Chromium\chromium\src\build\vs_toolchain.py", line 139, in DetectVisualStudioPath ' not found.') % (version_as_year)) Exception: Visual Studio Version 2013 (from GYP_MSVS_VERSION) not found. Error: Command 'D:\\Chromium\\depot_tools\\depot_tools\\python276_bin\\python.exe src/build/landmines.py' returned non-zero exit status 1 in D:\Chromium\chromium 

My visual version of the studio is 2015, and due to the errors above, it looks like it has not been found since 2013. Does anyone know how I can build with vs 2015? Thanks!

+7
visual-studio-2015 chromium
source share
2 answers

Updated (12/13/2016):

As stated in the chrome manual , the previous answer no longer works. Please take care!

As of December 8, 2016, Chromium requires Visual Studio 2015, with 14,393 Windows SDKs to build.

Previous:

Solved the problem with the following command

 set GYP_MSVS_VERSION=2015 

More information can be found in the chrome discussion section.

+10
source share

WebRTC (v62) does not work with Visual Studio 2017 Enterprise.

Be careful and see vs_toolchain.py from line 149

 if version_as_year == '2017': # The VC++ 2017 install location needs to be located using COM instead of # the registry. For details see: # https://blogs.msdn.microsoft.com/heaths/2016/09/15/changes-to-visual-studio-15-setup/ # For now we use a hardcoded default with an environment variable override. for path in ( os.environ.get('vs2017_install'), r'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional', r'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community'): if path and os.path.exists(path): return path 
+1
source share

All Articles