How to Establish the QT development environment in Windows

Source: Internet
Author: User
Tags intel pentium

In Windows XP, you can also easily develop QTProgramThere are two main development environments: 1. qt4 + vs2005 (both vs2003 and vs2008) + QT integration for vs2005. 2. qt4 + mingw + eclipse integration.
I personally recommend the second solution.
Note: You can obtain a complete environment, including the gdb debugging function, according to the following installation process and configuration of each software version. This solution may cause errors during various installation methods circulating on the Internet.

Package list and version:
(Note: Only the following combinations can be installed and used successfully. Other combinations are not tried. If necessary, try it by yourself .)
Eclipse-cpp-europa-winter-win32.zip
Jdk-1_5_0_15-windows-i586-p.exe
Qt-eclipse-integration-win32-1.4.0.exe
Qt-win-opensource-4.4.0-mingw.exe
Mingw5.1.3 (Note: You must select previous when installing this version. Due to the new version, an error will be reported when compiling the debug library of qt4.4 .)
Gdb-6.3-2

Operating System: Windows XP Professional SP2 has installed various latest System Patches
Hardware: Intel Pentium dual e2140 + 1 GB memory

Installation preparation:
1. Download the above files.
2. installation sequence: mingw, GDB (installation directory installed in mingw is selected during installation), JDK installation (skipped), eclipse installation (C ++ version ),
Install QT and install QT-eclipse-integration (the installation directories of mingw and QT must be filled in during the process ). No special attention is paid to the installation process.
3. Set system environment variables.
In this step, it is best to add the lib and bin directories of minw to the path; Add the lib and bin directories of QT to the path.
Add mingw and QT lib to lib (if there is no Lib, create one );
Mingw and QT include are added to include (if there is no include, create one );

4. In the Start Menu \ All Programs \ QT by trolltech v4.4.0 (opensource), find qt4.4.0 (build debug libraries) and click to execute it. Normally, this step can successfully compile the debug library. This step takes a long time. Please wait.
5. Start eclipse and make the following changes:
(1) Go to eclipse and select Window> preferences ]. Select the installation path for QT.
(2) Select C/C ++> debug> common source lookup source ].
(3) Click Add on the right ...], Select path mapping ]. Click the added Path mapping, [edit ...], Then [Add ...], Enter \ mingw \ C in the compilation path, and enter c: \ in the local file system path to solve the problem. If your project is on another disk, we recommend that you add it here.

The entire development environment has been set up.

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.