I am trying to build a VST using cmake and MinGW GCC on windows. Does anyone have experience doing it this way, or know of any good tutorials or example projects that fit this approach.
Thanks!
Tutorial for building VST with cmake and mingw
-
- KVRist
- Topic Starter
- 154 posts since 15 Feb, 2012
- KVRist
- 383 posts since 28 Nov, 2013 from Germany
Hi Ap0C552,
interestingly this is my exact build chain. However, I use WDL-OL to abstract away some details of the VST interface.
Attached you can find a small example project that implements a simple amplifier that can amplify the incoming signal between -90 dB and 24 dB. The effect can also be bypassed from within the plugin. The plugin has no GUI but it should be enough to get you started with the technical details. In the WDL-OL distribution you can find several examples that have a GUI. Most of them should be buildable by simply adjusting the CMakeLists.txt (although you might have to add some source files here and there).
The coarse steps to build the example should be:
interestingly this is my exact build chain. However, I use WDL-OL to abstract away some details of the VST interface.
Attached you can find a small example project that implements a simple amplifier that can amplify the incoming signal between -90 dB and 24 dB. The effect can also be bypassed from within the plugin. The plugin has no GUI but it should be enough to get you started with the technical details. In the WDL-OL distribution you can find several examples that have a GUI. Most of them should be buildable by simply adjusting the CMakeLists.txt (although you might have to add some source files here and there).
The coarse steps to build the example should be:
- Make sure that you extract everything to a path with no spaces! Otherwise MinGW's resource compiler might fail to locate the resource files.
- Clone the WDL-OL repo from https://github.com/olilarkin/wdl-ol.
- Set up WDL-OL as described at http://www.martin-finke.de/blog/article ... up-wdl-ol/ (Putting the VST SDK into the correct locations, etc.).
- Adjust the CMakeLists.txt contained in the attached zip to point to your WDL-OL installation by setting the "WDLDir" variable (line 51). Now that I write this I notice that this probably should be a cached CMake option.
- Run CMake to configure your build.
- Build.
You do not have the required permissions to view the files attached to this post.
Passed 303 posts. Next stop: 808.
-
- KVRist
- Topic Starter
- 154 posts since 15 Feb, 2012
Great! I can't wait to take a look at this.
On a related note, I have heard good things about QtCreator. But at the moment I am so in love with Sublime. I am using it as a stepping stone to vim.
EDIT: I am curious is WDL-OL popular in the DAW plugin development world. It seems quite convenient. I wonder if anyone has had any negative experiences with it.
On a related note, I have heard good things about QtCreator. But at the moment I am so in love with Sublime. I am using it as a stepping stone to vim.
EDIT: I am curious is WDL-OL popular in the DAW plugin development world. It seems quite convenient. I wonder if anyone has had any negative experiences with it.