Compilation and Installation Instructions for OpenGL
A. Your account on the Windows PCs in the Software Engineering Lab: When you first log in, you may encounter several pop-up dialog windows giving error/warning messages. Ignore them by pressing "OK" or "Yes". You should be able to log in successfully. After the first time, you should be able to log in normally. Once you log on, look at the H: drive for your home directory. Note that you have a write permission only to your home directory .
B. Compilation Steps for Visual C++ (VC++) 2008 (similarly for other versions):
Typically these *.lib files can be automatically found except for "glew32.lib". Thus, for OpenGL projects that use GLEW (such as those involving GLSL) you only need to specify "glew32.lib" here; for other OpenGL projects you don't need to specify anything (except when the needed *.lib files cannot be automatically found during linking).
To compile, click on Build -> Build [project name]
(or Rebuild [project name]).
To run, click on Debug -> Start Without Debugging (or Ctrl+F5).
C. Installation on your own PC by yourself: You need to have the VC++ software installed (there is a free download version, VC++ 2008 Express Edition, available at this site ). You may also need to install the Microsoft Windows SDK package (e.g., Windows SDK for Windows Server 2008 and .NET Framework 3.5, freely available at this site ). You need to get the GLUT package (available from the course web site "http://cis.poly.edu/cs653/glut-3.7.6-bin.zip" ) and the GLEW package (available from the course web site "http://cis.poly.edu/cs653/glew-1.5.1-win32.zip" ). After unzipping the GLUT and GLEW packages, put the following files to the specified folders as below:
1. glut.h, glew.h, wglew.h: to the "include/gl" folder of either VC++ or SDK (e.g., "C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\gl", or "C:\Program Files\Microsoft Visual Studio 8\VC\include\gl\"), where the OpenGL header files "gl.h" and "glu.h" should already be there.
2. glut32.lib, glew32.lib: to the "Lib" folder of either VC++ or SDK (e.g., "C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib" or "C:\Program Files\Microsoft Visual Studio 8\VC\lib"), where the OpenGL library files "opengl32.lib" and "glu32.lib" should already be there.
3. glut32.dll, glew32.dll: to the systems folder (e.g., "C:\Windows\System32" for a 32-bit OS, or "C:\Windows\SysWOW64" for a 64-bit OS), where the OpenGL .DLL files "opengl32.dll" and "glu32.dll" should already be there.