Help -- runtime error

I am a newborn in Linux and openGL.
please help me…
my prog1.c==>

#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <X11/Xlib.h>
#include <GL/glx.h>

int main(int argc, char** argv)
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(250, 250);
glutInitWindowPosition(100, 100);
return 0;

my makefile==>

SOURCE= prog1.c
EXEC= prog1
CC = gcc


-lX11 -lGL -lGLU -lGLUT


Error message==>

GLUT: Fatal Error in prog1: OpenGL GLX extension not supported by display : : 0.0

The error message seems clear to me, you don’t have a properly configured OpenGL setup. I mean even from a user point of view, not only from a developer one’s. Get help from your distro boards to setup OpenGL for your hardware. Hint: you’re done when ‘glxgears’ shows up nice gears running at fast pace.

Good luck !

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.