• 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: can't open dynamic library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't open dynamic library


  • Subject: Re: can't open dynamic library
  • From: Dan Korn <email@hidden>
  • Date: Mon, 30 Jun 2008 14:30:22 -0500

Thanks all for the replies. Basically for me, this boils down to a single question:

How can I avoid the message below when linking to a dynamic library, which in turn links to another dynamic library whose install path uses a relative location based on @loader_path?

/Xcode2.5/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open dynamic library: @loader_path/libwx_mac_u_d.dylib referenced from: /Projects/FusionPro-mainline/FusionProWorkspace/ FusionProMac/FusionPro/FPUnicodeUI/build/Debug/Default/ fpunicodeui_macho_d.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)

In other words, how can I get the linker to resolve @loader_path at link time?


I'm trying to embed all the libraries and frameworks that my plug-in needs inside the plug-in's bundle.

Thanks,
Dan

P.S. I'm still interested in the philosophical discussion about what the linker *should* be doing and which component should be the one to dictate installation paths and such, but I just need to get my project built at the moment.

_______________________________________________
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: 
 >Re: can't open dynamic library (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: Using Xcode as a Python IDE
  • Next by Date: Suppressing overlapping view warnings
  • Previous by thread: Re: can't open dynamic library
  • Next by thread: Is it possible to set breakpoints in asm sources?
  • Index(es):
    • Date
    • Thread