• 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: Using a dylib without installing it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using a dylib without installing it


  • Subject: Re: Using a dylib without installing it
  • From: "DAS Loop" <email@hidden>
  • Date: Tue, 10 Jul 2007 23:25:22 +0200

Hi,

Try this:
install_name_tool -change libchartdir.4.dylib @executable_path/../Frameworks/libchartdir.4.dylib /Users/dlorenz/Development/Build Products/Debug/CanvasViewer.app/Contents/MacOS/CanvasViewer

Assuming that you will put the library in the Frameworks  folder  inside your application:
 /Build Products/Debug/CanvasViewer.app/Contents/Frameworks

Best regards,

   David

PS. This is maybe one of the more stupid things in Mac OS X.  Why the dylib loader don't look first in some well know location inside the app bundle?




On 7/10/07, Dix Lorenz <email@hidden> wrote:
Hi,

I am developing a regular Cocoa-application and I need to use a 3rd-
Party dylib. I do not want to install this in my users lib-
directories, I want it to be inside the application bundle. But no
matter what I try, unless I copy the .dylib into my ~/lib directory
(presumably any other of the standard directories would work), I
always get:

dyld: Library not loaded: libchartdir.4.dylib
   Referenced from: /Users/dlorenz/Development/Build Products/Debug/
CanvasViewer.app /Contents/MacOS/CanvasViewer
   Reason: image not found

What do I need to do to get a nicely self-contained application?

Thanks,
Dix

_______________________________________________
Do not post admin requests to the list. They will be ignored.
 _______________________________________________
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

  • Follow-Ups:
    • Re: Using a dylib without installing it
      • From: Dix Lorenz <email@hidden>
    • Re[2]: Using a dylib without installing it
      • From: Peter Mulholland <email@hidden>
    • Re: Using a dylib without installing it
      • From: Peter O'Gorman <email@hidden>
References: 
 >Using a dylib without installing it (From: Dix Lorenz <email@hidden>)

  • Prev by Date: Re: Terminal Shows only Completed Command
  • Next by Date: Re: Using a dylib without installing it
  • Previous by thread: Re: Using a dylib without installing it
  • Next by thread: Re: Using a dylib without installing it
  • Index(es):
    • Date
    • Thread