QT: You need to set up a compiler to build. Set up a compiler in the build Suite option.

Source: Internet
Author: User
Tags visual studio 2010

Qt project RUN, Hint:: -1:ERROR:QT Creator need to set up a compiler to build. Set up a compiler in the build Suite option.

Problem reason: MSVC is involved in copyright, its QT installation package does not contain msvc, installation of Qt did not install MSVC.

Qt Required MSVC version:

Identification via QT installer name: qt-opensource-windows-x86-msvc2015_64-5.8.0.exe,msvc2015_64

Through QT program Information recognition: Open the QT creator--menu "help" Bar-about QT Creator.

Workaround: If it is the MSVC compiler version of QT, install the compiler that is consistent with the QT compiler version. Install the appropriate version vs, you need the option to install the C + + runtime library. has been validated.

Unresolved workaround: Direct installation of the MSVC compiler required by the QT installer should also be possible.
Qtcreator scans the system variables on the first startup and looks up the compiler, QT version, debugger, and qmake in the system variables and saves the results in the configuration file, and does not rescan and change these settings when it starts again. When the compiler and so on change, you need to remove the Qtcreator configuration file to force it to rescan the system environment at startup and reset the configuration of the build suite.

The location of the Qtcreator configuration file is: C:\Users\%USERNAME%\AppData\Roaming\QtProject. Paste the path to run in CMD.

One, software website qt Download: http://download.qt.io/archive/qt/
VS2015 Enterprise Edition: http://www.cncrk.com/downinfo/146696.html

www.itellyou.cn website Download vs each version, Windows and other software.

The QT version explains that there are two ways of compiling in Qt, one is MinGW, the other is msvc. Depending on the compiler type under Windows, QT is divided into two categories:
1, with MSVC as the compiler version. Due to copyright and other reasons, the Windows platform MSVC compiler qt is not with VC, need to be installed separately.

such as: Qt-opensource-windows-x86-msvc2015_64-5.8.0.exe (self-explained: Installed on the Windows platform, Requires an open source QT5.8.0 version installer with a 64-bit MSVC2015 compiler) This version of QT needs to correspond to the installation MSVC2015. The MSVC module is typically installed when VS2015 is installed.

In addition, when installing other versions of VS, such as VS2017, the option to install C + +, it is very likely that QT can not find the C + + compiler, appears: "Need to set up a compiler to build." Set up a compiler in the build Suite option. "Such hints.

MSVC, is Microsoft (MS) VC run the library. VC Run-time Library, is the runtime Library of Visual C + +. Runtime version of a lot of, such as 2003, 2005, 2010, and the other 32-bit and 64-bit difference, installed more trouble. It is recommended to download the IT Sky One key drive VC Run-time Library, a key can be installed complete.
Programming with Microsoft's runtime, reducing the amount of software coding, but reducing compatibility. These runtime libraries are required when the software is running.

VS is Visual Studio, a toolset provided by Microsoft, consisting of a wide variety of tools. VS2010 can support C + +, VB, JAVA, C # #编程. However, only one programming method can be supported at a time. VS2010 installation is completed, the first run will allow you to choose the most common language, if you choose c/S + +, then he will be able to do C/s + + programming platform may be the VC2010 you say. If you do not want to use C + +, you only need to modify his initialization settings, choose another programming language, it becomes another language programming environment.
VC is a visual c++,vc2010 is only an independent C/s + + development tools, more famous is VC6.0, now VC2010 is actually VC10.
More popular, VS2010 and Office2010, including World2010, Excel2010 and so on, and VC2010 is equivalent to World2010.

msvc++ 14.0 _msc_ver = = 1900 (Visual Studio 2015)
Msvc++ 12.0 _msc_ver = = 1800 (Visual Studio 2013)
Msvc++ 11.0 _msc_ver = = 1700 (Visual Studio 2012)
msvc++ 10.0 _msc_ver = = 1600 (Visual Studio 2010)
Msvc++ 9.0 _msc_ver = = 1500 (Visual Studio 2008)
msvc++ 8.0 _msc_ver = = 1400 (Visual Studio 2005)
Msvc++ 7.1 _msc_ver = = 1310 (Visual Studio 2003)
msvc++ 7.0 _msc_ver = 1300
Msvc++ 6.0 _msc_ver = 1200
msvc++ 5.0 _msc_ver = = 1100 2, MinGW as the compiler version. MinGW software itself is open source, the Windows platform under the MinGW compiler QT already contains a packaged compiler.

