Installing OpenGL & GLUT on Windows 98, NT
and Win 2K
the OpenGL run-time libraries
OpenGL run-time libraries from Microsoft are included in Windows 98, NT
and Win 2K. The files are opengl32.dll and glu32.dll.
You can install
SGI's MMX accelerated OpenGL for Windows. Here's the link: http://www.berkelium.com/OpenGL/sgi-opengl.html
the license agreement and download opengl2.exe.
The installer will copy the following files opengl.dll and glu.dll to windows\system.
If you have NT or Win 2K the files will be copied to windows\system32.
developer's header files and libraries for Microsoft's OpenGL
Install MS Visual Studio. Visual Studio will install the needed header
files and libraries.
developer's header files and libraries for SGI's OpenGL
Copy opengl.lib and glu.lib from SGIís directory (usually OGLSDK\lib) to
Program Files\ MS Visual Studio\VC98\lib\.
Copy gl.h and glu.h from SGIís directory (usually OGLSDK\include) to Program
Files\ MS Visual Studio\VC98\include\.
There are two sets of files, one for Microsoft's OpenGL (files with 32
in filenames) and one for SGI's OpenGL (no 32).
Copy glut*.dll to
or Win 2K: winnt\system32
glut*.lib to Program Files\ MS Visual Studio\VC98\lib\.
Copy glut.h to Program Files\ MS Visual Studio\VC98\include\gl.
an OpenGL/GLUT program
Download Ed Angel's code examples from ftp://ftp.aw.com/cseng/authors/angel/intcg/
Start with gasket.c
Open Visual C++ and create a new project (File->New-> projects)
Select ìWin32 Console Applicationî and name your project gasket or whatever
you want. Click OK
Select ìAn empty projectî and click finish.
Insert project files. Project->Add to Project-> files. Find, select gasket.c
Select ìLinkî tab. In the Object\libraries field, type either of
Microsoft's OpenGL: opengl32.lib glu32.lib glut32.lib
SGI's OpenGL: opengl.lib glu.lib glut.lib
Comment out the line #include <GL\gl.h>. The header file glut.h includes
Compile your program.
Note 0: If
you have problems compiling Angel's programs, do the following:
the line long random( ), find all occurrences of random( ) and change them
to rand( ). Ignore the warning Warning: const 'double' to 'float', may
lose information. If you find that warning annoying do the following:
line glColor3f( 1.0, 0.0, 0.0 ) and change it to glColor3f( 1.0f, 0.0f
For users of SGI's OpenGL. You must comment out the following lines in
the header file glut.h
comment (lib, "opengl32.lib") /* link with Microsoft OpenGL lib */
comment (lib, "glu32.lib") /* link with OpenGL Utility lib */
comment (lib, "glut32.lib") /* link with Win32 GLUT lib */
comment (lib, "opengl.lib") /* link with SGIís OpenGL lib */
comment (lib, "glu.lib") /* link with SGIís OpenGL Utility lib */
comment (lib, "glut.lib") /* link with SGIís Win32 GLUT lib */
If you don't
make the changes, you'll get linking errors.
Note 3: Getting
rid of the console window.
Go to Project->Settings->Link->Project Options
In the Project Options field find:
(it's one of the last lines)
error messages and output will be lost (unless redirected) if you get rid
of the console window.
1. Copy mui.lib to <drive>:\Program
Files\Microsoft Visual Studio\VC98\Lib\
2. Create a folder named "mui" and add the file:
Copy the folder "mui" to <drive>:\Program Files\Microsoft
3. To use mui in your programs, you need to add
mui.lib to your OpenGL/GLut project (Project->Settings->Link->Object/library
modules ) and the header file mui.h to your source code.
If you have
problems send e-mail to firstname.lastname@example.org
I wrote these
instructions based on a document written by
MTS, Customer Education
Silicon Graphics, Inc
I lost the
link to the original document, so I can't include it.