Quantcast

[Csnd] building csound with vst4cs on OSX

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Csnd] building csound with vst4cs on OSX

fragmentsinabox
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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] building csound with vst4cs on OSX

Michael Gogins-2
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 <[hidden email]> wrote:

> 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
> [hidden email]
> 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

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] building csound with vst4cs on OSX

Steven Yi
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
<[hidden email]> wrote:

> 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 <[hidden email]> wrote:
>> 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
>> [hidden email]
>> 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
>
> Csound mailing list
> [hidden email]
> 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

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] building csound with vst4cs on OSX

Victor Lazzarini
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 <[hidden email]> wrote:
>
> CFURLCreateWithFileSystemPath

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] building csound with vst4cs on OSX

Victor Lazzarini
Try adding these lines to the top of the vsthost.cpp file:

#ifdef __MACH__
#include <CoreFoundation/CFURL.h>
#include <CoreFoundation/CFString.h>
#include <CoreFoundation/CFBundle.h>
#endif

========================
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:16, Victor Lazzarini <[hidden email]> wrote:
>
> 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 <[hidden email]> wrote:
>>
>> CFURLCreateWithFileSystemPath
>
> Csound mailing list
> [hidden email]
> 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

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] building csound with vst4cs on OSX

Victor Lazzarini
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 <[hidden email]> wrote:
>
> Try adding these lines to the top of the vsthost.cpp file:
>
> #ifdef __MACH__
> #include <CoreFoundation/CFURL.h>
> #include <CoreFoundation/CFString.h>
> #include <CoreFoundation/CFBundle.h>
> #endif
>
> ========================
> 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:16, Victor Lazzarini <[hidden email]> wrote:
>>
>> 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 <[hidden email]> wrote:
>>>
>>> CFURLCreateWithFileSystemPath
>>
>> Csound mailing list
>> [hidden email]
>> 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
>
> Csound mailing list
> [hidden email]
> 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


Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] building csound with vst4cs on OSX

Michael Gogins-2
Thanks, Victor.

Regards,
Mike

On Jan 25, 2017 4:53 PM, "Victor Lazzarini" <[hidden email]> wrote:
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 <[hidden email]> wrote:
>
> Try adding these lines to the top of the vsthost.cpp file:
>
> #ifdef __MACH__
> #include <CoreFoundation/CFURL.h>
> #include <CoreFoundation/CFString.h>
> #include <CoreFoundation/CFBundle.h>
> #endif
>
> ========================
> 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:16, Victor Lazzarini <[hidden email]> wrote:
>>
>> 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 <[hidden email]> wrote:
>>>
>>> CFURLCreateWithFileSystemPath
>>
>> Csound mailing list
>> [hidden email]
>> 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
>
> Csound mailing list
> [hidden email]
> 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


Csound mailing list
[hidden email]
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
Csound mailing list [hidden email] 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] building csound with vst4cs on OSX

fragmentsinabox
In reply to this post by Victor Lazzarini
Thank you all for your help, I'm trying to build the updated version right now,
I'll keep you updated.

Daniele
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] building csound with vst4cs on OSX

fragmentsinabox
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] building csound with vst4cs on OSX

fragmentsinabox
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] building csound with vst4cs on OSX

Alex Weiss
Hi,

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 <[hidden email]> wrote:
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
[hidden email]
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
Csound mailing list [hidden email] 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
Loading...