First of all, download the Glut tool library required files, you can go to the OpenGL website to find, also can be downloaded in the following links
GLUT Library
VS2010 under Configuration glut
There are five files in the downloaded file, copy the *.h file to
C:\Program Files (x86) \microsoft Sdks\windows\v7.0a\include\gl
Copy two *.lib to \microsoft Visual Studio 10.0\vc\lib in the VS2010 installation directory
Copy two *.dll files to C:\Windows\SysWOW64 (64-bit operating system) or
C:\Windows\System32 (32-bit operating system) not really two address all test, at the beginning I was the test to System32 tune an afternoon did not tune clearly.
Then you need to add # include "Gl/glut.h" to the glut . cpp or . h file to use
QT configuration glut (qt5.5.0 msvc2010 version)
Copy the *.dll document to the same location as the method described above.
The *.h file is then placed in the QT installation directory \qt5.5.0\5.5\msvc2010\include\qtopengl, and a glut file is created, where it is written #include "glut.h", saved as no suffix file (here you can build a txt, Delete the suffix name after writing it).
Test the *.lib file to the QT installation directory \qt5.5.0\5.5\msvc2010\lib.
Add in the. Pro file
Qt+=opengl can
You can then use the GLUT . cpp or . h file to add #include "gl/glut.h"
If there is a problem, or there is an abnormal end of the program can be discussed in the comments
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
QT Creator and VS2010 configuration Glut Tool Library under Windows (QT 5.5.0)