We are porting our program from Solaris to Linux. We are using libGLw.
We had to compile of own version of libGLw.so using the Mesa source
Why is libGLw missing from RedHat distributions? Shouldn't libGLw be
distributed with Mesa or glxMesa? Any license issues?
I've searched for the library in Mesa, Mesa-devel and glxMesa (6.2 and
rawhide). Couldn't find anything... Very few references to GLX (2) and
GLw (0!) on Bugzilla as well. Strange that no one needs this library!
Sorry for my ignorance, but what is libGLw supposed to do?
Mesa by default only has GL, GLU and glut.
My first guess is that libGLw is not part of the OpenGL standard?
The libGLw library contains GL widgets:
- Xt widgets
- Motif widgets
I think this library is pretty standard. For example, it can be found
on Solaris whether GLUT is not distributed with Solaris. I guess this
library is an extension of GLX. GLX contains basic functions for X11
integration. GLw adds widgets on top of it.
The GLw widgets are described in "OpenGL Programming for the X Window
System" by Mark J. Kilgard et al.:
Again, GLw seems pretty standard. I don't know whether it is part of
the OpenGL standard, but then I am not sure GLX itself is part of the
OpenGL standard. Well, in fact GLX must be. I had a look at
and found phrases like "X server extension API (GLX)" while GLw is not
referenced on this web site.
Anyway that's not the point. GLw is the standard way of integrating Xt/Motif
with OpenGL and is handy for porting legacy programs from sgi or Solaris to
There are two versions of GLw in Mesa 3.2. The "freeware" one and the "sgi"
one. Both are OpenSource. I am using the "sgi" one.
See also Mesa bug report 107534 on Sourceforge:
about building GLw.
Since it requires Motif and we aren't shipping Motif, we can't include it.
It's true you do not distribute Motif right now. But isn't this going to change
Anyway, this is not an issue:
1) One of the widgets does depend on Motif. The other is a plain Xt widget.
2) You do distribute LessTif with the PowerTools. Add GLw to the PowerTools,
not to the RedHat base distribution.
3) GLw does not require Motif to be built or used, but not to be dsitributed.
I mean, you may distribute it with OpenGL. It will be used by those who
have LessTif or Motif.
No, OpenMotif isn't open source, so we don't ship it in the distribution.
We're including it in Powertools.
As for GLw, it's too late to add new packages to Powertools for 7.0, but I'll do
it for 7.1.
libGLw added to Mesa-3.4.2-5 epoch 3 for XFree86 4.1.0