VS2010 configuration Glew under Win7 system

Source: Internet
Author: User

Original from Watercress http://www.douban.com/note/338067148/

Glew should be the full name of the OpenGL Extension Wrangler Library, literal translation should be called OpenGL Extension Library, here the Wrangler originally meant to have the meaning of Wrangler, here Why add the word is a little unclear. About her use, because it is the first time to use, understanding is not particularly thorough. There is a message on the Internet:

"Glew is a cross-platform C + + extension library, based on the OpenGL graphics interface. Friends using OpenGL know that Windows currently only supports OpenGL1.1 functions, but OpenGL has now grown to more than 2.0, to use these advanced features of OpenGL, you must download the latest extensions, in addition, different graphics companies, will also publish some only the home card support extension functions, you want to use these functions, you have to find the latest glext.h, With the Glew extension library, you'll never have to worry about finding a function interface, because Glew can automatically identify all the OpenGL advanced extensions supported by your platform. That is, you can use all the functions of GL,GLU,GLEXT,WGL,GLX as long as you include a glew.h header file. Glew supports various operating systems currently in vogue (including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris). "

But what feels so useful is that OpenGL should be brought in, why do you need an extra installation?

Glew:
Downloaded on opengl website: http://www.opengl.org/sdk/libs/
32-bit: http://sourceforge.net/projects/glew/ Files/glew/1.9.0/glew-1.9.0-win32.zip/download
64-bit: https://sourceforge.net/projects/glew/files/glew/1.9.0/ Glew-1.9.0-win64.zip/download
Here i download 64-bit, in fact, the concept of 32-bit and 64-bit I am particularly vague, general configuration I have configured 32-bit, here want to configure 64 bit. The configuration for Glew should be the same as glut. (The 64-bit file was found to be the same as the 32-bit, but the 64-bit compilation was unsuccessful and the 32-bit compilation succeeded.)

After extracting these folders:



1. Put the. h header file in the Include folder into C:\Program files (x86) \microsoft Sdks\windows\v7.0a\include\gl
2. Put the. lib file in the Lib folder into C:\Program files (x86) \microsoft Visual Studio 10.0\vc\lib (this my installation path)
3. Place the two. dll files in the Bin folder into the C:\Windows\SysWOW64

Glew Test Program: (Program debugging, hope to pass successfully, found that the generation of direct failure%>_<%)



Put the two. dll files in the 3rd step into C:\Windows\system.
To change all the files to 32-bit, the compilation succeeds, it does not seem to compile 64-bit.

VS2010 configuration Glew under Win7 system

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.