Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » DSP and Plug-in Development
Thread Read
VST DEVELOPMENT Xcode 4.5 - Plugin won't load in Host
cisdsp
KVRist
- profile
- pm
PostPosted: Wed Nov 28, 2012 1:20 am reply with quote
Hi all

I have a little (big) problem with the latest Xcode (4.5), OSX 10.8.2 and develop VST Plugins.
Everything seems to work fine, compile without errors.
Except one thing: the compiled plugins won't load in VST Host (Cubase 6).
Had any other developer the same problems with Xcode 4.5? And how did you fixed it?

btw: in the past I was using Xcode 3.0 and OSX 10.5.8 -> everything worked fine...
^ Joined: 16 Oct 2012  Member: #290031  
LemonLime
KVRist
- profile
- pm
- e-mail
PostPosted: Wed Nov 28, 2012 5:45 am reply with quote
I'm having no problem with making VST plugins in Xcode 4.5 (also 10.8.2).
Does the plugin at least show up in the list in your host, or is it totally absent? It's a little hard to know what the problem may be with so little info.
^ Joined: 15 Apr 2012  Member: #278696  Location: Toronto, ON
cisdsp
KVRist
- profile
- pm
PostPosted: Thu Nov 29, 2012 12:47 am reply with quote
Ok. In past I used the templates from "Teragonaudio's" website on Xcode 3.0.
Now as I can see it's little difficult to implement templates on 4.5 so I followed the steps from the site

http://teragonaudio.com/article/Making-a-VST-plugin-from-scr atch-with-Xcode.html

Based upon this I tried to make a plugin using the again example source in VST SDK 2.4.
You can download it here:

https://dl.dropbox.com/u/34835008/stereo.zip

I really don't know what's wrong. It should work. Maybe it's simple for a "real" Xcode User.

Maybe someone can take a look at this project and give me some hints for fix?


thanks

EDIT: The plugin isn't in the list of cubase...
^ Joined: 16 Oct 2012  Member: #290031  
arne
KVRist
- profile
- pm
PostPosted: Thu Nov 29, 2012 5:28 am reply with quote
Most likely a mismatch of the architecture you build for. Make sure that the host is running in 64 bit if you build a 64 bit plug-in.
^ Joined: 21 Aug 2004  Member: #37818  
cisdsp
KVRist
- profile
- pm
PostPosted: Thu Nov 29, 2012 9:09 am reply with quote
Yes. I looked after that. The host is running in 32 bit, so I created all on 32 bit. Nothing changes...
^ Joined: 16 Oct 2012  Member: #290031  
cisdsp
KVRist
- profile
- pm
PostPosted: Fri Nov 30, 2012 2:39 pm reply with quote
So I worked on a template from steinbergs sdk 2.4. The Plugin load.
BUT: if I ad a GUI, I become many errors.

Like this:



Semantic Issue Group
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:1217:35: Use of undeclared identifier 'QDSwapPort'
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:1230:8: Use of undeclared identifier 'QDSwapPort'
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:1304:6: Use of undeclared identifier 'QDGlobalToLocalPoint'
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:1338:25: Use of undeclared identifier 'QDSwapPort'
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:1351:7: Use of undeclared identifier 'QDSwapPort'
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:1493:4: Use of undeclared identifier 'GetFNum'
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:1539:17: No viable conversion from 'RGBColor *' to 'CColor'
/vstsdk2.4/vstgui.sf/vstgui/vstgui.h:280:8: Candidate constructor (the implicit copy constructor) not viable: no known conversion from 'RGBColor *' to 'const CColor &' for 1st argument;
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:825:42: Passing argument to parameter 'color' here
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:1540:3: Use of undeclared identifier 'RGBForeColor'
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:1567:3: Use of undeclared identifier 'GetFNum'
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:3559:2: Use of undeclared identifier 'GetRegionBounds'
/vstsdk2.4/vstgui.sf/vstgui/vstcontrols.cpp:1307:10: No matching function for call to 'PinRect'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX. platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Framew orks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framew ork/Versions/A/Headers/MacWindows.h:10483:1: Candidate function not viable: no known conversion from 'Point' to 'const Rect *' for 1st argument;



