How to use the SDK with Code::Block ?
-
- KVRer
- Topic Starter
- 2 posts since 1 Jul, 2009
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
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
-
- KVRAF
- 8519 posts since 7 Apr, 2003
did you setup your CBP with the include paths pointing to the SDK and etc already? need those.
-
Christian Schüler Christian Schüler https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=48996
- KVRist
- 266 posts since 23 Nov, 2004 from Hamburg, Germany
-
- KVRAF
- 8519 posts since 7 Apr, 2003
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?
-
- KVRer
- 8 posts since 10 Jul, 2009
Yes. I did it from an tutorial, but I do not remember where it was from.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?
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.
-
- KVRer
- 2 posts since 16 Jan, 2006 from east coast USA
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
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
- KVRAF
- 2554 posts since 4 Sep, 2006 from 127.0.0.1
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 functionsBobSlot wrote:Yes. I did it from an tutorial, but I do not remember where it was from.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?
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.
...
It doesn't matter how it sounds..
..as long as it has BASS and it's LOUD!
irc.libera.chat >>> #kvr
..as long as it has BASS and it's LOUD!
irc.libera.chat >>> #kvr
-
- KVRist
- 70 posts since 20 Feb, 2009 from Nottingham, UK
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\source\again.cpp
C:\vstsdk2.4\public.sdk\samples\vst2.x\again\source\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) 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\source\again.cpp
C:\vstsdk2.4\public.sdk\samples\vst2.x\again\source\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.
-
- KVRist
- 86 posts since 11 May, 2003
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).