• 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: How to run an application bundle that dynamically loads a dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to run an application bundle that dynamically loads a dylib


  • Subject: Re: How to run an application bundle that dynamically loads a dylib
  • From: Markus Hitter <email@hidden>
  • Date: Wed, 17 May 2006 14:12:32 +0200


Am 17.05.2006 um 12:34 schrieb email@hidden:

I have created an application bundle "x.App" on Mac version 10.4 that
requires loading dll "y.dylib". The actual executable "x" resides at the
following path: Contents/MacOS/


I m not able to open the application in both the following cases -
   -By double clicking its Icon in the Finder.

Did you try to rename x.App to x.app?

I tried to place the dylib inside the current folder or the Contents or the
MacOS or the Resources folder, so that application can be made to run by
double clicking on it in the Finder itself.

You not only have to place the dylib into the appropriate place, you have to tell the dylib at build time where this would be (@executable_path/...), too. Xcode's Documentation has some nice explanations for this, search for "embedded frameworks" or similar.


BTW., frameworks are preferred over plain dylibs in Mac OS X, building them is about the same amount of work.


HTH, Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________ 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: How to run an application bundle that dynamically loads a dylib
      • From: David Dunham <email@hidden>
References: 
 >How to run an application bundle that dynamically loads a dylib (From: email@hidden)

  • Prev by Date: How to run an application bundle that dynamically loads a dylib
  • Next by Date: dereferencing type-punned pointer will break strict-aliasing rules
  • Previous by thread: How to run an application bundle that dynamically loads a dylib
  • Next by thread: Re: How to run an application bundle that dynamically loads a dylib
  • Index(es):
    • Date
    • Thread