I don't know how to get on! Please help Help
^ Joined: 16 Oct 2012  Member: #290031  
hibrasil
KVRist
- profile
- pm
- www
PostPosted: Fri Nov 30, 2012 3:45 pm reply with quote
vstgui3.6 won't compile against the 10.7 or 10.8 sdks. You need to get the 10.6sdk, and probably also make sure you are using the latest svn version of vstgui3.6, otherwise use v4
^ Joined: 23 Jun 2002  Member: #3139  Location: York, UK
cisdsp
KVRist
- profile
- pm
PostPosted: Sat Dec 01, 2012 4:11 am reply with quote
thank you !
^ Joined: 16 Oct 2012  Member: #290031  
cisdsp
KVRist
- profile
- pm
PostPosted: Mon Dec 03, 2012 1:34 am reply with quote
So I'm using VstGui 4 now.
And: Errors and issues.

/Users/---/Downloads/samples/vst2.x/mac/lib/cview.cpp
/Users/---/Downloads/samples/vst2.x/mac/lib/cview.cpp:661:22 : No matching function for call to 'make_pair'
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/mac fileselector.mm
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/mac fileselector.mm:239:5: 'beginSheetForDirectory:file:types:modalForWindow:modalDeleg ate:didEndSelector:contextInfo:' is deprecated
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/mac fileselector.mm:244:21: 'runModalForDirectory:file:types:' is deprecated
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/mac fileselector.mm:255:5: 'beginSheetForDirectory:file:modalForWindow:modalDelegate:di dEndSelector:contextInfo:' is deprecated
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/mac fileselector.mm:260:21: 'runModalForDirectory:file:' is deprecated
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewframe.cpp
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewframe.cpp:493:4: Use of undeclared identifier 'GetPortBounds'
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewframe.cpp:524:2: Use of undeclared identifier 'GetPortBounds'
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewframe.cpp:539:24: Use of undeclared identifier 'QDSwapPort'
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewframe.cpp:542:3: Use of undeclared identifier 'QDSwapPort'
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewframe.cpp:747:13: Enumeration value 'kError' not handled in switch
/Users/----/Downloads/samples/vst2.x/mac/lib/platform/mac/ca rbon/hiviewframe.cpp:808:24: Use of undeclared identifier 'NewRgn'
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewframe.cpp:822:5: Use of undeclared identifier 'DisposeRgn'
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewframe.cpp:1016:17: Use of undeclared identifier 'kQDRegionToRectsMsgParse'
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewframe.cpp:1117:37: Use of undeclared identifier 'kQDParseRegionFromTopLeft'
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewoptionmenu.cpp
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewoptionmenu.cpp:107:17: 'UniqueID' is deprecated: first deprecated in Mac OS X 10.8
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewtextedit.cpp
/Users/---/Downloads/samples/vst2.x/mac/lib/platform/mac/car bon/hiviewtextedit.cpp:111:3: Use of undeclared identifier 'GetFNum'



So, I have no idea WHY! Followed all the steps in the documentation from VSTGUI.
Any ideas?

Shocked Crying or Very sad Help
^ Joined: 16 Oct 2012  Member: #290031  
LemonLime
KVRist
- profile
- pm
- e-mail
PostPosted: Mon Dec 03, 2012 6:09 am reply with quote
I'm quite sure, as is evidenced by your output, that VSTGUI 4 also needs the 10.6 SDK. If you have Xcode 3 lying around, grab the 10.6 SDK from it and place it inside the Xcode 4 bundle (in /Developer/Platform/MacOSX/Developer/SDKs I think). Then you can choose 10.6 as the base SDK in Xcode 4.5.
^ Joined: 15 Apr 2012  Member: #278696  Location: Toronto, ON
cisdsp
KVRist
- profile
- pm
PostPosted: Mon Dec 03, 2012 4:02 pm reply with quote
Thanks all. Solved the problem.
I don't know how, but it works now with the vstgui.sf from steinberg sdk.
Xcode is strange different to all the other Ide.
Maybe it was really the 10.6 sdk. I'm not sure...

Very Happy
^ Joined: 16 Oct 2012  Member: #290031  
All times are GMT - 8 Hours

Printable version
Page 1 of 1
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012