Re: Why is 10.5.2 removing libGLw?
Re: Why is 10.5.2 removing libGLw?
- Subject: Re: Why is 10.5.2 removing libGLw?
- From: Ben Byer <email@hidden>
- Date: Tue, 26 Feb 2008 19:57:07 -0800
On Feb 26, 2008, at 2:58 PM, Martin Costabel wrote:
Ben Byer wrote:
[]
libGLw should never have been shipped with OS X, because it has
external dependencies (namely, Motif). It shipped before because
XFree86 shipped a broken version of it by default; it was removed
when we switched to X.org. It temporarily snuck back in, but that
has since been fixed.
What was broken in the Tiger version? AFAIK it was good enough to
build correctly working applications like molmol or arb.
Yes, but only (if I'm not mistaken) when you also had one of the
Motifs installed on your system.
libGLw is a strange library in that it depends on both libGL and
Motif. I don't know that it makes sense for either libGL or Motif to
include it in their packages.
The way XFree86 handled this was by including a few bits of Motif in
with their distribution:
http://www.opensource.apple.com/darwinsource/10.4.11.ppc/X11-0.46.4/xc/lib/GLw/GLwXm/
The included header files were enough to build a static library
(libGLw.a) on Tiger, but you could not actually link with that library
unless you also had Motif installed.
Mesa chose to not redistribute little pieces of Motif. Instead, they
provided two different versions of GLw:
http://www.opensource.apple.com/darwinsource/10.5.2/X11server-48/mesa/Mesa-6.5.2/src/glw/GLwDrawA.c
http://www.opensource.apple.com/darwinsource/10.5.2/X11server-48/mesa/Mesa-6.5.2/src/glw/GLwMDrawA.c
(etc)
The first version allows you to build some stripped-down version of
GLw that does not depend on Motif -- perhaps they emulated some of the
widgets using GL primitives. The second version allows you to build
the full GLw, but you can only compile it if you have Motif installed
on your system.
Since our build machines don't have Motif installed, we can only build
the first version, resulting in a libGLw.dylib that only contained
some of the functionality contained in Tiger's libGLw.a. This caused
some degree of confusion, so we decided that it was probably better to
stop shipping the library entirely, lest it be autodetected by
configure scripts.
In any case, the code that goes into libGLw is really rather small --
if developers need those widgets when building their software, they'd
be much better of just building it into their projects:
http://www.opensource.apple.com/darwinsource/10.4.11.ppc/X11-0.46.4/xc/lib/GLw/GLwM1DrawA.c
http://www.opensource.apple.com/darwinsource/10.4.11.ppc/X11-0.46.4/xc/lib/GLw/GLwM2DrawA.c
-b
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden