Wednesday, January 21, 2009

OpenGL Installation With Visual C++

Visual Studio 6
all DLL file in SYSTEM
{
Glut32.dll
Opengl32.dll
Glu32.dll
}

all Include Folder's in Include Folder in VC++
{
GL
Mui
}

all Lib file's in Lib folder in VC++
{
Glaux.lib
Glu32.dll
Opengl32.lib
Glut32.lib
}

Visual Studio 2005

Windows comes with OpenGL, and Visual Studio comes with the OpenGL libraries, but neither of them comes with GLUT. Get the newest version of GLUT here: GLUT 3.7.6 for Windows.

Put the following files in the following locations:

Install Glut into the following directories:

glut32.dll -> C:\Windows\System or C:\WinNT\System
glut32.lib -> C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib
glut32.h -> C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\gl

Use Visual Studio's menu Project options ( Project --> Properties)

The Property Page dialog will open. Once it appears, do the following:

Select the Configuration combo box, select All Configuration

In the left pane, select the linker subtree and then click the Input option. Add the following code to the
Additional Dependencies text in the right pane.

Copy and Paste: opengl32.lib glu32.lib glut32.lib



No comments: