• 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: Errors building loadable bundle on Mac OS X 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Errors building loadable bundle on Mac OS X 10.4


  • Subject: Re: Errors building loadable bundle on Mac OS X 10.4
  • From: Tron Thomas <email@hidden>
  • Date: Fri, 11 Jan 2008 22:15:31 -0800

Peter O'Gorman wrote:
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
I configured the -executable_path option for the linker and that fixed the problem. The code builds successfully on both Mac OS X 10.4 and 10.5.

_______________________________________________
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


References: 
 >Errors building loadable bundle on Mac OS X 10.4 (From: Tron Thomas <email@hidden>)
 >Re: Errors building loadable bundle on Mac OS X 10.4 (From: Peter O'Gorman <email@hidden>)

  • Prev by Date: Re:Setting NSTableView column widths in IB 3.0
  • Next by Date: Re: Linker shows "has different visibility" warning
  • Previous by thread: Re: Errors building loadable bundle on Mac OS X 10.4
  • Next by thread: How do I move through argument lists in Code Sense?
  • Index(es):
    • Date
    • Thread