FreeGLUT is an open-source library implementation of GLUT. These steps helped me install and use FreeGLUT with both Visual Studio 2012 and Visual Studio Express 2012 for Windows Desktop:
Download a stable release of FreeGLUT from its webpage.
Unzip the downloaded FreeGLUT file to a directory. Inside it, go to
VisualStudio\2012 directory and open the
freeglut.sln Visual Studio solution file. It opens in Visual Studio.
In the toolbar, choose the Solution Configuration as
Release. In Solution Explorer, right-click on the
freeglut project and choose
Build. It should build successfully.
Create a new directory named
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include Copy all the header files in
include\GL of FreeGLUT to this new directory.
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib
You want to use FreeGLUT to create OpenGL programs. After you build an OpenGL program, copy
lib\x86 to the directory that contains the exe file of this OpenGL program. Your program should now execute successfully.
Tried with: FreeGLUT 2.8.1, Visual Studio 2012, Visual Studio 2012 for Windows Desktop and Windows 8 x64