Beginner problems: Cmake failing on Windows

Hey everyone,

I’m having some trouble building the project. I’ve just downloaded the VST 3.6.8 Audio Plug-Ins SDK and have attempted to build it using Cmake (3.10.1) through Qt Creator via “Open File or Project” and selecting CMakeLists.txt from the top of the VST3_SDK folder, as per the instructions in the docs. My OS is 64-bit Windows 10.

The errors are to do with vstgui and EXPAT. I am getting the following output from Cmake:

The CXX compiler identification is GNU 6.3.0
Check for working C compiler: C:/MinGW/bin/gcc.exe
Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler: C:/MinGW/bin/g++.exe
Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
SMTG_AAX_SDK_PATH is not set. If you need it, please download the AAX SDK!
You have called ADD_LIBRARY for library vstgui without any source files. This typically indicates a problem with your CMakeLists.txt file
Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
Configuring done
CMake Error: Cannot determine link language for target "vstgui".
CMake Error: CMake can not determine linker language for target: vstgui
Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    QT_QMAKE_EXECUTABLE


CMake Project parsing failed.

Any tips are appreciated!

Hey,

my first guess is that something with the compiler/linker settings is not correct. Open QtCreator and go to “Tools >> Options… >> Build & Run >> Kits” and check if the kit is setup correctly especially “Compiler”.

I remember that once I had a similar error because the “Compiler” for “C++” was set to the C-Compiler.

René