Re: Apple library distrobution
Re: Apple library distrobution
- Subject: Re: Apple library distrobution
- From: "David R. Morrison" <email@hidden>
- Date: Sat, 16 Oct 2004 08:12:58 -0400
On Oct 15, 2004, at 3:23 PM, Ken Mankoff wrote:
[snip]
The program is hard-linked to the following libraries in:
/usr/X11R6/lib/
libExt.6.dylib -> libExt.6.4.dylib
libGL.1.dylib -> libGL.1.2.dylib
libICE.6.dylib -> libICE.6.3.dylib
libSM.6.dylib -> libSM.6.0.dylib
libX11.6.dylib -> libX11.6.2.dylib
libXext.6.dylib -> libXext.6.4.dylib
libXp.6.dylib -> libXp.6.2.dylib
libXpm.4.dylib -> libXpm.4.11.dylib
libXt.6.dylib -> libXt.6.0.dylib
I would like to have my installer install these programs. Is this
acceptable? If yes, great. If not, do I need to talk to someone in the
X consortium, or someone at Apple?
There is a problem with having your installer put these libraries in
/usr/X11R6/lib: what if the user already has X11 installed? (You could
design your installer to check for this, of course.) A bigger problem:
what if they decide to install it later? If your files are there, they
will be overwritten; if you use symlinks, something even worse can
happen: the other installation might end up following symlinks during
installation and putting the files in the wrong place. A third
problem: if the libs are present when your program is installed, and
you decide not to overwrite them, what happens if they user
subsequently removes X11?
There are other possible ways to handle this, including installing
these libraries in another place and linking your program to your
private copy of these libraries. (That trick works for most libraries,
but I am told that it is hard to pull off for X11, which makes
assumptions about where it is installed.) Another possibility is to
install the libraries to a different location and have your program set
the environment variable DYLD_LIBRARY_PATH before searching libraries.
See "man dyld" for information about how this works.
-- Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden