Re: How to run an application bundle that dynamically loads a dylib
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