In order to run GLUT programs, you will need to install GLUT
software as prescribed in the Installation Instructions below.
Installation Instructions
Download precompiled GLUT binaries for Solaris Operating
Environment, SPARC Platform Edition (16.5 MB). Save the GLUT
download file to a local directory, then unzip and untar the
downloaded file.
% cd sparc_solaris
% gunzip -c glut_data-3.7.tar.gz | tar xvpf -
Optionally remove the glut*.tar.gz file to save
space
Running GLUT Examples
The pre-compiled GLUT example programs are located in the
'progs' subdirectory. You can run the demos by simply
entering the name of the program. For example:
% cd sparc_solaris/glut-3.7/progs
% ./demos/atlantis/atlantis
Rebuilding the GLUT Examples
To rebuild the examples, go to the subdirectory which contains
the program and enter make depend, and then enter
make. For example:
% cd
sparc_solaris/glut-3.7/progs/demos/atlantis
% make depend
% make
Building GLUT library and GLUT applications on
Solaris software
To compile GLUT from the original GLUT source distribution
using Sun ONE
Studio's C compiler:
% cd my_glut_directory
% mkmkfiles.imake
% make -i
To compile an GLUT example using gcc, the
makefiles being used have to be modified. Replace
cc references with gcc and remove compile
flags -xF, -Wa and -cg92.
Example output compiling demo opengl_logo: