Can not find glut.h!

I tried to compile gears.c under SuSe.
I have header file in /usr/X11R6/include/FL not in default GL.
and lib files in /usr/X11R6/lib.
I also changed the #include <GL/glut.h> to <FL/glut.h>
but I still can not complie it. The error message is :

gears.c:39: FL/glut.h: No such file or directory 

You need /usr/X11R6/include in your include path.

gcc … blah … -I/usr/X11R6/include

And that FL/glut.h should probably be GL/glut.h. Also make sure you have the glut development package

Still not works.

I run glxinfo, it showes many information and Opengl (Mesa package). But the head file and library are in mass.
/usr/include/GL/glu.h
/usr/include/GL/gl.h
/usr/X11R6/include/FL/glut.h

/usr/lib/libGL.so.1
/usr/lib/libGLU.so.1.3
/usr/lib/libglut.so.3

Is this the right set?

Are you sure abou that ‘…FL/glut.h’ part? That should be GL/glut.h. Also isn’t there glut.h file in /usr/include/GL? That’s also strange…

When you install fltk, you get an FL directory (usually in /usr/local/include) which contains a glut.h.

I’m not familiar with SuSE, but maybe it comes with fltk but not glut?

First FLTK (Fast Light Tool Kit) is a GUI library like GLUT, but more advanced.

The /FL/glut.h library is for glut emulation under FLTK and I read from the FLTK website that the glut.h header in the FL/glut.h is for use with the FLTK library only.

If you need to get a copy of the correct glut.h header, e-mail me and I can send it to you.

then place it here:
/usr/include/GL/glut.h for glut use

I would be careful not to get the two files crossed.

Originally posted by windhair:
[b]Still not works.

I run glxinfo, it showes many information and Opengl (Mesa package). But the head file and library are in mass.
/usr/include/GL/glu.h
/usr/include/GL/gl.h
/usr/X11R6/include/FL/glut.h

/usr/lib/libGL.so.1
/usr/lib/libGLU.so.1.3
/usr/lib/libglut.so.3

Is this the right set?[/b]

[This message has been edited by nexusone (edited 03-11-2003).]

[This message has been edited by nexusone (edited 03-11-2003).]

[This message has been edited by nexusone (edited 03-11-2003).]

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