Qt OpenGL: Error: Unable to open include file: "Gl/glut. h": no such file or directory

Source: Internet
Author: User

I am using vs2008. I believe vs2005 should be similar to this step. The following message is always prompted during running:

Fatal error c1083: Unable to open include file: "Gl/glut. h": no such file or directory

At this time, perform the following operations:

Download the glut toolkit, and then:
1. Unpack the downloaded package and obtain 5 files.
2. Put the extracted glut. h In the C:/program files/Microsoft Visual Studio 9.0/VC/include folder.
3. Place the extracted glut. lib and glu32.lib in the C:/program files/Microsoft Visual Studio 9.0/VC/lib folder of the static function library.

4. Put the extracted glut. dll and glu32.dll In the System32 folder under the operating system directory.

5. Run again. If an error persists, change the header file name # include <Gl/glut. h> to # include <glut. h>.

6. The operation is successful now.
The glut Toolkit can be downloaded in my workspace. It has been uploaded!

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.