building csound with vst4cs on OSX
Date | 2017-01-25 14:32 |
From | Daniele |
Subject | building csound with vst4cs on OSX |
Good evening, I'm trying to build CSound 6.0.8 on OSX Yosemite 10.10.1 with vst4cs opcodes included. After several attempts, I'm following the installation instructions for Linux as shown in the BUILD.md file. I've placed the VST SDK in /usr/local/lib/vstsdk2.4 and it has been correctly found by the "cmake ../csound" command. But when executing the "make -j6" command, I have the following errors: /Users/mac/csound/csound/Opcodes/vst4cs/src/vsthost.cpp:522:5: error: unknown type name 'CFURLRef' CFURLRef vstBundleURL = ^ /Users/mac/csound/csound/Opcodes/vst4cs/src/vsthost.cpp:523:37: error: use of undeclared identifier 'kCFAllocatorDefault' CFURLCreateWithFileSystemPath(kCFAllocatorDefault, ^ /Users/mac/csound/csound/Opcodes/vst4cs/src/vsthost.cpp:527:5: error: unknown type name 'CFBundleRef' CFBundleRef vstBundle = CFBundleCreate(kCFAllocatorDefault, vstBundleURL); ^ /Users/mac/csound/csound/Opcodes/vst4cs/src/vsthost.cpp:527:44: error: use of undeclared identifier 'kCFAllocatorDefault' CFBundleRef vstBundle = CFBundleCreate(kCFAllocatorDefault, vstBundleURL); ^ /Users/mac/csound/csound/Opcodes/vst4cs/src/vsthost.cpp:743:24: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] if (aeffect->flags & effFlagsHasEditor == 1) { ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/mac/csound/csound/Opcodes/vst4cs/src/vsthost.cpp:743:24: note: place parentheses around the '==' expression to silence this warning if (aeffect->flags & effFlagsHasEditor == 1) { ^ ( ) /Users/mac/csound/csound/Opcodes/vst4cs/src/vsthost.cpp:743:24: note: place parentheses around the & expression to evaluate it first if (aeffect->flags & effFlagsHasEditor == 1) { ^ ( ) /Users/mac/csound/csound/Opcodes/vst4cs/src/vsthost.cpp:772:24: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] if (aeffect->flags & effFlagsHasEditor == 1) { ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/mac/csound/csound/Opcodes/vst4cs/src/vsthost.cpp:772:24: note: place parentheses around the '==' expression to silence this warning if (aeffect->flags & effFlagsHasEditor == 1) { ^ ( ) /Users/mac/csound/csound/Opcodes/vst4cs/src/vsthost.cpp:772:24: note: place parentheses around the & expression to evaluate it first if (aeffect->flags & effFlagsHasEditor == 1) { ^ ( ) 2 warnings and 6 errors generated. make[2]: *** [Opcodes/CMakeFiles/vst4cs.dir/vst4cs/src/vsthost.cpp.o] Error 1 make[1]: *** [Opcodes/CMakeFiles/vst4cs.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... How may I solve this? Thank you, D. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-01-25 15:44 |
From | Michael Gogins |
Subject | Re: building csound with vst4cs on OSX |
I wish I could help you more, as I have worked on these opcodes and use them all the time, but I am not an OS X developer and these are OS X symbols in the Objective-C language. Presumably you need to tell CMake where these symbols are declared and/or defined, but I'm not sure how to do that in Objective-C or on OS X. Victor Lazzarini or Steven Yi would probably know more. Hope this helps, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Jan 25, 2017 at 9:32 AM, Daniele |
Date | 2017-01-25 19:36 |
From | Steven Yi |
Subject | Re: building csound with vst4cs on OSX |
I'm not on OSX too much these days. The CFURL stuff seems like older OSX APIs maybe? May indicate that the C++ code needs updating to newer APIs. However, for the warnings regarding precedence of &, that seems like a general problem. On Wed, Jan 25, 2017 at 10:44 AM, Michael Gogins |
Date | 2017-01-25 21:16 |
From | Victor Lazzarini |
Subject | Re: building csound with vst4cs on OSX |
This appears to be from CoreFoundation, but maybe the header was not included, or perhaps the C API was pulled out in favour of an Objective C one? Has this ever worked? Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 25 Jan 2017, at 19:36, Steven Yi |
Date | 2017-01-25 21:38 |
From | Victor Lazzarini |
Subject | Re: building csound with vst4cs on OSX |
Try adding these lines to the top of the vsthost.cpp file: #ifdef __MACH__ #include |
Date | 2017-01-25 21:52 |
From | Victor Lazzarini |
Subject | Re: building csound with vst4cs on OSX |
I’ve updated the sources with these changes and another fix and the opcodes were built for me here. Try pulling the latest sources and trying again. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 25 Jan 2017, at 21:38, Victor Lazzarini |
Date | 2017-01-25 23:55 |
From | Michael Gogins |
Subject | Re: building csound with vst4cs on OSX |
Thanks, Victor. Regards, Mike On Jan 25, 2017 4:53 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote: I’ve updated the sources with these changes and another fix and the opcodes were built for me here. |
Date | 2017-01-26 07:48 |
From | fragmentsinabox |
Subject | Re: building csound with vst4cs on OSX |
Thank you all for your help, I'm trying to build the updated version right now, I'll keep you updated. Daniele -- View this message in context: http://csound.1045644.n5.nabble.com/Csnd-building-csound-with-vst4cs-on-OSX-tp5754160p5754171.html Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-01-26 08:36 |
From | fragmentsinabox |
Subject | Re: building csound with vst4cs on OSX |
Dear all, vst4cs has been correctly compiled (thank you Mr. Lazzarini for the new source!). But since I'm following the instructions for compiling on Linux, there's no command such "sudo ldconfig" on OSX. How may I solve it? Is there an alternative command for Mac? Is it necessary? Thank you, Daniele -- View this message in context: http://csound.1045644.n5.nabble.com/Csnd-building-csound-with-vst4cs-on-OSX-tp5754160p5754172.html Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-01-26 12:05 |
From | fragmentsinabox |
Subject | Re: building csound with vst4cs on OSX |
Dear all, vst4cs works! I'm testing several VST now. The only problem is that Csound doesn't display the VST parameters, even with iverbose = 1 This is an output example: Loaded plugin: TAL Reverb 4 Plugin Vendor name: TAL-Togu Audio Line Version: 66048 Is synthesizer? No Number of inputs: 2 Number of outputs: 2 Number of parameters: 7 Number of programs: 1 ---------------------------------------------------- Is there a way to display the parameters? Thank you, Daniele -- View this message in context: http://csound.1045644.n5.nabble.com/Csnd-building-csound-with-vst4cs-on-OSX-tp5754160p5754175.html Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-04-18 05:27 |
From | Alex Weiss |
Subject | Re: building csound with vst4cs on OSX |
Hi,
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
I wanted to follow up on this since I'm having the same problem with vstinit on mac os x. All it displays is a brief summary of the plugin, similar to the one Daniele posted below. Is there a way to see the names and numbers of all parameters? Thanks, Alex On Thu, Jan 26, 2017 at 4:05 AM fragmentsinabox <danieledevirgilio@gmail.com> wrote: Dear all, |