Deborah R. Fowler
Using OpenGL on Linux with
Freeglut
Posted Oct 7 2015
Update Oct 8 2015
Currently
in
Monty we are using glut on Linux. This has been tested on two
laptop linux platforms and will be tested in Monty when the
image moves to freeglut.
If you do not have freeglut already installed:
- download by clicking
Freeglut3.0.0 file from http://freeglut.sourceforge.net/index.php#download
- Extract the files from freeglut-3.0.0.tar.gz
using tar -xvf freeglut-3.0.0.tar.gz
- cd freeglut-3.0.0
- Install using yum install freeglut-devel (.configure
did not work) http://www.prinmath.com/csci5229/misc/install.html
(Please ignore the instructions on this site for Windows -
they reference the older glut libraries that are no longer
supported)
If you have freeglut already installed:
To use ensure you have #include <GL/glut.h>
To compile see compiling table for commands, for example
g++ OpenGL_Step1_Window.cpp -lGL -lGLU -lglut