Csound Csound-dev Csound-tekno Search About

[Cs-dev] error from libpd csoundapi~ library files after moving CsoundLib.framework

Date2013-11-03 10:37
FromTom Zicarelli
Subject[Cs-dev] error from libpd csoundapi~ library files after moving CsoundLib.framework
AttachmentsNone  None  
In the process of building an app on Mac OS 10.8 with csoundapi~ (v5.2) embedded in libpd in a c++ project.

Everything works fine when the CsoundLib.framework is in the /Library/Frameworks folder.

But I wanted to package the framework with the app contents. We set xCode to copy the framework into the app contents - and set the new path in the framework using install_name_tool. That all worked fine.

Initially had an error from Pd (csoundap~) that it couldn't find the plugin directory, but we set the OPCODEDIR environment variable and that went away.

Now we're getting a string of error messages for each .dylib file in the Framework - even though these files exist in the OPCODEDIR path - and can be seen by the c++ program. And sadly no sound is being produced.  

Would be grateful for any suggestions. Thanks.

Tom

BEGIN Patch Test
/Users/tkzic/ofx8/apps/myApps/AoedeCsound3/bin/data/pd/simple.csd
/Users/tkzic/ofx8/apps/myApps/AoedeCsound3/bin/data/pd/simple.csd
WARNING: [mcould not open library '/Users/tkzic/ofx8/apps/myApps/AoedeCsound3/bin/AoedeCsound3Debug.app/Contents/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes/libampmidid.dylib' (-1)
WARNING: could not open library '/Users/tkzic/ofx8/apps/myApps/AoedeCsound3/bin/AoedeCsound3Debug.app/Contents/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes/libcellular.dylib' (-1)
WARNING: could not open library '/Users/tkzic/ofx8/apps/myApps/AoedeCsound3/bin/AoedeCsound3Debug.app/Contents/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes/libchua.dylib' (-1)
...


Date2013-11-03 11:41
FromVictor Lazzarini
SubjectRe: [Cs-dev] error from libpd csoundapi~ library files after moving CsoundLib.framework
The error messages indicate Csound tried to load the plugins and could not, but this does not necessarily have to stop csound from working, what other messages are you getting?

I wonder if the plugins have a dependency that is not being found (libsndfile maybe?). If you run 

otool -L  

you can check for dependencies.

Victor
On 3 Nov 2013, at 10:37, Tom Zicarelli wrote:

> Now we're getting a string of error messages for each .dylib file in the Framework - even though these files exist in the OPCODEDIR path - and can be seen by the c++ program. And sadly no sound is being produced. 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-11-05 10:21
Fromtkzic
SubjectRe: [Cs-dev] error from libpd csoundapi~ library files after moving CsoundLib.framework
Hi Victor,

Yes that is what is going on. otool revealed that the internal .dylib files
for the plugins in the framework are still trying to run from
/Library/Frameworks - (which I had temporarily disabled for testing).  So
that probably means that we'll need to do more configuration. 

Or I'm wondering if you would suggest running it from a static lib? And if
there are any already compiled for Mac Os?  (Always looking for the lazy
solution)

thanks,

Tom




--
View this message in context: http://csound.1045644.n5.nabble.com/error-from-libpd-csoundapi-library-files-after-moving-CsoundLib-framework-tp5729066p5729161.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net