Compiling OpenGL Programs on Lab Machines (e.g., MLH 301):

Suggested Command Line to Compile on Lab Machines:

gcc -o myProg myProg.c -I /usr/X11R6/include/ -L /usr/X11R6/lib64/ -lglut -lGL -lGLU -lX11 -lXmu -lXi -lm

You should just be able to copy/paste. The only changes you need to make are:


NOTE: If you are compiling at home, you may need to change /usr/X11R6/lib64 to /usr/X11R6/lib. It turns out the lab machines in MLH 301 have both 32- and 64-bit versions of OpenGL and GLU, but only a 64-bit version of GLUT.


Last Modified: Friday, July 22, 2005

Chris Wyman (cwyman@cs.uiowa.edu)