
Installing the OpenGL run-time libraries
Optional
You can install SGI's MMX accelerated OpenGL for Windows. Here's the link: http://www.berkelium.com/OpenGL/sgi-opengl.html
Click on the license agreement and download opengl2.exe.Run 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.Run the demos.
Installing developer's header files and libraries for SGI's OpenGL
Installing glut
Get glut-3.7.2-dlls.zip (104 Kbytes) or the latest glut version from http://www.xmission.com/~nate/glut.html
Win 98: windows\systemNT or Win 2K: winnt\system32
Building an OpenGL/GLUT program
1. Download Ed Angel's code examples from ftp://ftp.aw.com/cseng/authors/angel/intcg/
Project->Settings. Select ìLinkî tab. In the Object\libraries field, type either of these:For Microsoft's OpenGL: opengl32.lib glu32.lib glut32.libFor SGI's OpenGL: opengl.lib glu.lib glut.lib
Note 0: If you have problems compiling Angel's programs, do the following:
Comment out 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:
Find the line glColor3f( 1.0, 0.0, 0.0 ) and change it to glColor3f( 1.0f, 0.0f ,0.0f ).
#pragma comment (lib, "opengl32.lib") /* link with Microsoft OpenGL lib */#pragma comment (lib, "glu32.lib") /* link with OpenGL Utility lib */#pragma comment (lib, "glut32.lib") /* link with Win32 GLUT lib */
#pragma comment (lib, "opengl.lib") /* link with SGIís OpenGL lib */#pragma comment (lib, "glu.lib") /* link with SGIís OpenGL Utility lib */#pragma comment (lib, "glut.lib") /* link with SGIís Win32 GLUT lib */
Note 3: Getting rid of the console window.
/subsystem:console (it's one of the last lines)
/subsystem:windows /entry:mainCRTStartup
Installing MUI
1. Copy mui.lib to <drive>:\Program Files\Microsoft Visual Studio\VC98\Lib\
If you have problems send e-mail to gvargas@castor.csustan.edu
Credits
I wrote these instructions based on a document written by
David Marsland
MTS, Customer Education
Silicon Graphics, Inc
Guillermo Vargas