PDA

View Full Version : IPlug example project files


schwa
11-18-2009, 08:06 AM
Hi. The example build projects included with the IPlug distribution are very stale and don't build out of the box, which understandably annoys everybody who tries to build IPlug. I'm updating the project files, but I'd like to post them here first so people can try them out to make sure they work properly out of the box.

New project files are here. (http://www.cockos.com/~schwa/files/IPlug) The latest WDL (which isn't very recent) is here. (http://www.cockos.com/wdl/) Replace the project files that come with WDL, with the new ones.

Please post here if the new projects work or don't work for you.


OSX: IPlug with LICE included is built as a separate static library, which the example plugin links in. To build, open the IPlugExample project, under "linked frameworks" click on the IPlug project, build IPlug, then build IPlugExample.

[edit] The OSX IPlug build needs two files that are not in the current WDL distribution but will be in the next. Those files are attached here.


Windows: IPlug and LICE are built as separate static libraries, which the example plugin links in. IPlug.sln includes both static libraries and the plugin project. Build LICE, IPlug, then IPlugExample.


.

Jeffos
11-18-2009, 10:08 AM
Since I understood the new lice project should be put into /IPlug/., everything went smoothly here (Win, VC 08 express edition).

schwa, I take this iplug opportunity to tell you there's perhaps an issue withsome AMD processors, confirmed in 3 different IPlugs, 3 different authors. Re-compiling (everything) without SSE2 enabled does not fix the issue. If you have any idea/clue...

schwa
11-18-2009, 10:13 AM
What's the issue?

Jeffos
11-18-2009, 10:21 AM
No crash, but the plugs are not scanned. I'm trying to get an exact processor reference.
http://forum.cockos.com/showpost.php?p=405909&postcount=20
http://forum.cockos.com/showpost.php?p=383319&postcount=14
(perhaps not the godd place for this discussion... move to wdl?)

schwa
11-18-2009, 10:31 AM
Let's discuss in the existing thread.

Jeffos
11-18-2009, 11:03 AM
I was not proposing to move the whole thread! So the OT IPlug "issue" is discussed here: http://forum.cockos.com/showthread.php?p=383319, schwa just gave some advices about that (thanks again!)

cc_
11-18-2009, 11:06 AM
I tried OSX, went pretty smoothly. Only problems were missing files in wdl:
IPlug/Example/IPlugExample_Prefix.pch
IPlug/IPlugAU.r
IPlug/IPlug_Prefix.pch

and of course the img directory.

It also shows a couple more files as missing, but compiled without me fixing them:
IPlugExample.component
IPlugExample.exp

schwa
11-18-2009, 11:13 AM
Thanks, we'll add the .pch and .r files to the WDL distribution.

The .exp files should be there though...

cc_
11-18-2009, 11:34 AM
Ah yes, my mistake. I moved the .exp out of the way to see what would happen and then forgot :D

The reason I was messing with it is there was a warning:

Checking Dependencies
warning: no rule to process file '$(PROJECT_DIR)/IPlugExample.exp' of type sourcecode.exports for architecture i386

I guess it's not important though.

whatsup
11-25-2009, 11:26 AM
I don't manage to build.

I first downloaded the wdl_20091010.zip
exctracted it to "somefolder"

after that I downloaded the short zip.
now I have 2 options:

in the wdl there are folders like this
IPlug\Example

I didn't know where to extract the 4 project files,
so I tried these 2 folder
IPlug
Then
IPlug\Example

didn't work.

the VST_SDK with the 2 mentioned *.h files I put under
wdl\VST_SDK

didn't work

in the last build i tried
the first error was
cannot open file 'lice.lib'

I tried with VS2008 express.

whatsup
11-26-2009, 12:33 PM
I managed, but as i thought, i had to made some changes.

the short zip has to be packed like this

Example\IPlugExample.vcproj
IPlug.sln
IPlug.vcproj
lice.vcproj

and the VST_SDK folder should be placed in the parent folder of wdl
like this

parent\VST_SDK\
parent\wdl\

the files like this

parent\wdl\IPlug\IPlug.sln
parent\wdl\IPlug\IPlug.vcproj
parent\wdl\IPlug\lice.vcproj
parent\wdl\IPlug\Example\IPlugExample.vcproj

EDIT: don't try to build the solution file,
instead, do it like this:
Build LICE, IPlug, then IPlugExample

whatsup
11-26-2009, 12:40 PM
oh and BTW,

a great big thank you Cockos.

you don't know how much I learned here,
things that were just a far dream for me,

only because of your amazing softwares.

whatsup
11-28-2009, 09:52 AM
this is what i got when i load the VST as a debug version

http://stash.reaper.fm/oldsb/716482/2.jpg

release version, no problem, but there is a small GUI issue,
there's no slot for the sliders :)

cc_
11-29-2009, 01:20 AM
Is your system using some other language than English? Someone else had a problem like this:

http://forum.cockos.com/showthread.php?p=373638#post373638

But the thread stops before the end of the story...

whatsup
11-29-2009, 02:24 AM
anyway thank you very much for the possible direction

bvesco
11-30-2009, 03:05 AM
Is there somewhere I can get the .pch file in the meantime to test this out? Or how can I generate it on my own?

schwa
11-30-2009, 06:51 AM
Is there somewhere I can get the .pch file in the meantime to test this out?

I added the missing files as an attachment to the first post.

bvesco
11-30-2009, 10:14 AM
How blind is a bat?
A) Totally blind.
B) Half blind.
C) It depends on the person swinging it...

