Qt4.8 three programming environments built under Windows

Source: Internet
Author: User
Tags visual studio 2010

Qt4.8 three programming environments built under Windows

QT version is divided according to different graphics system, currently divided into four versions: Win32 version, for the Windows platform, X11 version, suitable for the use of the X system of various Linux and UNIX platforms; Mac version, suitable with Apple macosx;embedded version, Suitable for Linux platforms with framebuffer (frame buffer).

Qt-embedded and Qtopia

Qt in the first time, for Linux and UNIX systems, only built on Xlib on the X11 version. However, with the application of Linux operating system in the embedded field, QT introduced the embedded version qt-embedded (Qte). Because the embedded hardware environment is often difficult to run a large x server, QT embedded version skipped the Xlib and Xserver direct operation frame buffer, can be greatly improved in speed and volume.

Qtopia was originally an open source project on SourceForge.net, full of QT palmtop Environment, a desktop-like application built on the QTE, including PDA and mobile phones and other handheld systems such as phone book, calendar, etc. Now Qtopia has become one of Trolltech's flagship products, providing a complete graphical environment for both PDA and mobile phones based on the Linux operating system.

The relationship between Qte and Qtopia deserves special attention. Prior to version 4, QTE and Qtopia were two different sets of programs, Qte was the base Class library, and Qtopia was a series of applications built on top of QTE. But starting with version 4, Trolltech qte into Qtopia and launched a new Qtopia4. In this version, the original qte is called Qtopia Core, as the core of the embedded version, can be used in conjunction with Qtopia or standalone. The original Qtopia is divided into several layers, the core application framework and plug-in system is called Qtopia Platform, the upper layer of the application according to different target users are divided into different packages, such as Qtopai Pda,qtopia Phone.

There is a need to note that Qtopia has not been out of the 3.x version, directly from version 2.20 to the 4.x version, I think this is mainly to integrate Qte, and QT version to keep in sync.

Simply put, QTE is the underlying class library of the embedded version, and the QT application is written based on this class library. After the QTE4 version was renamed Qtopia Core, it is not the same as Qtopia, just a class library, and no desktop environment, like our usual qtopia-core-opensource-src-4.3.5.

And with Qtopia desktop environment is qtopia-opensource-src-4.x.x, directory under a few more files.

Now the common Qtopia is 1.7.0 version and 2.2.0 version, but they use the QTE is 2.x version, we use 4.3.5 version of the program can not run on it, and now about QTOPIA4 introduction is not many, with said Qtopia4 no PDA version, There is a mobile version, but the interface is not Qtopia2 good

Learn about the supported platforms, compilers, and debuggers from the QT website:


Http://qt-project.org/doc/qtcreator-3.0/creator-debugger-engines.html

(Home | Docs | Qt Creator 3.0 | Debuggingand Analyzing | Setting up Debugger)

This article mainly explains QT in the Windows operating system under the three kinds of programming environment constructs.

Scheme

Programming environment

Compiler

Debugger

One

Qt Creator

MinGW GCC

Gdb

Two

Qt Creator

Microsoft Visual C + + Compiler

Debugging Tools for Widows

Three

Microsoft Visual Studio 2010

VS2010 comes with

VS2010 comes with

Note that the QT Installer and compression package mentioned in the following scenarios can be downloaded to http://download.qt.io/official_releases/on the website.

QT compiler MinGW:
http://download.qt.io/development_releases/prebuilt/mingw_32/
QT Debugger GDB:
Http://wiki.qt.io/QtCreatorBuildGdb
http://download.qt.io/development_releases/prebuilt/gdb/


Scenario One: Qt4.8.5for Windows (Qt creator+mingw)

1, install the compilation environment Qt-creator-win-opensource-3.0.0.exe first. Use the default path, C:\Qt\qtcreator-3.0.0.

2. Unzip the compiler tool Mingw-gcc440_1.zip. Please copy the inside folder MinGW to the path C:\QT\MINGW.

