Configuration of 64-bit Win7 OpenGL-walkandthink Column-Blog channel-csdn.net
http://blog.csdn.net/walkandthink/article/details/14105003
Recently, due to the need, the server on the lab has been configured under OpenGL to more freely draw the graphics, according to the previous steps, after the configuration is always compiled do not pass, always prompt glut.dll not found errors. Carefully review the next to understand that the original OpenGL currently only 32-bit version, and the lab server is a 64-bit version, in the past only need to put the DLL file into the C:\Windows\System32 below it, but on the 64-bit machine, The call to the 32-bit DLL directory is not this, but C:\Windows\SysWOW64 this folder, so, follow the previous steps to sit down, only in the end will be Glut.dll, Glut32.dll into the SysWOW64 folder below it.
Glut related files can go to: http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip to download, download the completion of the extract can get five files, and then will Glut.lib , glut32.lib file into the Vc\lib folder under the VS directory, put Glut.h into the Vc\include directory, or create a new folder named GL (uppercase and lowercase) in the Vc\include directory, and the former is # include in the reference <glut.h> or it becomes #inlcude<gl/glut.h>. At this point, the 64-bit OpenGL configuration is all over. Finally, attach a test code to see if your configuration works correctly.
Here is the code for the test, and the correct result should be:
The test code is as follows:
1#include <GL/glut.h>2 3 voidMydisplay (void) 4 { 5 glclear (gl_color_buffer_bit); 6GLCOLOR3F (0.0f,1.0f,0.0f); 7GLRECTF (-0.5f,-0.5f,0.5f,0.5f); 8 Glflush (); 9 } Ten One intMainintargcChar*argv[]) A { -Glutinit (&argc,argv); -Glutinitdisplaymode (glut_rgb|glut_single); theGlutinitwindowposition ( -, -); -Glutinitwindowsize (640,480); -Glutcreatewindow ("first_gl!"); - Glutdisplayfunc (Mydisplay); + Glutmainloop (); -}
Glut64-bit operating system installation