• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying to understand executable bundle loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to understand executable bundle loading


  • Subject: Re: Trying to understand executable bundle loading
  • From: "Peter O'Gorman" <email@hidden>
  • Date: Tue, 8 Aug 2006 23:32:47 -0700


On Aug 8, 2006, at 4:30 PM, Craig Morris wrote:

If you don't change the Installation Directory build setting, I think
"/usr/local/lib" is the default value. That is then written to the lib
when it's linked. I change mine to ".", but my target isn't a bundle.

The "Installation Directory" setting did not seem to make a difference in my case and from what I have since read, it seems the bundle_loader flag would be what I need to correctly resolve the externals from the executable that loads the bundle. However it does not appear that this could be directed at a dylib. I think I may look at a design change here to avoid the plugins, particularly as I am not keen on also having to solve this on Windows and Linux. :-)


Thanks again though.

Hi Craig,
I am not sure that I am reading your problem properly, it looks as though you can use @loader_path in your dylibs name to solve the loading issue, see the dyld release note for more info on that and the install_name_tool man page.


The loader will only load one copy of a library if it sees multiple load commands with the same full path name. So there is no issue with using the same dylib from multiple bundles etc.

Oh, wait, I just reread your original post, it is possible for bundles to have unresolved symbols, that will be resolved by the loader, you can use "-undefined dynamic_lookup" or -flat_namespace to get this behavior.

Hope this helps,
If not, please ask the question again, in simple terms that a tired person can understand :)
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Trying to understand executable bundle loading
      • From: Craig Morris <email@hidden>
References: 
 >Re: Trying to understand executable bundle loading (From: Greg Guerin <email@hidden>)
 >Re: Trying to understand executable bundle loading (From: Craig Morris <email@hidden>)

  • Prev by Date: Re: Application size is too big while Deployment in xcode...
  • Next by Date: Aggregate Configuration?
  • Previous by thread: Re: Trying to understand executable bundle loading
  • Next by thread: Re: Trying to understand executable bundle loading
  • Index(es):
    • Date
    • Thread