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.
developer's header files and libraries for Microsoft's OpenGL
Install MS Visual Studio. Visual Studio will install the needed header
files and libraries.
Copy glut32.dll to
or Win 2K: winnt\system32
4. Copy glut32.lib to Program Files\ MS Visual Studio\VC98\lib\..
5. 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:
opengl32.lib glu32.lib glut32.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
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.