Skip to content

Windows Visual Studio setup

Filipe Coelho edited this page May 24, 2021 · 2 revisions

This page describes how to setup DPF plugin development under Microsoft Visual Studio.

Notes on building VST2 on Windows (format this later as a proper page)

* Install Visual Studio 2019 Community
  Select "Desktop development with C++", make sure to enable "C++ CMake tools for Windows"

* Open Visual Studio
  Click "Clone a repository"

2021-04-17 17_47_12-Microsoft Visual Studio

* Fill "Repository location" with `https://github.com/sfztools/sfizz.git`
  Click "Clone"

2021-04-17 17_49_07-Microsoft Visual Studio

2021-04-17 17_50_42-Microsoft Visual Studio

* Enter "sfizz" by a double-click on the folder view

2021-04-17 18_00_26-sfizz - Microsoft Visual Studio

* A Steinberg VST2 license is needed to use the SDK
  Get the file `vst_sdk2_4_rev2.zip` (found at archive.org in "VST2 SDK")
  Extract contents in `sfizz/plugins/vst/external`

2021-04-17 18_11_47-external

* Open"Manage configurations" in the drop-down list

2021-04-17 18_02_29-sfizz - Microsoft Visual Studio

* Delete the default "Debug" configuration
  Add either "x86-Release" or "x64-Release", depending whether a 32-bit or 64-bit build is wanted

2021-04-17 18_04_03-sfizz - Microsoft Visual Studio

* Do "File Save CMakeSettings.json"
  Wait during configuration. The section "CMake variables and cache" will be filled.

2021-04-17 18_14_27-sfizz - Microsoft Visual Studio

* Change `CMAKE_BUILD_TYPE` to `Release` (written with this exact case)
  Check `SFIZZ_VST2`
  Uncheck `SFIZZ_LV2`
  Uncheck `SFIZZ_RENDER`
  Uncheck `SFIZZ_SHARED`

2021-04-17 18_17_47-sfizz - Microsoft Visual Studio

2021-04-17 18_17_10-sfizz - Microsoft Visual Studio

* Do "File Save CMakeSettings.json" again
  Wait.

* There is now "Build Build All" in the menu. Click it.

2021-04-17 18_17_47-sfizz - Microsoft Visual Studio

* After a successful build, from the "sfizz" folder, navigate in the "out" folder and a bit down from there.
  The VST2 bundle will be found in the folder `sfizz.vst2`.
Clone this wiki locally