rg200
07-09-2001, 11:52 PM
I have been trying to compile the following program:
#include <GL/glut.h>
int main()
{
}
with the command:
gcc -L/usr/X11R6/lib testprog.c -lX11 -lGL -lGLU -lglut -lm
and I get the following error message:
/usr/lib/libglut.so: undefined reference to `XGetExtensionVersion'
/usr/lib/libglut.so: undefined reference to `XFreeDeviceList'
/usr/lib/libglut.so: undefined reference to `XQueryDeviceState'
/usr/lib/libglut.so: undefined reference to `XListInputDevices'
/usr/lib/libglut.so: undefined reference to `XFreeDeviceState'
/usr/lib/libglut.so: undefined reference to `XOpenDevice'
/usr/lib/libglut.so: undefined reference to `XmuLookupStandardColormap'
/usr/lib/libglut.so: undefined reference to `XSelectExtensionEvent'
collect2: ld returned 1 exit status
I am running Debian Potato, Kernel 2.4.2, XFree86 version 4.0.2
When I run openGL programs compiled on my old Red Hat 6.2 system I get:
GLUT: Fatal Error in oldhello: OpenGL GLX extension not supported by display: :0.0
Doing a "locate -i glx" led me to the command "glxinfo" which gives the same sort of bad news:
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
0x21 24 tc 0 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
0x22 24 dc 0 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
How to I get the missing GLX extension for Xlib? DO I need to get a newer version of XFree86? Please help!
Thanks in advance,
Russell
#include <GL/glut.h>
int main()
{
}
with the command:
gcc -L/usr/X11R6/lib testprog.c -lX11 -lGL -lGLU -lglut -lm
and I get the following error message:
/usr/lib/libglut.so: undefined reference to `XGetExtensionVersion'
/usr/lib/libglut.so: undefined reference to `XFreeDeviceList'
/usr/lib/libglut.so: undefined reference to `XQueryDeviceState'
/usr/lib/libglut.so: undefined reference to `XListInputDevices'
/usr/lib/libglut.so: undefined reference to `XFreeDeviceState'
/usr/lib/libglut.so: undefined reference to `XOpenDevice'
/usr/lib/libglut.so: undefined reference to `XmuLookupStandardColormap'
/usr/lib/libglut.so: undefined reference to `XSelectExtensionEvent'
collect2: ld returned 1 exit status
I am running Debian Potato, Kernel 2.4.2, XFree86 version 4.0.2
When I run openGL programs compiled on my old Red Hat 6.2 system I get:
GLUT: Fatal Error in oldhello: OpenGL GLX extension not supported by display: :0.0
Doing a "locate -i glx" led me to the command "glxinfo" which gives the same sort of bad news:
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
0x21 24 tc 0 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
0x22 24 dc 0 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
How to I get the missing GLX extension for Xlib? DO I need to get a newer version of XFree86? Please help!
Thanks in advance,
Russell