User forums > General (but related to Code::Blocks)

Howdy! Im a noob :)

<< < (3/7) > >>

matthewjumpsoffbuildings:
oh so the 5.03 installer is good and uses stable packages?

also - anyone with VST SDK experience in Code:Blocks? I really need a hand :)

iw2nhl:
Someone has an answer to my question about the wxWidgets DLL?

--- Quote from: iw2nhl on July 14, 2006, 12:55:16 am ---Another question:
I applied the patch and recompiled, but the resulting DLL has not been rebuilt, is this right?
DLL: wxWidgets\lib\gcc_dll\wxmsw26u_gcc_custom.dll
I tried also to give the "clean" command and then rebuild everything, but still the DLL did not change. Moreover I noticed that the 'clean' command did not remove the old DLL.
Is this a bug of the wxWidgets makefile or is this right?
[EDIT]
I noticed that there are 2 DLLs:
1) wxmsw26u_gcc_custom.dll
2) wxmsw26_gcc_custom.dll
The wiki says I need the first one (which has not been modified), while the second one has been modified (really I didn't notice it before!).
What's the difference between the 2 DLLs?

--- End quote ---

VST SDK:

--- Quote from: matthewjumpsoffbuildings on July 14, 2006, 01:45:26 am ---edit: oh sorry i missed ur post iw2nhl - my 'problem' is i dont know what to do :) I put the vstsdk2.4 folder in C:/ and then i copied the sample project "adelay" over into a folder that i use to store my codeblocks proejects. then i made a new dll project in codeblocks and added all the cpp and h files in the folder to it...i believe thats a way to do it? when i went to compile i tried adding the vstsdk dir to the directories settings - maybe i need to add specific folders? currently i cant compile it - i keep getting lots of errors.

--- End quote ---
Hi,
this is quite correct, but you missed the SDK files: you need .cpp files in the 'common' directory, so add them to the project.
Moreover you need (only if you use it) the .RC file and the .DEF file.
Remember also that the linker needs some windows libraries to compile the GUI!
Here is the list of things you need in qmake language, but is easy to understand:

--- Code: ---VST_SDK_PATH = C:\vstsdk2.3
VST_SDK_COMMON = $${VST_SDK_PATH}\source\common
SOURCES += \
$${VST_SDK_COMMON}\AudioEffect.cpp \
$${VST_SDK_COMMON}\audioeffectx.cpp \
$${VST_SDK_COMMON}\aeffguieditor.cpp \
$${VST_SDK_COMMON}\vstgui.cpp \
$${VST_SDK_COMMON}\vstcontrols.cpp
RC_FILE += resource\ADelayEditGUI.rc
DEF_FILE += ADelayEditGUI.def
LIBS += -luuid -lole32 -lgdi32 -lcomdlg32 -lvfw32

--- End code ---
I included all 5 .cpp files, but you do not need all them if you don't use GUI.
There other things to know, so it is better if we open a new thread for this subject, may be useful for other too!

matthewjumpsoffbuildings:
thankyou for that info - i will work on it and get back to you - thanks again :D

iw2nhl:
If I have time, I try to make a template for VST plugins.

I created an how-to (step by step) for Dev-Cpp, may be you need it for other informations (you have to make 2 little modifies to SDK source files to make them compile with MinGW (not needed for VisualStudio6).

Here the modifies needed (but it's better if you read all the file!):

--- Quote ---Modify vstgui.cpp file as follows:
- in function 'checkResolveLink', cast 'wsz' using '(WCHAR *)' in line 7338 and line 7340
Modify the VSTnameEditMain.cpp file as follows:
- '#if BEOS'… becomes '#if __GNUC__ && (WIN32 || BEOS)'
- add 'asm("main")' to the end of the *main_plugin(…) definition line
- add 'extern "C"' to the beginning of the DllMain(…) definition (to get GUI to work)

--- End quote ---

Atteched there is the file.

Let me know if you find other useful infos and if can make it work!

The troubles I had with QT, may be are the same for wxWidgets (if you want ot use wxWidgets, else don't care about this!)
More infos on VST+wxWidgets here:
http://www.achitophelconsulting.com/index.php?option=com_content&task=view&id=31&Itemid=78&troozers=33534ca2cab90f665685b30330c6f70c

[attachment deleted by admin]

matthewjumpsoffbuildings:
Umm I dont have a "common" folder :( I am using VST SDK v 2.4 not 2.3 like you.

so what should i do? and how/where do i enter all that stuff into C++ once ive changed it to point to the right place?

--- Code: ---VST_SDK_PATH = C:\vstsdk2.3
VST_SDK_COMMON = $${VST_SDK_PATH}\source\common
SOURCES += \
$${VST_SDK_COMMON}\AudioEffect.cpp \
$${VST_SDK_COMMON}\audioeffectx.cpp \
$${VST_SDK_COMMON}\aeffguieditor.cpp \
$${VST_SDK_COMMON}\vstgui.cpp \
$${VST_SDK_COMMON}\vstcontrols.cpp
RC_FILE += resource\ADelayEditGUI.rc
DEF_FILE += ADelayEditGUI.def
LIBS += -luuid -lole32 -lgdi32 -lcomdlg32 -lvfw32

--- End code ---

thanks :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version