Csound Csound-dev Csound-tekno Search About

[Cs-dev] universal binary linking to CsoundLib.framework

Date2008-11-03 18:07
FromJonatan Liljedahl
Subject[Cs-dev] universal binary linking to CsoundLib.framework
I'm having some trouble building a universal package of AlgoScore. The
thing is, I have every dependency as universals, except csound.

What first happened was that the linking of the universal binary failed
since there was no code for ppc in csound (I'm building on intel).
Setting "-undefined dynamic_lookup" in the linker flags fixed this, and
now it builds and I have a universal binary of algoscore.

But, running it on a PPC works only until it actually tries to use
csound. Then it crashes with something like:

dyld: lazy symbol binding failed: Symbol not found: _csoundInitialize
  Referenced from: /Users/user/AlgoScore/src/build/../../algoscore
  Expected in: dynamic lookup

dyld: Symbol not found: _csoundInitialize
  Referenced from: /Users/user/AlgoScore/src/build/../../algoscore
  Expected in: dynamic lookup

Trace/BPT trap

I thought that it would find the symbols in the installed ppc csound
framework even if the universal binary was linked against an intel
csound only.

I also tried building algoscore without actually linking to csound, on
my intel box, with "-undefined dynamic_lookup". It gives the same error,
even though csound framework *is* installed and with the same arch type.
So it seems that this linker flags does *not* allow the app to find the
symbols in an installed framework.

Any suggestions?

-- 
/Jonatan         [ http://kymatica.com ]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net