Re: Errors building loadable bundle on Mac OS X 10.4
Re: Errors building loadable bundle on Mac OS X 10.4
- Subject: Re: Errors building loadable bundle on Mac OS X 10.4
- From: Peter O'Gorman <email@hidden>
- Date: Fri, 11 Jan 2008 01:19:36 -0600
Tron Thomas wrote:
> At work we have a Makefile project that builds a dynamic library that
> links against a 3rd party framework. That dynamic library then links
> against a loadable bundle. When the bundle is built on a system running
> Mac OS X 10.5, it builds successfully. However when the bundle is built
> on a system running Mac OS X 10.4, warnings and errors like the
> following ensue:
>
> /usr/bin/ld: warning can't open dynamic library:
> @executable_path/../Frameworks/<3rdPartyFramework>.framework/Versions/A/<3rdPartyFramework>
> referenced
> from: <path to dynamic library>.dylib
> (checking for undefined symbols may be affected) (No such file or
> directory, errno = 2)\
> ...
> /usr/bin/ld: Undefined symbols:\
> <Symbol in 3rd party framework> referenced from <dynamic library>
> expected to be defined
> in
> @executable_path/../Frameworks/<3rdPartyFramework>.framework/Versions/A/<3rdPartyFramework\
>
> ...
>
> What can be done to eliminate these errors and warnings so the build can
> succeed on Mac OS X 10.4?
I will hazard a guess that you need to tell ld where to look for
dependent libraries that are referenced using @executable_path. You can
do this with the -executable_path "path_name" linker option to the 10.4
linker.
This option seems to have disappeared from the manpage on 10.5 :(
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
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