Mingw:https://baike.baidu.com/item/mingw/1777782?fr=aladdin,minimalist GNU on Windows
MinGW is the abbreviation for minimalist gnufor windows. It is a freely available and freely published collection of Windows-specific headers and import libraries using the GNU toolset, allowing you to generate local Windows programs on the Gnu/linux and Windows platforms without the need for a third-party C run-time (c Runtime) library. MinGW is a set of file and port libraries that allow console-mode programs to use Microsoft's standard C Runtime (MSVCRT.DLL) library, which is valid on all NT OS, and is available on all Windows 95 releases , using the basic runtime, you can use GCC Write console mode compliant with the United States Standard Organization (ANSI) program, you can use Microsoft provided by the C Run-time (c Runtime) extension, with the basic runtime, you can have full rights to both use CRT (c Runtime) and use WindowsAPI function.
GNU is a UNIX-like operating system. It is a collection of programs consisting of multiple applications, system libraries, development tools, and even games. The GNU development began in January 1984, called the GNU Project. Many of the GNU programs are published under the GNU project, which we call the GNU package.
The name "GNU" is the recursive acronym for "GNU ' not Unix". The "GNU" pronunciation is g ' noo, with only one syllable, pronounced like "grew", but it needs to be replaced with an n sound.
Programs used in Unix-like operating systems for resource allocation and hardware management are called "kernels." The typical kernel used by GNU is Linux. This combination is called the Gnu/linux operating system. Gnu/linux is used by millions of of users, but many people mistakenly call it "Linux."
GNU's own kernel, the Hurd, began in 1990 (earlier than Linux). Volunteers are still continuing to develop Hurd because it is an interesting technology project.
GNU is a UNIX-like operating system. It is a collection of programs consisting of multiple applications, system libraries, development tools, and even games. The GNU development began in January 1984, called the GNU Project. Many of the GNU programs are published under the GNU project, which we call the GNU package.
The name "GNU" is the recursive acronym for "GNU ' not Unix". The "GNU" pronunciation is g ' noo, with only one syllable, pronounced like "grew", but it needs to be replaced with an n sound.
Programs used in Unix-like operating systems for resource allocation and hardware management are called "kernels." The typical kernel used by GNU is Linux. This combination is called the Gnu/linux operating system. Gnu/linux is used by millions of of users, but many people mistakenly call it "Linux."
GNU's own kernel, the Hurd, began in 1990 (earlier than Linux). Volunteers are still continuing to develop Hurd because it is an interesting technology project.
GNU is a recursive abbreviation for "GNU is not Unix". Stallman announced that GNU should be pronounced Guh-noo to avoid confusion with the word new (note: GNU in English is intended to be African wildebeest, pronounced as new). UNIX is the name of a widely used commercial operating system. Because GNU is going to implement the interface standards for UNIX systems, the GNU program can develop different operating system components separately. The GNU program uses parts of the software that were already freely available, such as the Tex typesetting system and the X Window Window System. But the GNU program has also developed a large number of other free software.
Respect the author, support original, if need reprint, please attach original address: http://blog.csdn.net/libaineu2004/article/details/17363165
QT is built in three programming environments under Windows
Qt5.7 + VS2015 Environment

http://blog.csdn.net/liang19890820/article/details/53931813

GCC (GNU Compiler COLLECTION,GNU Compiler Kit) is a programming language compiler developed by GNU. It is free software issued under the GPL and is a key part of the GNU program. GCC, as the official compiler for the GNU operating system, has now been adopted as a standard compiler for most Unix-like operating systems such as Linux, BSD, Mac OS x, and GCC for Microsoft Windows. [2] GCC is a well-known example of free software process development, released by the Free Software Foundation under the GPL protocol.
GCC was formerly known as the GNU C language compiler (GNU C Compiler) because it could only handle the C language. GCC quickly expands to be able to handle C + +. Later extensions were able to support more programming languages such as FORTRAN, Pascal, Objective-c, Java, Ada, go, and assembly language on various processor architectures, and so renamed the GNU Compiler Suite (GNU Compiler Collection). [2]

The GPL, which is the abbreviation for general Public License, is an unofficial Chinese translation of the GNU Common Authority. It is not published by the Free Software Foundation, nor by the statutory terms of use of the GNU General public-licensed software-only the original version of the GNU General Public License has this effect.

Where is the official download of MinGW (GCC for Windows). http://sourceforge.net/projects/mingw/


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.