Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Porting from Linux, plug-ins that depend on other plug-ins



Ernesto Corvi wrote:

> On Apr 30, 2004, at 3:47 PM, email@hidden
> wrote:
>
>> From what you and Jordan Hubbard have said, it sounds like the
>> only way to accomplish this is to have the app know what the
>> dependencies are and have it load all the required bundles in the
>> right order. In linux this happens more-or-less automatically.
>
>
> Im not sure you can implement it with bundles. If I recall
> correctly, bundles don't do any dynamic linking among themselves
> (feel free to correct me any of you out there). So loading bundle
> after bundle won't do you any good.
>
But you can look up the necessary symbols in those bundles and exec
the functions that way. Not as clean as we're (linux dso's) used too,
but load order isn't as critical, and you can test for the symbol,
load the necessary bundle and unload when finished.

I'm still fighting porting an application that expects several library
components to be both loadable and linkable. This means I have to
build both a dylib and a bundle, and the existing packaging structure
seems not to lend itself to namespace collisions.

edge
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.