Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install GLUT on a 64 bit windows 7 for MS VS2010? [closed]

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?

like image 333
Donnovan Avatar asked Feb 10 '12 20:02

Donnovan


People also ask

Where can I get glut H?

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.

What is the purpose of glut h file?

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.

Where do I put glut files in Visual Studio?

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).

Where is glut32 DLL in Windows 10?

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.

Where can I find glut32 in MSVC?

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.

What files come with my glut download?

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.


1 Answers

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.

like image 163
kevintodisco Avatar answered Sep 21 '22 19:09

kevintodisco