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: Trying to understand executable bundle loading



On 8-Aug-06, at 11:02 AM, Greg Guerin wrote:

I suspect the problem is your lib's embedded name. Use the 'otool'
command, which has several options, to list the names of the lib itself and
the other libs it references. See 'man otool'.

Thanks for the suggestion. indeed otool does show the /usr/local/lib path, but I guess that would be expected.


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.

--
Craig Morris
Fernie, B.C., Canada

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: Trying to understand executable bundle loading (From: Greg Guerin <email@hidden>)



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.