• 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: install_name_tool & glib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: install_name_tool & glib


  • Subject: Re: install_name_tool & glib
  • From: Jonah Horowitz <email@hidden>
  • Date: Fri, 16 Dec 2005 18:33:48 -0800 (PST)

That worked, thank you.

Jonah


----- Original Message ----
From: Sherm Pendley <email@hidden>
To: email@hidden
Cc: email@hidden
Sent: Wed Dec 14 13:10:02 2005
Subject: Re: install_name_tool & glib

On Dec 13, 2005, at 9:39 PM, Jonah Horowitz wrote:

> I'm trying to include glib (and gobject and libintl) as
> "Frameworks" in my application bundle. I've found several
> resources on the web that show how to use install_name_tool and
> otool to modify the install_name in the libraries so they can be
> put inside a bundle. For some reason it's not working.
>
> Here exactly what I'm doing.
>
> pb-jonah:~/glib-2.8.4 jonah$ export LDFLAGS="-
> headerpad_max_install_names"
> pb-jonah:~/glib-2.8.4 jonah$ ./configure
> ...
> pb-jonah:~/glib-2.8.4 jonah$ make clean ; make
> ...
> pb-jonah:~/glib-2.8.4 jonah$ cd glib/.libs
> pb-jonah:~/glib-2.8.4/glib/.libs/ jonah$ otool -L
> libglib-2.0.0.800.4.dylib
> libglib-2.0.0.800.4.dylib:
> /usr/local/lib/libglib-2.0.0.dylib (compat...
> /usr/lib/libSystem.B.dylib (compat...
> /usr/lib/libiconv.2.dylib (compat...
> /usr/local/lib/libintl.2.dylib (compat...
> pb-jonah:~/glib-2.8.4/glib/.libs jonah$ install_name_tool -change /
> usr/local/lib/libglib-2.0.0.dylib @executable_path/../Frameworks/
> libglib-2.0.0.800.4.dylib libglib-2.0.0.800.4.dylib

You want to use the '-id' option. That will change the install name
of the library.

If you'd linked an app to a glib that has a given install name, and
then wanted to change the app so that it referred to a different one
instead, you could use install_name_tool's '-change' on the app, to
change the old reference to the new one.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: install_name_tool & glib (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: socket spy
  • Next by Date: Re: socket spy
  • Previous by thread: Re: install_name_tool & glib
  • Next by thread: NSWindowController troubles.
  • Index(es):
    • Date
    • Thread