Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

redhat 9 glut problems resolved - here's how

0 views
Skip to first unread message

Randy Fields

unread,
Apr 14, 2003, 9:33:08 PM4/14/03
to
From a clean install intel32 / Redhat 9, I noticed that my OpenGL
(Mesa) / GLUT applications were not linking:

/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `glXBindChannelToWindowSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `glXQueryChannelDeltasSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `glXChannelRectSyncSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `glXChannelRectSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `glXQueryChannelRectSGIX'
collect2: ld returned 1 exit status

To fix:

Make sure Mesa is installed. Two packages:

XFree86-Mesa-libGL-4.3.0-2
XFree86-Mesa-libGLU-4.3.0-2

Make sure GLUT is installed. Two packages:

glut-3.7-12
glut-devel-3.7-12

At this point I had to bring down the GLUT source RPM and rebuild it
(glut-3.7-12.src.rpm). On install (rpm -i) it will place the
necessary file in /usr/src/redhat/SOURCES. Untar the source. There
is a linux subdirectory in glut-3.7. Follow the instructions there on
how to build a shared library.

Run some of the sample programs to make sure everything is working.

cd /usr/lib/
cp libglut.so.3.7 libglut.so.3.7.orig
cp /usr/src/redhat/SOURCES/glut-3.7/lib/glut/libglut.so.3.7 .

This will fix the problem. Link flags for a very simple application
look like:

-L/usr/X11R6/lib -lXmu -lXi -lGLU -lGL -lglut

Incidentally, this also works with the nVidia hardware driver.

Good luck,
Randy

Rex Dieter

unread,
Apr 15, 2003, 9:46:12 AM4/15/03
to
Randy Fields wrote:

> From a clean install intel32 / Redhat 9, I noticed that my OpenGL
> (Mesa) / GLUT applications were not linking:


Please report the bug:
http://bugzilla.redhat.com/bugzilla/
so that redhat can have a chance to fix it.

-- Rex

0 new messages