View Full Version : glut in Visual Studio 2012

01-17-2013, 06:01 PM
Hi everyone,
I'm new at openGL. I want to install glut on it, I tried everything but I couldn't install it. My windows is 64 bit and I use visual studio 2012. However I still get this error:" Cannot open include file: 'GL/glut.h': No such file or directory". How can I install glut?

01-17-2013, 06:25 PM
First of all you have to put the file glut.h in the folder GL of your project.
Usually, if the project name is AAA, you put in in AAA/AAA/GL, or simply just find your main file and then create a folder there name it GL and copy glut.h in it.

Then, go to Tools>Options>VC++ Folders .
There you have to add the file glut.h to the include.
Do the same thing for the 2 other glut files (put one int the binary and the other one in the bin part)

04-18-2013, 09:33 AM
The above method of holyll did not work for me and googled for it,
I got my problem solved following the link below:

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&sqi=2&ved=0CFQQFjAD&url=http%3A%2F%2Fweb.eecs.umich.edu%2F~sugih%2Fcou rses%2Feecs487%2Fglut-howto%2F&ei=zBtwUYvtL4SYtQbgiYDgCg&usg=AFQjCNH4VY48xuzNY0xjT0ZDhhhO8tPqkQ&sig2=c39P_L0YJKP7jaB1mhF38A&bvm=bv.45373924,d.d2k

04-23-2013, 04:50 AM
Here's the video on how to install Glut in visual studio 2012, it solved my problem. Hope it helps :)


and sorry for the dot, cannot post links..

06-10-2013, 10:25 PM
Mr.EverEast, Thanks for the useful info, been trying to fix this issue for 4 hours, atlast your suggestion saved me :) thanks.