• 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: including dylibs in my .app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: including dylibs in my .app


  • Subject: Re: including dylibs in my .app
  • From: Tommy Nordgren <email@hidden>
  • Date: Fri, 29 May 2009 21:10:59 +0200


On May 29, 2009, at 7:16 PM, Taylor Holliday wrote:

Is it really that bad to potentially duplicate a few libs? I'd rather
have a self-contained .app that doesn't require an installer.

The problem is not with disk space. When a library is put inside the Application bundle,
every app that uses the same library will need it's own in-memory copy of the code,
because each app will use it's own copy of the library on disk.
Even if the code is the same, it can't be shared when each library instance have it's own on-disk
path. (There is no way for the dynamic loader to know that two library instances are the same,
even if they have the same file name except for the directory part.
On Fri, May 29, 2009 at 10:00 AM, Tommy Nordgren
<email@hidden> wrote:

On May 29, 2009, at 3:15 AM, Nick Zitzmann wrote:


On May 28, 2009, at 4:56 PM, Taylor Holliday wrote:

How can I include those
libs in my app so it can be used on machines which don't have the
required libs in /opt/local.


Copy them into your app bundle, then add a shell script build phase to the
project that runs install_name_tool to adjust the paths of the library in
both the library and the application that uses it. See the man page for
install_name_tool for more details.


Nick Zitzmann
<http://seiryu.home.comcast.net/>


With that "solution" code won't be shared by other apps. It's
probably better to write an installer,
to install a copy of the library at the same path as the developer machine


----------------------------------
Skinheads are so tired of immigration, that they are going to move to a
country that don't accept immigrants!
Tommy Nordgren
email@hidden




_______________________________________________
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


------
What is a woman that you forsake her, and the hearth fire and the home acre,
to go with the old grey Widow Maker. --Kipling, harp song of the Dane women
Tommy Nordgren
email@hidden




_______________________________________________
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: including dylibs in my .app
      • From: Dan Korn <email@hidden>
    • Re: including dylibs in my .app
      • From: Jason Foreman <email@hidden>
References: 
 >including dylibs in my .app (From: Taylor Holliday <email@hidden>)
 >Re: including dylibs in my .app (From: Nick Zitzmann <email@hidden>)
 >Re: including dylibs in my .app (From: Tommy Nordgren <email@hidden>)
 >Re: including dylibs in my .app (From: Taylor Holliday <email@hidden>)

  • Prev by Date: Re: Compressing Xcode project folders
  • Next by Date: Re: Compressing Xcode project folders
  • Previous by thread: Re: including dylibs in my .app
  • Next by thread: Re: including dylibs in my .app
  • Index(es):
    • Date
    • Thread