VST3 Project Generator doesn't see CMake

I have:
Windows 7 x64 sp1
Microsoft Visual Studio 2019
CMake 3.18.4 x64
Latest Steinberg VST3_SDK with VST3 Project Generator v.2020.07.

What I set in Preferences:


What I see in Create Plug-in Project:
(combobox with two empty elements)

Output when attempt to generate a project:

CMake not found! You need to install CMake for your platform to use this application.

How can I fix this?

strange, can you test this?

C:\Program Files\CMake\bin>cmake --help

it should display all Generators available
or try the cmake-gui.exe

The following generators are available on this platform (* marks default):
* Visual Studio 16 2019        = Generates Visual Studio 2019 project files.
                                 Use -A option to specify architecture.
  Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Visual Studio 9 2008 [arch]  = Generates Visual Studio 2008 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Borland Makefiles            = Generates Borland makefiles.
  NMake Makefiles              = Generates NMake makefiles.
  NMake Makefiles JOM          = Generates JOM makefiles.
  MSYS Makefiles               = Generates MSYS makefiles.
  MinGW Makefiles              = Generates a make file for use with
                                 mingw32-make.
  Unix Makefiles               = Generates standard UNIX makefiles.
  Green Hills MULTI            = Generates Green Hills MULTI files
                                 (experimental, work-in-progress).
  Ninja                        = Generates build.ninja files.
  Ninja Multi-Config           = Generates build-<Config>.ninja files.
  Watcom WMake                 = Generates Watcom WMake makefiles.
  CodeBlocks - MinGW Makefiles = Generates CodeBlocks project files.
  CodeBlocks - NMake Makefiles = Generates CodeBlocks project files.
  CodeBlocks - NMake Makefiles JOM
                               = Generates CodeBlocks project files.
  CodeBlocks - Ninja           = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
  CodeLite - MinGW Makefiles   = Generates CodeLite project files.
  CodeLite - NMake Makefiles   = Generates CodeLite project files.
  CodeLite - Ninja             = Generates CodeLite project files.
  CodeLite - Unix Makefiles    = Generates CodeLite project files.
  Sublime Text 2 - MinGW Makefiles
                               = Generates Sublime Text 2 project files.
  Sublime Text 2 - NMake Makefiles
                               = Generates Sublime Text 2 project files.
  Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                               = Generates Sublime Text 2 project files.
  Kate - MinGW Makefiles       = Generates Kate project files.
  Kate - NMake Makefiles       = Generates Kate project files.
  Kate - Ninja                 = Generates Kate project files.
  Kate - Unix Makefiles        = Generates Kate project files.
  Eclipse CDT4 - NMake Makefiles
                               = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - MinGW Makefiles
                               = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.

Also CMake GUI can generate some another cmake projects for me.

Can anyone give me simple .vcxproj - based project example of vst3 plugin, or cmake project example which I can process via normal CMake?

Also, where I can download previous versions of VST3 Project Generator?

What does

C:\Program Files\CMake\bin>cmake -E capabilities

prints out?

I did not use the Project Generator, since it is not able to create a single-component version and vst 2.4 compatibility.
Sadly there is no example in MyPlugins which is a single-component.
So I started with the ‘Again simple’ example (it’s the only one which is a single-component) and rewrote everything. It was pretty confusing here, since ‘Again’ and ‘Again simple’ share some source-codes. Then I added VST 2.4 compatibility. There was still a name conflict with vstkeycode which is double-defines in the 2.4 and 3.7 SDK. I do not longer remember how i sloved it.

When you want to be VST 2.4 compatible:

  • run copy_vst2_to_vst3_sdk.bat
  • Run CMakeGUI
  • Select C:/VST_SDK/VST3_SDK as ‘Where is the source code’
  • Select C:/VST_SDK/build as ‘Where to build the binaries’
  • Run File->delete cache
  • Click ‘configure’
  • Make sure that you disable SMT_CREATE_BUNDLE_FOR_WINDOWS
  • activate SMTG_CREATE_VST2_AGAIN_SAMPLE_VERSION.
  • click Generate
  • place aeffect.h, aeffectx.h and vstfxstore.h from the VST 2.4 SDK to VST3_SDK\pluginterfaces\vst2.x
  • open C:\VST_SDK\vstsdk.sln
  • select again (the only one that has vst 2.4 output)
  • Open project settings and add a post build event like this

@echo Postbuild script — copy VST3 files —
copy /Y “D:\VST_SDK_3.7\build\VST3\Release\Warlock.vst3” “C:\Program Files\Common Files\VST3\Warlock.vst3”
copy /Y “D:\VST_SDK_3.7\build\VST3\Release\Warlock.vst3” “C:\Program Files\Steinberg\Vstplugins\Warlock.dll”
@echo — copy finished —
@echo PostBuild script: — Running Validator.exe start —
“D:\VST_SDK_3.7\build\bin\Debug\validator.exe” “D:\VST_SDK_3.7\build\VST3\Release\Warlock.vst3”
@echo PostBuild script: — Running Validator.exe finished —

Please note this bug:
When you disable SMT_CREATE_BUNDLE_FOR_WINDOWS in the VST 3.7 SDK the examples that use the VSTGUI do no longer work properly. Instead they just show a black window without a GUI. To fix this open plug.rc . Then add the missing resources (in this case plug.rc in Helloworld_with vstgui)

