Csound Csound-dev Csound-tekno Search About

[Csnd] using CSound API from inside an application package

Date2011-03-18 15:49
FromAlex Hofmann
Subject[Csnd] using CSound API from inside an application package
Hi,

I'm using csound as soundengine for openframeworks. My problem (on mac, 
xcode) is, that the executable is not portable to an other machine, 
where csound isn't installed.
Even if I use "Copy Files" in Build Phase, and the CsoundLib.framework 
becomes copied into the app-contents, the app still depends on the files 
in the standard directoy. "Library/Frameworks/.."

Does you have any experience with this?

Thanks,
Alex


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-03-18 16:34
FromAndres Cabrera
SubjectRe: [Csnd] using CSound API from inside an application package
Hi Alex,

You need to update the linking inside the binary, so that it looks for
the Csound Framework and the plugins and their dependencies inside the
app bundle. I do that for my standalone version of QuteCsound, which
is made with the script:

http://qutecsound.svn.sourceforge.net/viewvc/qutecsound/trunk/qutecsound/bin/osx-prepare-bundle.sh?revision=808&content-type=text%2Fplain

This script also includes how to do it for Qt, and you might need to
modify it to include the openframeworks libraries, which you might
also want to distribute inside your bundle.

Cheers,
Andres

On Fri, Mar 18, 2011 at 3:49 PM, Alex Hofmann  wrote:
> Hi,
>
> I'm using csound as soundengine for openframeworks. My problem (on mac,
> xcode) is, that the executable is not portable to an other machine, where
> csound isn't installed.
> Even if I use "Copy Files" in Build Phase, and the CsoundLib.framework
> becomes copied into the app-contents, the app still depends on the files in
> the standard directoy. "Library/Frameworks/.."
>
> Does you have any experience with this?
>
> Thanks,
> Alex
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-03-18 18:40
FromAlex Hofmann
SubjectRe: [Csnd] using CSound API from inside an application package
Hi Andres,

thanks for your help. It doesn't look that easy.. seems that I have to 
include a few more .dylbs than just the CsoundLib.framework. Hope I get 
those things done the next days.

Best,
Alex

Am 18.03.11 17:34, schrieb Andres Cabrera:
> Hi Alex,
>
> You need to update the linking inside the binary, so that it looks for
> the Csound Framework and the plugins and their dependencies inside the
> app bundle. I do that for my standalone version of QuteCsound, which
> is made with the script:
>
> http://qutecsound.svn.sourceforge.net/viewvc/qutecsound/trunk/qutecsound/bin/osx-prepare-bundle.sh?revision=808&content-type=text%2Fplain
>
> This script also includes how to do it for Qt, and you might need to
> modify it to include the openframeworks libraries, which you might
> also want to distribute inside your bundle.
>
> Cheers,
> Andres
>
> On Fri, Mar 18, 2011 at 3:49 PM, Alex Hofmann  wrote:
>> Hi,
>>
>> I'm using csound as soundengine for openframeworks. My problem (on mac,
>> xcode) is, that the executable is not portable to an other machine, where
>> csound isn't installed.
>> Even if I use "Copy Files" in Build Phase, and the CsoundLib.framework
>> becomes copied into the app-contents, the app still depends on the files in
>> the standard directoy. "Library/Frameworks/.."
>>
>> Does you have any experience with this?
>>
>> Thanks,
>> Alex
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-03-18 19:27
FromMichael Gogins
SubjectRe: [Csnd] using CSound API from inside an application package
You can also simply build all the Csound code into your own
application. Nothing at all prevents this.

The (only) difficulty would be the plugin opcodes. You could even
build these into your own application, if you write a function that
will register all the opcodes and your application calls this function
before it tries to run Csound.

Regards,
Mike

On Fri, Mar 18, 2011 at 2:40 PM, Alex Hofmann  wrote:
> Hi Andres,
>
> thanks for your help. It doesn't look that easy.. seems that I have to
> include a few more .dylbs than just the CsoundLib.framework. Hope I get
> those things done the next days.
>
> Best,
> Alex
>
> Am 18.03.11 17:34, schrieb Andres Cabrera:
>>
>> Hi Alex,
>>
>> You need to update the linking inside the binary, so that it looks for
>> the Csound Framework and the plugins and their dependencies inside the
>> app bundle. I do that for my standalone version of QuteCsound, which
>> is made with the script:
>>
>>
>> http://qutecsound.svn.sourceforge.net/viewvc/qutecsound/trunk/qutecsound/bin/osx-prepare-bundle.sh?revision=808&content-type=text%2Fplain
>>
>> This script also includes how to do it for Qt, and you might need to
>> modify it to include the openframeworks libraries, which you might
>> also want to distribute inside your bundle.
>>
>> Cheers,
>> Andres
>>
>> On Fri, Mar 18, 2011 at 3:49 PM, Alex Hofmann  wrote:
>>>
>>> Hi,
>>>
>>> I'm using csound as soundengine for openframeworks. My problem (on mac,
>>> xcode) is, that the executable is not portable to an other machine, where
>>> csound isn't installed.
>>> Even if I use "Copy Files" in Build Phase, and the CsoundLib.framework
>>> becomes copied into the app-contents, the app still depends on the files
>>> in
>>> the standard directoy. "Library/Frameworks/.."
>>>
>>> Does you have any experience with this?
>>>
>>> Thanks,
>>> Alex
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"