Unable to build on Windows with VS 2019

I’m new to blender dev and am trying to get things working by following the Quick Setup instructions on https://wiki.blender.org/wiki/Building_Blender/Windows. Unfortunately, I’m unable to perform the compile step. I’m getting the error

D:\dev\github.com\blender-git\blender>make
No explicit msvc version requested, autodetecting version.
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.4.3
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Compiler Detection successful, detected VS2019
Building blender with VS2019 for x64 in D:\dev\github.com\blender-git\blender\..\build_windows_x64_vc16_Release
CMake Error: Could not create named generator Visual Studio 16 2019

Generators
  Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
                                 Optional [arch] can be "Win64" or "ARM".

...

"Configuration Failed"

I’ve just created a fresh install of VS 2019 and the ‘make update’ ran fine. Any idea what’s wrong?

Hi, I would say the problem is with cmake, download the latest version and retry. From your post, it seems you are using and old cmake that doesn’t support 2019.

Cheers,
Daniel

2 Likes

That worked. Thanks!

Oh my god I’ve been close to tearing my hair out trying to build bpy. This comment was the magic sauce - thanks a bunch!