#include <windows.h>
#include “…/include/version.h”

#define APSTUDIO_READONLY_SYMBOLS

plug.uidesc DATA “plug.uidesc”
background.png PNG “background.png”
animation_knob.png PNG “animation_knob.png”
onoff_button.png PNG “onoff_button.png”

background_2x.png PNG “background_2x.png”

/////////////////////////////////////////////////////////////////////////////
// Version

I removed Visual Studio at all, and now Project Generator not working either with the CMake from Qt 5 installation:

C:\Qt\Tools\CMake_64\bin>cmake -E capabilities

{"fileApi":{"requests":[{"kind":"codemodel","version":[{"major":2,"minor":1}]},{
"kind":"cache","version":[{"major":2,"minor":0}]},{"kind":"cmakeFiles","version"
:[{"major":1,"minor":0}]}]},"generators":[{"extraGenerators":[],"name":"Visual S
tudio 14 2015 ARM","platformSupport":true,"toolsetSupport":true},{"extraGenerato
rs":[],"name":"Visual Studio 16 2019","platformSupport":true,"toolsetSupport":tr
ue},{"extraGenerators":[],"name":"Visual Studio 15 2017 Win64","platformSupport"
:true,"toolsetSupport":true},{"extraGenerators":[],"name":"Visual Studio 15 2017
","platformSupport":true,"toolsetSupport":true},{"extraGenerators":[],"name":"Vi
sual Studio 15 2017 ARM","platformSupport":true,"toolsetSupport":true},{"extraGe
nerators":[],"name":"Visual Studio 14 2015 Win64","platformSupport":true,"toolse
tSupport":true},{"extraGenerators":[],"name":"Visual Studio 12 2013","platformSu
pport":true,"toolsetSupport":true},{"extraGenerators":[],"name":"Visual Studio 1
2 2013 Win64","platformSupport":true,"toolsetSupport":true},{"extraGenerators":[
],"name":"Visual Studio 14 2015","platformSupport":true,"toolsetSupport":true},{
"extraGenerators":["CodeBlocks","CodeLite","Sublime Text 2","Kate","Eclipse CDT4
"],"name":"MinGW Makefiles","platformSupport":false,"toolsetSupport":false},{"ex
traGenerators":[],"name":"Visual Studio 12 2013 ARM","platformSupport":true,"too
lsetSupport":true},{"extraGenerators":[],"name":"Visual Studio 11 2012","platfor
mSupport":true,"toolsetSupport":true},{"extraGenerators":[],"name":"Visual Studi
o 11 2012 ARM","platformSupport":true,"toolsetSupport":true},{"extraGenerators":
["CodeBlocks","CodeLite","Sublime Text 2","Kate","Eclipse CDT4"],"name":"Unix Ma
kefiles","platformSupport":false,"toolsetSupport":false},{"extraGenerators":[],"
name":"Visual Studio 11 2012 Win64","platformSupport":true,"toolsetSupport":true
},{"extraGenerators":[],"name":"Visual Studio 10 2010 Win64","platformSupport":t
rue,"toolsetSupport":true},{"extraGenerators":[],"name":"Visual Studio 10 2010",
"platformSupport":true,"toolsetSupport":true},{"extraGenerators":[],"name":"Ninj
a Multi-Config","platformSupport":false,"toolsetSupport":false},{"extraGenerator
s":[],"name":"Visual Studio 10 2010 IA64","platformSupport":true,"toolsetSupport
":true},{"extraGenerators":[],"name":"Visual Studio 9 2008","platformSupport":tr
ue,"toolsetSupport":false},{"extraGenerators":[],"name":"Visual Studio 9 2008 Wi
n64","platformSupport":true,"toolsetSupport":false},{"extraGenerators":["CodeBlo
cks"],"name":"NMake Makefiles JOM","platformSupport":false,"toolsetSupport":fals
e},{"extraGenerators":[],"name":"Visual Studio 9 2008 IA64","platformSupport":tr
ue,"toolsetSupport":false},{"extraGenerators":[],"name":"MSYS Makefiles","platfo
rmSupport":false,"toolsetSupport":false},{"extraGenerators":[],"name":"Borland M
akefiles","platformSupport":false,"toolsetSupport":false},{"extraGenerators":["C
odeBlocks","CodeLite","Sublime Text 2","Kate","Eclipse CDT4"],"name":"NMake Make
files","platformSupport":false,"toolsetSupport":false},{"extraGenerators":[],"na
me":"Green Hills MULTI","platformSupport":true,"toolsetSupport":true},{"extraGen
erators":["CodeBlocks","CodeLite","Sublime Text 2","Kate","Eclipse CDT4"],"name"
:"Ninja","platformSupport":false,"toolsetSupport":false},{"extraGenerators":[],"
name":"Watcom WMake","platformSupport":false,"toolsetSupport":false}],"serverMod
e":true,"version":{"isDirty":false,"major":3,"minor":18,"patch":3,"string":"3.18
.3","suffix":""}}

CMake does not work without Visual Studio on PC.

I had the same problem, and it appears to be a Windows 7 issue. No problem on Win10 machine.

Please note, that we don’t support building on Windows 7. We advise all developers to use Windows 10 to build their products. It’s possible to build for Windows 7 on Windows 10 tho.