PDA

View Full Version : compiling the example project with Code::Blocks / GCC


antto
03-20-2010, 08:07 AM
hey guys, i just figured about the existance of this wonderful framework and got myself into trying it
i have the latest WDL package and the VST SDK 2.4
running windows XP

i used CodeBlocks's "Import project" function to quickly convert the VC (or is it VB) project to CodeBlocks, and it seems succesiful, i see all linker settings and release/debug/tracer targets to be set up
now when i hit Build i get lot's of errors:

Project : IPlugExample
Compiler : GNU GCC Compiler (called directly)
Directory : D:\ZONE\WDL\IPlug\Example\
--------------------------------------------------------------------------------
Switching to target: Debug
windres.exe -i IPlugExample.rc -J rc -o Debug\IPlugExample.res -O coff
mingw32-g++.exe -DVST_API -DWIN32 -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_CRT_SECURE_NO_DEPRECATE -D_DEBUG -W -O0 -I..\IPlug -I..\..\wdl\lice -I..\VST_SDK\vstsdk2.4\pluginterfaces\vst2.x -ID:\Toolz\CodeBlocks\include -c IPlugExample.cpp -o Debug\IPlugExample.o
In file included from IPlugExample.h:5,
from IPlugExample.cpp:1:
../IPlug_include_in_plug_hdr.h:7:59: resource.h: No such file or directory
In file included from ../../heapbuf.h:49,
from ../../wdlstring.h:36,
from ../Containers.h:19,
from ../IPlugBase.h:6,
from ../IPlugVST.h:5,
from ../IPlug_include_in_plug_hdr.h:10,
from IPlugExample.h:5,
from IPlugExample.cpp:1:
../../wdltypes.h:51:7: warning: no newline at end of file
In file included from ../IPlugBase.h:6,
from ../IPlugVST.h:5,
from ../IPlug_include_in_plug_hdr.h:10,
from IPlugExample.h:5,
from IPlugExample.cpp:1:
../Containers.h:50:9: warning: extra tokens at end of #else directive

not sure why, but i think maybe my directories are wrong somewhere
my main directory is D:\ZONE\ (all my C++ projects or SDKs i use are there in subdirectories)

so i have the VST SDK2.4 like this:
D:\ZONE\VST_SDK\pluginterfaces\vst2.x\ (3 headers there)
and the WDL Example project is:
D:\ZONE\WDL\IPlug\Example
D:\ZONE\WDL\ is where i extracted the WDL package..

it seems that IPlug_include_in_plug_hdr.h want's to include "my" (erm, the example project's) resource.h but it's not in the same directory
or am i missing something?

thanks in advance

JTM
07-04-2012, 09:15 AM
Did you add the directories involved to the additional search directories and build options paths? Code::Blocks is quite picky about that.

Also you may want to move your project files into the ZONE folder or even the VST SDK folder. Also, check whether it is using relative paths.

olilarkin
07-04-2012, 09:25 AM
there are codeblocks/MinGW projects in WDL-OL. I think the IPlugEffect Example should compile, the others are not tested

https://github.com/olilarkin/wdl-ol/blob/next/IPlugExamples/IPlugEffect/IPlugEffect.cbp

IIRC there are some things in the stock WDL/IPlug that won't compile with MingGW