QT Creator and VS2010 configuration Glut Tool Library under Windows (QT 5.5.0)

Source: Internet
Author: User

First of all, download the Glut tool library required files, you can go to the OpenGL website to find, also can be downloaded in the following links
GLUT Library

VS2010 under Configuration glut

There are five files in the downloaded file, copy the *.h file to
C:\Program Files (x86) \microsoft Sdks\windows\v7.0a\include\gl
Copy two *.lib to \microsoft Visual Studio 10.0\vc\lib in the VS2010 installation directory
Copy two *.dll files to C:\Windows\SysWOW64 (64-bit operating system) or
C:\Windows\System32 (32-bit operating system) not really two address all test, at the beginning I was the test to System32 tune an afternoon did not tune clearly.
Then you need to add # include "Gl/glut.h" to the glut . cpp or . h file to use

QT configuration glut (qt5.5.0 msvc2010 version)

Copy the *.dll document to the same location as the method described above.
The *.h file is then placed in the QT installation directory \qt5.5.0\5.5\msvc2010\include\qtopengl, and a glut file is created, where it is written #include "glut.h", saved as no suffix file (here you can build a txt, Delete the suffix name after writing it).
Test the *.lib file to the QT installation directory \qt5.5.0\5.5\msvc2010\lib.
Add in the. Pro file
Qt+=opengl can
You can then use the GLUT . cpp or . h file to add #include "gl/glut.h"
If there is a problem, or there is an abnormal end of the program can be discussed in the comments

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

QT Creator and VS2010 configuration Glut Tool Library under Windows (QT 5.5.0)

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.