OpenGL Installation

erectboboSoftware and s/w Development

Dec 14, 2013 (3 years and 7 months ago)

95 views

OpenGL Installation:


To run Computer Graphics programs with OpenGL we need to include only one directive

#include <GL/glut.h>



So the environment has to have all files distributed and registered.


In order to do that we need:


1: Download

glut
-
3.7.6
-
src.zip (4.76 MB)


GLUT source code distribution (including a whole slew of great example programs + data).


2. Unzip

it



Microsoft Developer Studio 6 workspace and project files have



been included in the source code distribution.



Additional workspace files have been included in the progs, test



and lib directories to build the progs, tests and libs respectiv
ely.



3. COMPILING/INSTALLATION (no more than 5 min):






To build the glut dll:



a. First, open Microsoft Developer Studio.




b. Then, select File
-
> Open Workspace and find the glut.dsw file



in the file dialog and do
uble
-
click on it.






C: Finally, select Build
-
> Build glut32.dll.



When the build is finished, it will copy:



glut32.dll to %WinDir%
\
System,


in my laptop case was
C:
\
Windows/System32



glut32.lib to $(MS
DevDir)
\
..
\
..
\
VC98
\
lib, and


in my laptop case was C:
\
Program
Files
\
Microsoft Visual Studio
\
VC98
\
Lib



glut.h


to $(MSDevDir)
\
..
\
..
\
VC98
\
include
\
GL.


in my laptop case was C:
\
Program
Files
\
Microsoft Visual Studio
\
VC98
\
Include
\
GL