Re: Re[2]: Using a dylib without installing it
Re: Re[2]: Using a dylib without installing it
- Subject: Re: Re[2]: Using a dylib without installing it
- From: Mike Blaguszewski <email@hidden>
- Date: Thu, 12 Jul 2007 12:50:40 -0400
On Jul 11, 2007, at 6:00 PM, DAS Loop wrote: Now that we don't have a good solution let me introduce another, related, problem: My product has two versions: a GUI and a GUI-less one. The GUI version is on a bundle, the GUI-less is a non-bundle application that will be on, for example, /usr/local/bin . They share a lot of libraries and frameworks.
Here's how I once solved this problem: I put the real command line tool inside my GUI's app bundle, so that I could link using @executable_path. Then in /usr/bin I put a stub binary that used the Launch Services API to find a copy of the GUI app. From there it's trivial to construct a path to the bundled command line tool, and you can use the Unix exec() call to run it, forwarding on the arguments in argv.
-- Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.
|
_______________________________________________
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