3. Unzip the debugger tool Gdb-7.5-i686_winxp.zip. (http://download.qt.io/development_releases/prebuilt/gdb/windows-xp/)

Please copy the inside folder Gdb-7.5-i686_winxp to the path C:\Qt\gdb-7.5-i686_WinXP.

4, the final installation library file Qt-win-opensource-4.8.5-mingw.exe.

The default installation path for QT is C:\Qt\4.8.5, which is proposed to be modified to C:\Qt\4.8.5_MinGW, which is intended to be separate from other QT repository areas. Avoid overwriting and destroying other QT versions that have been installed. (Note: The QT library that supports the Windows environment has mingw,vs2010,vs2008, etc.)

When the installation prompts find installed MinGW, the user points to the path C:\QT\MINGW.

5. After completing the steps above, perform the desktop shortcut qt Creator.

(1) Enter the software----menu, tools----Build and run manual settings,->QT version, add qmake path C:\Qt\4.8.5_MinGW\bin\qmake.exe.

(2) Build and run Build kit (KIT) with the tools---------------------------

Manager---Edit, browse, point to Debugger path C:\Qt\gdb-7.5-i686_WinXP\gdb-i686-pc-mingw32.exe.

The QT version is selected as "Qt 4.8.5 (4.8.5_MINGW)".

(3) Go to software----menu, tools----Build and run manual settings, compiler--------add MinGW, and set the appropriate path. Compiler path C:\Qt\mingw\bin\gcc.exe.

6. Accelerate QT compilation speed skills.

QT Default compilation is very slow, you can use the multi-core compilation method to improve speed.

Replace the Mingw32-make.exe with Jom.exe when you enter the software and open the project, such as build and run, projects, toolbars, and so on.

*************************

If it is qt4.8.6/qt4.8.7 for Windows (Qt Creator+mingw), the situation differs from Qt4.8.5. For example, the Qt4.8.6 environment is built as follows:

1, first install the IDE compilation environment Qt-creator-opensource-windows-x86-3.1.1.exe. Use the default path, C:\Qt\qtcreator-3.1.1.
2. Unzip the MinGW compiler tool i686-4.8.2-release-posix-dwarf-rt_v3-rev3.7z. (http://download.qt.io/development_releases/prebuilt/mingw_32/)

Please copy the inside folder MinGW to the path C:\QT\MINGW32.
3, the final installation library file Qt-opensource-windows-x86-mingw482-4.8.6-1.exe.
The default installation path for QT is C:\Qt\4.8.6, which is proposed to be modified to C:\Qt\4.8.6_MinGW, which is intended to be separate from other QT repository areas.
Avoid overwriting and destroying other QT versions that have been installed. (Note: The QT library that supports the Windows environment has mingw,vs2010,vs2008, etc.)
When the installation prompts find installed MinGW, the user points to the path C:\QT\MINGW32.
4. After completing the steps above, perform the desktop shortcut qt Creator.
(1) Enter the software----menu, tools----Build and run manual settings,->QT version, add qmake path C:\Qt\4.8.6_MinGW\bin\qmake.exe.
(2) Go to software----menu, tools----Build and run manual settings, compiler--------add MinGW, and set the appropriate path.
Compiler path C:\qt\mingw32\bin\g++.exe.
(3) Go to Software---menu---Tools----build and run the debugger, manual settings, add MinGW Debugger, and set the appropriate path.
Debugger path C:\Qt\mingw32\bin\gdb.exe.
(4) Build and run Build kit (KIT) with the tools-------------------------------
The QT version is selected as "Qt 4.8.6 (4.8.6_MINGW)".
5. Accelerate QT compilation speed skills.
QT Default compilation is very slow, you can use the multi-core compilation method to improve speed. See 5.
Replace the Mingw32-make.exe with Jom.exe when you enter the software and open the project, such as build and run, projects, toolbars, and so on.
6, modify the environment variables.
Manually or using a third-party tool rapid Environment Editor, add the Qt path C:\Qt\4.8.6_MinGW\bin to the system variable path.


Scenario Two: Qt4.8.5for Windows (Qt creator+vc++ Compiler)

(I) For cases where the computer is not installed and does not intend to install VS2010:

1. You must ensure that the computer has the Microsoft. NET Framework 4.0 and later installed. Otherwise, the 2nd step will fail to install.

2, install Microsoft Official Microsoft Windows SDK for Windows 7 and. NET Framework 4 (ISO),

http://msdn.microsoft.com/en-us/windows/hardware/hh852365

http://www.microsoft.com/en-us/download/details.aspx?id=8442

The official website can be downloaded to the development Kit Grmsdk_en_dvd.iso, which supports the WinXP and Win7 operating systems.


, which is installed according to the default options. Among them, the contents of the Red box are VC + + header file and link library; VC + + compiler; VC + + debugger. These are required features that correspond to the files in the ISO disc image:

\winsdkbuild\ Winsdkbuild_x86.msi

\vc_stdx86\vc_stdx86.msi

\winsdkdebuggingtools\dbg_x86.msi

3, install the compilation environment Qt-creator-opensource-windows-x86-3.0.0.exe. Use the default path, C:\qt\qtcreator-3.0.0.

4. Install the QT for vs2010 library file, please run Qt-win-opensource-4.8.5-vs2010.exe.

The default installation path for QT is C:\Qt\4.8.5, which is proposed to be modified to C:\Qt\4.8.5_VS2010, which is intended to be separate from other QT repository areas. Avoid overwriting and destroying other QT versions that have been installed. (Note: The QT library that supports the Windows environment has mingw,vs2010,vs2008, etc.)

5. After completing the steps above, perform the desktop shortcut qt Creator. The Qt creator can automatically detect VC + + compilers.

(1) Enter the software----menu, tools----Build and run manual settings,->QT version, add qmake path C:\Qt\4.8.5_VS2010\bin\qmake.exe.

(2) Build and run Build kit (kit) with options-------tools---------------menu----------Choose Microsoft Windows sdkfor Windows 7 (x86) The debugger selects auto-detected CDB at C:\Program files\debugging Tools for Windows (x86) \cdb.exe.

(3) Enter software--menu, tools----Debugger->cdb paths->symbolpaths-> Insert (mouse click the small arrow), symbol server, OK (default value).

(II) For cases where the computer has VS2010 installed:

1, install the compilation environment Qt-creator-opensource-windows-x86-3.0.0.exe. Use the default path, C:\qt\qtcreator-3.0.0.

2. Install the QT for vs2010 library file, please run Qt-win-opensource-4.8.5-vs2010.exe.

The default installation path for QT is C:\Qt\4.8.5, which is proposed to be modified to C:\Qt\4.8.5_VS2010, which is intended to be separate from other QT repository areas. Avoid overwriting and destroying other QT versions that have been installed. (Note: The QT library that supports the Windows environment has mingw,vs2010,vs2008, etc.)

3. Install debugging Tools for Windows. Please run Dbg_x86.msi. This is the debugger. Press complete to install it. This tool is extracted from Microsoft's official Microsoft Windows SDK for Windows 7 and. NET Framework 4 (ISO) and can be downloaded to development package Grmsdk_en_dvd.iso.

http://msdn.microsoft.com/en-us/windows/hardware/hh852365

http://www.microsoft.com/en-us/download/details.aspx?id=8442

4. After completing the steps above, perform the desktop shortcut qt Creator. The Qt creator can automatically detect VC + + compilers.

(1) Enter the software----menu, tools----Build and run manual settings,->QT version, add qmake path C:\Qt\4.8.5_VS2010\bin\qmake.exe.

(2) Build and run Build kit (kit) with options, tools---------------menu--------------Choose "Microsoft Visual C++compiler 10.0 (x86)" The debugger selects auto-detected CDB at C:\Program files\debugging Tools for Windows (x86) \cdb.exe.

(3) Enter software--menu, tools----Debugger->cdb paths->symbolpaths-> Insert (mouse click the small arrow), symbol server, OK (default value).

Scenario Three: Qt4.8.5for Windows (Vs2010+vs plugin)

1, must ensure that the computer has installed VS2010.

2. Install the QT for vs2010 library file, please run Qt-win-opensource-4.8.5-vs2010.exe.

The default installation path for QT is C:\Qt\4.8.5, which is proposed to be modified to C:\Qt\4.8.5_VS2010, which is intended to be separate from other QT repository areas. Avoid overwriting and destroying other QT versions that have been installed. (Note: The QT library that supports the Windows environment has mingw,vs2010,vs2008, etc.)

3, install VS2010 QT plug-in, please run Qt-vs-addin-1.1.11-opensource.exe. The installation path of the plug-in is C:\ProgramFiles\Digia\Qt4VSAddin, which can be installed by default, without modification.


Qt4.8 three programming environments built under Windows

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.