Build the qt development environment in windows

Source: Internet
Author: User

1. Prepare the software. You can download the latest qt sdk and qt creator from qt.nokia.com,
Download two software installation packages:
Qt-win-opensource-4.6.4-mingw.exe
Qt-creator-win-opensource-2.4.1.exe
2.install qt-creator-win-opensource-2.4.1.exe, assuming that the specified installation to the D disk, D: \ Qt \ qtcreator-2.4.1
3.install qt-win-opensource-4.8.1-mingw.exe and install it on D: \ Qt \ 4.6.4

4. Set environment variables after installation
My computer-> properties-> advanced-> set Environment Variables
Add the directories D: \ Qt \ 4.6.4 \ bin and D: \ Qt \ qtcreator-2.4.1 \ mingw \ bin to the system variable PATH

Create the following two variables:
QMAKESPEC = D: \ Qt \ 4.6.4 \ mkspecs \ win32-g ++
QTDIR = D: \ Qt \ 4.6.4
5. Modify the qt creator build and run configuration items
Method:
Open the qt creator selection tool option and select build and run on the left-> qt version --> Add
Qmake path: d: \ qt \ 4.6.4 \ bin \ qmake.exe

Related Article

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.