Csound Csound-dev Csound-tekno Search About

[Csnd] Linking against CsoundLib64.framework

Date2020-04-25 19:18
FromSyl Morrison
Subject[Csnd] Linking against CsoundLib64.framework
Hi all, was discussing this the other day, so I keep spamming with questions about the API, but my usage of it requires on me linking to libcsnd6.dylib, which is, obviously, a dynamic library, but in Juce and Xcode I'm using the framework, which (as I understand it), SHOULD have something I can link to contained in it (because a framework is just include and lib packaged into one). So I'm wondering what the best way to go about this is, obviously linking to libcsnd6 is fine for now, but it would be great to A: understand where I could link to in the framework, and B: have a solution where I can just distribute my program with the framework and not need to worry about the dylib!
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

Date2020-04-25 20:12
FromRory Walsh
SubjectRe: [Csnd] Linking against CsoundLib64.framework
Check out the Projucer files for Cabbage. They show you how to generate an Xcode application using JUCE. Just copy and paste the Csound bit into your Projucer files. This will build against the Csound that is installed. And should, for the most part, run without problems on another machine that has Csound already installed.

If you want to bundle Csound into your app, you can simply copy it to the resources folder and then relink the binaries. Your app will then run anywhere. Furthermore, new versions of Csound won't ever cause issues with your app. This is a good way to go if you know you won't need to be updating Csound later. It's what Oeyvind did with his Hadron plugin. As far as I know it's still using quite an old version of Csound. But it works so well there is no need to update it.

Rory.

   

On Sat, 25 Apr 2020 at 19:18, Syl Morrison <honoonu@gmail.com> wrote:
Hi all, was discussing this the other day, so I keep spamming with questions about the API, but my usage of it requires on me linking to libcsnd6.dylib, which is, obviously, a dynamic library, but in Juce and Xcode I'm using the framework, which (as I understand it), SHOULD have something I can link to contained in it (because a framework is just include and lib packaged into one). So I'm wondering what the best way to go about this is, obviously linking to libcsnd6 is fine for now, but it would be great to A: understand where I could link to in the framework, and B: have a solution where I can just distribute my program with the framework and not need to worry about the dylib!
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
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

Date2020-04-25 20:35
FromSyl Morrison
SubjectRe: [Csnd] Linking against CsoundLib64.framework
Oh unreal, yeah was wondering how Cabbage did it, thanks so much Rory!

On Sat, Apr 25, 2020 at 8:13 PM Rory Walsh <rorywalsh@ear.ie> wrote:
Check out the Projucer files for Cabbage. They show you how to generate an Xcode application using JUCE. Just copy and paste the Csound bit into your Projucer files. This will build against the Csound that is installed. And should, for the most part, run without problems on another machine that has Csound already installed.

If you want to bundle Csound into your app, you can simply copy it to the resources folder and then relink the binaries. Your app will then run anywhere. Furthermore, new versions of Csound won't ever cause issues with your app. This is a good way to go if you know you won't need to be updating Csound later. It's what Oeyvind did with his Hadron plugin. As far as I know it's still using quite an old version of Csound. But it works so well there is no need to update it.

Rory.

   

On Sat, 25 Apr 2020 at 19:18, Syl Morrison <honoonu@gmail.com> wrote:
Hi all, was discussing this the other day, so I keep spamming with questions about the API, but my usage of it requires on me linking to libcsnd6.dylib, which is, obviously, a dynamic library, but in Juce and Xcode I'm using the framework, which (as I understand it), SHOULD have something I can link to contained in it (because a framework is just include and lib packaged into one). So I'm wondering what the best way to go about this is, obviously linking to libcsnd6 is fine for now, but it would be great to A: understand where I could link to in the framework, and B: have a solution where I can just distribute my program with the framework and not need to worry about the dylib!
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
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
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