(no subject)

zze-Icom COLLET J ext RD-MAPS-REN jcollet.ext at orange-ftgroup.com
Mon Apr 2 07:23:31 PDT 2007


Thanks for your help

I will try as soon as possible

Jeremie

-----Message d'origine-----
De : Daniel Jalkut [mailto:jalkut at red-sweater.com] 
Envoyé : lundi 2 avril 2007 15:47
À : zze-Icom COLLET J ext RD-MAPS-REN
Cc : macosx-dev at omnigroup.com
Objet : Re: (no subject)

On Apr 2, 2007, at 7:44 AM, zze-Icom COLLET J ext RD-MAPS-REN wrote:
> I don't understand. On Linux, the same line to link with mosaic works
> perfectly and the library is found, evn the path is different.

On Mac OS X, you need to make sure the library will be in a default  
library search path at launch time, or else give the library specific  
instructions for where to find it.


> dyld: Library not loaded:
> ../../../../Build/lib/MacOSX/Release/libMosaic.dylib
>
> Referenced from: /Users/fique100/softphone/softphone

Given this example, you probably want the library to be "relative to  
the executable" of the main program. You do this by setting the  
"Install Directory" of the subsidiary library, when you build it. See:

http://developer.apple.com/documentation/MacOSX/Conceptual/ 
BPFrameworks/Tasks/CreatingFrameworks.html

Even if you're not creating a "framework", the same principles apply.

Daniel


More information about the MacOSX-dev mailing list