KVR Audio is the Internet's number one news and information resource for open standard audio plugins. We report new releases, product announcements and product updates (major and minor) for all VST Plugins, DirectX Plugins and Audio Units Plugins. We manage a fully searchable audio plugin database (updated daily), and offer many free member services including user reviews, product update notifications and a very active discussion forum. We also host official support forums for many plugin developers plus the official Receptor support forum.
Plug-in Database: Virtual
Instruments, Effects & Hosts
Plug-in
Ranks
Banks & Patches
Download & Upload
Plug-in Ratings
by KVR Members
Wiki: Tutorials,
Audio Lexicon, ...
Listen to Music
by KVR Members
Search
KVR

Google Powered Search:

in new window

KVR Powered Plug-in Search:

Author Topic: How to use the SDK with Code::Block ?
OfWhat
KVRer
- profile
- pm
PostPosted: Wed Jul 01, 2009 8:50 am reply with quote
Hi,

I used to code in C++ some years ago, and I want to jump in the VST programming. But it's been a while, and I have absolutely no idea how I can make Code::Block with MinGW use the headers from the Steinberg SDK. I de-zipped a the four zip files in c:\VST (VSTGui, VSTModuleArchitecture,AsioSDK,vst_sdk), but I can't go further... I would really enjoy some help here !!

Thank you, and sorry for my bad english Rolling Eyes
^ Joined: 01 Jul 2009  Member: #210539  
grymmjack
KVRAF
- profile
- pm
- www
PostPosted: Mon Jul 06, 2009 6:39 pm reply with quote
did you setup your CBP with the include paths pointing to the SDK and etc already? need those.
----
^ Joined: 06 Apr 2003  Member: #6631  
Christian Schüler
KVRist
- profile
- pm
- e-mail
PostPosted: Tue Jul 07, 2009 10:43 am reply with quote
If you're on MinGW, have you had a look at wx-DevC++?

http://wxdsgn.sourceforge.net/
^ Joined: 23 Nov 2004  Member: #48996  Location: Hamburg, Germany
BobSlot
KVRer
- profile
- pm
PostPosted: Fri Jul 10, 2009 5:41 am reply with quote
You can also import the sample MS visual c++ project in code::blocks. Just click the file/import project/MS visual c++ project.
That is how I did it.
^ Joined: 10 Jul 2009  Member: #211084  
OfWhat
KVRer
- profile
- pm
PostPosted: Fri Jul 10, 2009 5:56 am reply with quote
Thank you everyone !! I didn't have the time to try all this, but thank you for the help !!
^ Joined: 01 Jul 2009  Member: #210539  
grymmjack
KVRAF
- profile
- pm
- www
PostPosted: Fri Jul 10, 2009 5:58 am reply with quote
bobslot; did that work? i use codeblocks for work (linux platform) but win32 i've not tried yet. are you able to convert the project and compile the gain exmaple?
----
^ Joined: 06 Apr 2003  Member: #6631  
BobSlot
KVRer
- profile
- pm
PostPosted: Fri Jul 10, 2009 6:59 am reply with quote
grymmjack wrote:
bobslot; did that work? i use codeblocks for work (linux platform) but win32 i've not tried yet. are you able to convert the project and compile the gain exmaple?


Yes. I did it from an tutorial, but I do not remember where it was from.
I also forgot to say that you must change one more settings in code::blocks. After you imported the example project you must add "-def ..\win\vstplug.def" (without the ") in project/build options/linker settings/other linker options. It had something todo with exporting the correct main function so older hosts would see the new VSTPluginMain.

Edit: I use VST 2.4 SDK. In VST 3 it might be different. But I hope it helps someone.
^ Joined: 10 Jul 2009  Member: #211084  
v3ktr0n
KVRer
- profile
- pm
PostPosted: Thu Nov 12, 2009 7:08 pm reply with quote
i had a question ...

i recently downloaded the VST sdk 2.3 & 2.4(R2)
i want to use one of those with some kind of C++ environment preferably with dev C++ 4.992, codeblocks 8.02 or any other freeware environment like that. i seriously want to start building some VST synths because i have a few good ideas that i think might really work. and i noticed you guys havn't posted
any replies or thoughts since july of this year, .... hmmm
^ Joined: 16 Jan 2006  Member: #94690  Location: east coast USA
antto
KVRian
- profile
- pm
PostPosted: Thu Nov 12, 2009 8:34 pm reply with quote
BobSlot wrote:
grymmjack wrote:
bobslot; did that work? i use codeblocks for work (linux platform) but win32 i've not tried yet. are you able to convert the project and compile the gain exmaple?


Yes. I did it from an tutorial, but I do not remember where it was from.
I also forgot to say that you must change one more settings in code::blocks. After you imported the example project you must add "-def ..\win\vstplug.def" (without the ") in project/build options/linker settings/other linker options. It had something todo with exporting the correct main function so older hosts would see the new VSTPluginMain.
...


yep, i haven't messed with VST SDK, but i had to figure this -def option for a mIRC DLL, which also relies on specific exported functions
----
It doesn't matter how it sounds..
..as long as it has BASS and it's LOUD!
^ Joined: 04 Sep 2006  Member: #118997  Location: 127.0.0.1
bmoviehorror
KVRist
- profile
- pm
PostPosted: Sat Nov 21, 2009 11:49 am reply with quote
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.
----
Make your own plugins = Super AWESOM-O VST Tutorials
My band = Ride My Fish
^ Joined: 19 Feb 2009  Member: #201372  Location: Nottingham, UK
AntiPro
KVRist
- profile
- pm
PostPosted: Mon Dec 07, 2009 7:33 pm reply with quote
Visual C++ 2008 Express Edition is totally free and allows development of commercial applications. I'd say it's the best IDE/compiler on Windows with distance. The VST SDK examples should build out of the box with it (and if not, it should be easy to get them to build).
----
Karel Bassez
Software Engineer
Vienna Symphonic Library GmbH
^ Joined: 11 May 2003  Member: #7137  
Reply to topic KVR Forum Index » DSP and Plug-in Development All times are GMT - 8 Hours

Printable version
Page 1 of 1
Display posts from previous:   
Post new topic
Previous Topic
Next Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Disclaimer: All communications made available as part of this forum and any opinions, advice, statements, views or other information expressed in this forum are solely provided by, and the responsibility of, the person posting such communication and not of kvraudio.com (unless kvraudio.com is specifically identified as the author of the communication).