Tuesday, May 25, 2010

Installation of GLUT and Visual Studio 2010 settings

First thing which you need to do is install the GLUT library.

You can download it from here
http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip

In Future, there will be new version of the GLUT library, then you should be able to download the new ones from here.

Once you unzip it, you will get following files. Picture is attached below;







Now you need to copy some of these files to a different location as following:

I am using Visual Studio 2010 and Windows 7 for the development.

glut32.dll to C:\Windows\system
glut32.lib to C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib
glut.h to C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\GL

Note: there was no GL folder there, I had to create one.

Now Link your Project with opengl32.lib, glut32.lib, glu32.lib by doing following steps

Go To Project Property Page > Linker >Input >Additional

Picture Attached to give you a more fair idea.



1 comment: