COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 03-20-2010, 08:07 AM   #1
antto
Human being with feelings
 
Join Date: Nov 2008
Posts: 108
Default compiling the example project with Code::Blocks / GCC

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:
Code:
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
antto is offline   Reply With Quote
Old 07-04-2012, 09:15 AM   #2
JTM
Human being with feelings
 
Join Date: Jul 2012
Posts: 1
Default

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.
JTM is offline   Reply With Quote
Old 07-04-2012, 09:25 AM   #3
olilarkin
Human being with feelings
 
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
Default

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/...PlugEffect.cbp

IIRC there are some things in the stock WDL/IPlug that won't compile with MingGW
__________________
VirtualCZ | Endless Series | iPlug2 | Linkedin | Facebook
olilarkin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.