Glut64-bit operating system installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.