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

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

  • Follow-Ups:
    • Re: Re[2]: Using a dylib without installing it
      • From: "DAS Loop" <email@hidden>
References: 
 >Re: Re[2]: Using a dylib without installing it (From: George Warner <email@hidden>)
 >Re: Re[2]: Using a dylib without installing it (From: "DAS Loop" <email@hidden>)

  • Prev by Date: Re: Re[2]: Using a dylib without installing it
  • Next by Date: Re: HELP shortcut: Go to previous position
  • Previous by thread: Re: Re[2]: Using a dylib without installing it
  • Next by thread: Re: Re[2]: Using a dylib without installing it
  • Index(es):
    • Date
    • Thread