Re: Problems linking to dylibs in bundle
Re: Problems linking to dylibs in bundle
- Subject: Re: Problems linking to dylibs in bundle
- From: "D. Walsh" <email@hidden>
- Date: Thu, 23 Feb 2006 15:51:23 -0500
- Mta-interface: amavisd-new-2.3.3 (20050822) + Maia Mailguard 1.1.0 at daleenterprise.com
On Feb 23, 2006, at 15:10 , Mark Lucas wrote:
I'm trying to use xcode to build an application bundle from
external make projects. I'm trying to bundle some of the resulting
dylibs within an application bundle to satisfy the dependencies.
I have the external make targets building successfully and have
them as target dependencies in my app target.
I've tried moving the required dylibs into the bundle under
Contents/Frameworks but they are not found at runtime.
Does it only search @executable_path/../Frameworks for Frameworks
and not dylibs?
Any help would be greatly appreciated. Thanks,
running otool -L on the executable within the bundle yields:
mrl$ otool -L ossimosgqt
ossimosgqt:
libosgPlanet.dylib (compatibility version 1.0.0, current
version 1.0.0)
libosgGA.dylib (compatibility version 1.0.0, current
version 1.0.0)
libosgDB.dylib (compatibility version 1.0.0, current
version 1.0.0)
libosgUtil.dylib (compatibility version 1.0.0, current
version 1.0.0)
libosg.dylib (compatibility version 1.0.0, current version
1.0.0)
libProducer.dylib (compatibility version 0.0.0, current
version 0.0.0)
libosgText.dylib (compatibility version 1.0.0, current
version 1.0.0)
libosgProducer.dylib (compatibility version 1.0.0, current
version 1.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/
OpenGL (compatibility version 1.0.0, current version 1.0.0)
/Users/Shared/Development/ossim/lib/libossim.1.6.5.dylib
(compatibility version 0.0.0, current version 0.0.0)
libOpenThreads.dylib (compatibility version 0.0.0, current
version 0.0.0)
libwms.dylib (compatibility version 1.0.0, current version
1.0.0)
libqt.3.dylib (compatibility version 3.3.0, current version
3.3.6)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0,
current version 7.3.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,
current version 1.0.0)
Those libs are in app/Contents/Frameworks however.
According to your build settings those file are stored with the the
main app but your copy phase is placing them in the assigned
Frameworks directory.
I also see an issue with "/Users/Shared/Development/ossim/lib/
libossim.1.6.5.dylib" making it almost impossible for the application
to be used outside of this drive if the library doesn't exists.
mark
-- Dale
_______________________________________________
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