Home > Build, Compilers > Build VST plugins using Code::Blocks

Build VST plugins using Code::Blocks

I just put this up on the KVR audio site in response to a thread and thought I’d put a copy here for good measure.

Build again in code::blocks . . .

1) Make new EMPTY project and call it “again” – you can save this anywhere on your system

2) Assuming you have put the sdk at c:\vstsdk2.4, then right click on the project you have just created, select build options, got to the ‘search directories’ tab and add c:\vstsdk2.4 to the list.

3) Right click on the project and select add files. Add the following:
C:\vstsdk2.4\public.sdk\source\vst2.x\audioeffect. cpp
C:\vstsdk2.4\public.sdk\source\vst2.x\audioeffectx .cpp
C:\vstsdk2.4\public.sdk\source\vst2.x\vstplugmain. cpp
C:\vstsdk2.4\public.sdk\samples\vst2.x\again\sourc e\again.cpp
C:\vstsdk2.4\public.sdk\samples\vst2.x\again\sourc e\again.h

4) Right click on the project, select ‘Properties’, navigate to the ‘Build targets’ tab and select ‘Dynamic library’ from the ‘Type’ drop down list.

5) Right click the project, select ‘Build options’ go to the linker settings tab and under ‘Other linker options’ add the following:
-def C:\vstsdk2.4\public.sdk\samples\vst2.x\win\vstplug .def

6) Build the project.

  1. June 26, 2011 at 02:33

    still works like a champ! Thanks!

  2. josh
    November 11, 2011 at 19:35

    Using code blocks and vst2.4…I tried several times to get the again to but I keep getting the following error on line 16 that reads
    //pluginterfaces/vst2.x/aeffect.h: no such file or directory

    • zedisdead
      June 4, 2012 at 10:03

      Add full path.
      Also, under 5), there is a space between:

      “…\win\vstplug” and “.def”.

      remove it and it should work fine.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: