Some confusions about the installation and configuration of the QT version

Source: Internet
Author: User

It was probably too smooth to install and use QT before, so I started to use it without paying attention to anything. After using vs2012 to develop a program named qt5.31 for a period of time, although it is easy to use, but it is found that the program compiled by it cannot be used on XP, it must be patched. Not only does vs2012 require patching, but a library I use must have different options, which is really troublesome. What's more, vs2012 itself cannot be used in XP, so I think about using vs2005 or vs2008 for development. There is really no way to use vs2010, at least the XP old machine in the house can use it. I did not expect the problem to come:


1. I installed qt5.31 for vs2012 before. Therefore, an error is reported for how to compile vs2010. I think there is a problem with vs2010. the reinstallation after uninstallation is still the same, which wastes at least two hours. The original QT library is different. Download qt5.31 for 2010 and install it online.

2. vs2012 is too domineering. I don't know how it works. it overwrites my default C ++ compilation options in vs2010. Just follow this article and change it back:
Http://stackoverflow.com/questions/13663898/specified-platform-toolset-v110-is-not-installed

3. Although qt5 add-in can be installed for vs2008, opening any. Pro file using this plug-in will cause an inexplicable conversion failure. I later found that there was no QT 5.31 for vs2008 version, and I checked on the Internet that there was no specific for 5.0 version for Qt 5.1 5.2 2008. What was the installation option. However, I vaguely remember to forcibly specify the QT 2012 library and compile it. I will come back later for confirmation. Today, we are eager to make formal development.

4. I used vs2005 to compile a QT 4.53 library, which is easy to use and Provides unobstructed examples of various books. However, when a new project is created, there is no warning for compiling and running. However, when the project library is directed to qt4.86, a warning is issued, prompting that the macro definition is repeated:
1> C: \ QT \ 4.8.6 _ 2008 \ include \ qtcore \.. /.. /src/corelib/global/qconfig. H (41): Warning c4005: 'qt _ largefile_support ': Macro redefinition
1> command-line arguments: see previous definition of 'qt _ largefile_support'
Create an empty project using vs2008 and use the same qt4.86 library.

Bytes ------------------------------------------------------------------------------------
Summary:
1. vs2005 + qt4.53 is used to learn the examples in the book, which is really amazing. Qt 4.53 was released at the end of 2009. It is enough for general projects. Who needs so many new QT features? Generally, the more I get started, qt4 has been used for astronomical projects such as KDE.
This is a list of new features of qt5: http://qt-project.org/wiki/Qt-5Features
2. vs2008 + qt4.86 for qt4, there is no problem, and there is no warning.
3. vs2010 + qt5.31 qt5 project is also good, that is, it runs too slowly on XP, and do not forget to install the corresponding qt5.31 for 2010 for it
4. vs2012 + qt5.31 has always been very useful, but it requires patching and various patches to solve all development and configuration problems, but I don't want to go over it, moreover, it cannot run in XP, so it is not necessary to give up.

I plan to migrate this project to solution 2. It is not a self-compiled library and should be more reliable during release. In addition to the possibility of using JSON in the future, other features are not required. If the development encounters problems, go to solution 3. Hurry up ~

Supplement: there is no problem when using QT 5.31 for 2010 in vs2012!

Some confusions about the installation and configuration of the QT version

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.