• 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
Path to dynamic libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Path to dynamic libraries


  • Subject: Path to dynamic libraries
  • From: Johan Morin <email@hidden>
  • Date: Tue, 27 Feb 2007 17:31:49 +0100

I need a little bit of help on how to specify search paths for dynamic libraries in an application bundle.

I am using a dynamic library which is loaded with dlopen(). This works fine when I start the application from the command line and has added the path of the library to the environment variable DYLD_LIBRARY_PATH.

The problem is that I can not find out how to make this work for an application bundle. I have tried modifying the Info.plist for my application by adding DYLD_LIBRARY_PATH under LSEnvironment but that does not seem to help.

Here is how I modified the Info.plist for my application:
<key>LSEnvironment</key>
<dict>
<key>DYLD_LIBRARY_PATH</key>
<string>$APP_PACKAGE/Contents/MacOS/lib</string>
</dict>

Is there another way to accomplish this?

Any help you could provide would be very appreciated.

Thanks,

Johan Morin
Marratech
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Path to dynamic libraries
      • From: Alexander Dymerets <email@hidden>
    • Re: Path to dynamic libraries
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Stack Trace without /usr/bin/atos
  • Next by Date: Re: Detecting printer changes in NSPageLayout question.
  • Previous by thread: postscript files printing with cocoa
  • Next by thread: Re: Path to dynamic libraries
  • Index(es):
    • Date
    • Thread