• 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: Silly problem linking with dylibs and @loader_path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Silly problem linking with dylibs and @loader_path


  • Subject: Re: Silly problem linking with dylibs and @loader_path
  • From: Peter O'Gorman <email@hidden>
  • Date: Fri, 27 Jun 2008 10:12:30 -0500

Jules Colding wrote:
> Hi,
>
> I intent to ship a few custom libraries with my application. These I
> want to put into "MyApp.app/Contents/Libraries/". I also want to make
> the application relocatable.
>
> So, I've added "-rpath @loader_path/../Libraries" to "Other Linker
> Flags" in the project options. I've also used "install_name_tool" to fix
> all of the loader paths in the extra libraries. The full "otool -L" list
> is in the end of this mail. Generally I've tried to follow the
> instructions here: "http://www.codeshorts.ca/tag/osx/";.
>
> As a final step I told xcode to link to these libraries by adding them
> to the "Linked Frameworks" project folder. But gcc is complaining. The
> error is "@loader_path/../Libraries: no such file or directory".

-rpath takes a path, relative or absolute, so, I think '-rpath
../Libraries' is what you want.

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

References: 
 >Silly problem linking with dylibs and @loader_path (From: Jules Colding <email@hidden>)

  • Prev by Date: Silly problem linking with dylibs and @loader_path
  • Next by Date: How do I link?
  • Previous by thread: Silly problem linking with dylibs and @loader_path
  • Next by thread: How do I link?
  • Index(es):
    • Date
    • Thread