-   Linux - Software (
-   -   installing glut help needed (

jacksmash 10-17-2004 02:15 PM

installing glut help needed

I downloaded the glut....tar.gz file and untarred it.

Unfortunately I'm not sure what to do next! I did put the glut.h in my GL/ folder - but I still can't compile a simple program using glut.

Can anyone help me please??

wapcaplet 10-17-2004 09:47 PM

Been a while since I've used GLUT, but if I recall correctly you need to compile with the following options:

gcc -lGL -lGLU your_source_code.c

Also, be sure to include:

#include <GL/glu.h>
#include <GL/glut.h>

in your source code.

But a word of advice - GLUT sucks. I spent countless hours learning it only to find out it's extraordinarily limited and effectively useless for any real programming. If I had it to do over agin, I would have spent my time learning a GL interface that is practical in real-world apps. wxWidgets has one, and there are plenty of others if you look around a bit. Good luck!

All times are GMT -5. The time now is 11:25 AM.