bvesco
12-01-2009, 12:36 AM
Assuming I'm not missing some other blatantly obvious thing...

Environment: Month old MacBook Pro, OSX 10.6, XCode 3.2.1

Build settings: 10.6 | Reaper Special | i386
60 errors, 274 warnings

plenty of mentions of missing ../IPlugExt/ReaperExt.h

a half dozen or so of /IPlug/IGraphicsMac.h:15:0 /IPlug/IGraphicsMac.h:15: error: default argument for parameter of type 'int' has type '<unresolved overloaded function type>'

some /IPlug/IPlugAU.cpp:876:0 /IPlug/IPlugAU.cpp:876: error: no matching function for call to 'IPlugAU::SetHost(const char [1], char*&, int&)'

and /IPlug/IPlugAU.cpp:1339:0 /IPlug/IPlugAU.cpp:1339: error: expected unqualified-id before ';' token

Then there are a bunch of errors about IPlugVST.cpp struct AEffect missing members and things being declared out of scope.

If I switch to Release mode I get 274 warnings and 20 errors, debug is similar. In general the errors are of the same flavor.

I'm hoping I've just left something blatant out.

cturner
12-01-2009, 06:13 AM
OSX Build notes for iPlug:

Leopard 10.5.8, Xcode 3.1, Most recent (20091130 ) WDL package, and most recent DL of the Steinberg 2.4 VST SDK.

Building iPlug from the Xcode project, I got errors about undefined deprecated members of struct AEffect.

The fix appears to be at line 82 of Steinberg's aeffect.h: should read #ifdef instead of #if:
/** Declares identifier as deprecated. */
#ifdef VST_FORCE_DEPRECATED
#define DECLARE_VST_DEPRECATED(identifier) __##identifier##Deprecated
#else
#define DECLARE_VST_DEPRECATED(identifier) identifier
#endif


The iPlug example built without incident; VST works fine in Reaper. Thanks!

HTH, Charles

bvesco
12-01-2009, 11:10 PM
Thanks, that at least fixed the AEffect deprecated member issues (well, it didn't fix it, but I removed the conditional completely and am only defining the macro that I ultimately want). There were a few more errors around that I'm still trying to clean up. No dice yet, but I'm still bashing away at it.

dub3000
12-14-2009, 01:22 PM
Once I worked out I had to decompress the img zip, got it up and running - works good.