Prerequisite: - Visual c++ or other c++ compiler - OpenGL properly installed e.g. freeglut you may need freeglut.dll to be at the same folder with the exe build. - QT framework 4.7 or above qmake -project add the following two lines in the .pro file generated: CONFIG += console debug QT += opengl nmake or make