Qt + eclipse + mingw build C ++ development environment in Windows

Source: Internet
Author: User

1. Prepare the installed software

1. Eclipse IDE for C/C ++ developers: http://www.eclipse.org/downloads/
2. qt sdk for Open Source C ++ development on Windows: http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2010.04.exe

3. QT eclipse integration for C ++: http://qt.nokia.com/developer/eclipse-integration

4. mingw: This is already included in the qtsdk. When mingw is installed separately, an error occurs during compilation. Therefore, it is best to use the built-in qtsdk.

Ii. Installation

1. Eclipse: directly decompress the package.

2. Install the qt sdk. The installation path is D: \ CPP.

3. QT eclipse integration. You must select the eclipse and mingw \ bin directories during the installation process.

My directory is: Eclipse: D: \ CPP \ eclipse

Mingw \ bin: D: \ CPP \ QT \ 2010.04 \ mingw \ bin

3. Configuration

1. Environment Variable Configuration:

Modify:

Path =; D: \ CPP \ QT \ 2010.04 \ mingw \ bin; D: \ CPP \ QT \ 2010.04 \ mingw \ libexec \ GCC \ mingw32 \ 4.4.0

New:

Mingw_path = D: \ CPP \ QT \ 2010.04 \ mingw
C_include_path = % mingw_path % \ include; % mingw_path % \ Lib \ GCC \ mingw32 \ 4.4.0 \ include

Cplus_include_path = % mingw_path % \ include \ c ++ \ 4.4.0; % mingw_path % \ include \ c ++ \ 4.4.0 \ mingw32; % mingw_path % \ include \ c ++ \ 4.4.0 \ backward; % c_include_path %

LIBRARY_PATH = % mingw_path % \ Lib; % mingw_path % \ Lib \ GCC \ mingw32 \ 4.4.0

2.EclipseConfiguringQT.

Run for the first time, D: \ CPP \ Nokia \ eclipse \ Start. bat, open eclipse, and clickWindowÀPreferenceÀInstall/update-> QT

Click Add to add

Version: qt201004 (you can name it as needed)

Bin path: D: \ CPP \ QT \ 2010.04 \ QT \ bin

Include path: D: \ CPP \ QT \ 2010.04 \ QT \ include

After configuration, you can directly open eclipse.

Installation has been completed here!

Qt learning materials website collection: http://www.qteverywhere.com/learnqt

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.