Can someone help me with a step by step tutorial on how to install GLUT on a Windows 7 64 bit system for MS VS2010?
Install GLUT If you do not have GLUT installed on your machine you can download it from: http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip (or whatever version) GLUT Libraries and header files are • glut32. lib • glut. h.
The OpenGL Utility Toolkit (GLUT) is a library of utilities for OpenGL programs, which primarily perform system-level I/O with the host operating system. Functions performed include window definition, window control, and monitoring of keyboard and mouse input.
Copy glut.h to [MSVC install directory]\include\GL\glut.h. The MSVC install directory is usually C:\Program Files\Microsoft Visual Studio 10.0\VC on 32-bit Windows. If your Windows is 64-bit, replace C:\Program Files\ with C:\Program Files (x86).
Copy glut32.dll to C:\Windows\System32 if on 32-bit Windows or C:\Windows\SysWOW64 if on 64-bit Windows. Copy glut.h to [MSVC install directory]\include\GL\glut.h. The MSVC install directory is usually C:\Program Files\Microsoft Visual Studio 10.0\VC on 32-bit Windows.
If your Windows is 64-bit, replace C:\Program Files\ with C:\Program Files (x86). Copy glut32.lib to [MSVC install directory]\lib\glut32.lib.
Your GLUT download will come with .h files, .lib files, and .dll files. Place the .h files in: Note that the GL folder does not initially exist.
Your GLUT download will come with .h files, .lib files, and .dll files. Place the .h files in:
C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/include/GL
Note that the GL folder does not initially exist. You have to create it. You may name it something else if you want. When you include the GLUT header file in your project, you will just have to type:
#include <GL/glut.h>
Or whatever you named the folder you put glut.h in.
Next, you have to place the .lib files in the following path:
C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/lib
And when you create your project, make sure you add the .lib files to your Additional Dependencies (Linker->Input->Additional Dependencies).
Finally, put the .dll files in:
C:/Windows/SysWOW64
This is the folder where 32-bit .dlls are located. System32 contains the 64-bit .dlls. You can also put the GLUT .dlls in System32, if you want to feel safe.
And that's it!
Some people may suggest putting all these files directly into your project folder. You should probably not do this, because for every other project you create with GLUT, you will have to copy those files into it as well. The locations I have mentioned make them universally available to your applications.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With