Home > Mobile >  Qt Creator some of the problems in new projects, tortured for a long time, really don't know ho
Qt Creator some of the problems in new projects, tortured for a long time, really don't know ho

Time:10-07

Background:
-- -- -- -- -- -- --
Development environment:
Qt5.9.0
Two compilation environment: MINGW_32 MSVC2015
Path:

Question:
-- -- -- -- -- -- --
In the MINGW compiler environment, new construction, will show a series of problems, as follows:
Error: Variable QMAKE_DEFAULT_INCDIRS is not defined.,,

After the execution of Qmake when the following error:

For project untitled12 15:10:40: step...
15:10:40: starting "C: \ Qt \ Qt5.9.0\5.9 \ mingw53_32 \ bin \ qmake exe" E: \ text \ untitled12 \ untitled12 pro - spec win32 - g + + "CONFIG +=debug" "CONFIG +=qml_debug"

System cannot find the specified file,
System cannot find the specified file,
System cannot find the specified file,
System cannot find the specified file,
System cannot find the specified file,
System cannot find the specified file,
C:/Qt/Qt5.9.0/5.9/mingw53_32 mkspecs/features/toolchain. PRF: 76: Variable QMAKE_DEFAULT_INCDIRS is not defined.
C:/Qt/Qt5.9.0/5.9/mingw53_32 mkspecs/features/toolchain. PRF: 129: QMAKE_CXX.COM PILER_MACROS Variable is not defined.
C:/Qt/Qt5.9.0/5.9/mingw53_32 mkspecs/features/toolchain. PRF: 76: Variable QMAKE_DEFAULT_INCDIRS is not defined.
C:/Qt/Qt5.9.0/5.9/mingw53_32 mkspecs/features/toolchain. PRF: 129: QMAKE_CXX.COM PILER_MACROS Variable is not defined.
C:/Qt/Qt5.9.0/5.9/mingw53_32 mkspecs/features/toolchain. PRF: 76: Variable QMAKE_DEFAULT_INCDIRS is not defined.
C:/Qt/Qt5.9.0/5.9/mingw53_32 mkspecs/features/toolchain. PRF: 129: QMAKE_CXX.COM PILER_MACROS Variable is not defined.
15:10:42: process "C: \ Qt \ Qt5.9.0\5.9 \ mingw53_32 \ bin \ qmake exe" normal exit,
15:10:42: starting "C: \ Qt \ Qt5.9.0 \ Tools \ mingw530_32 \ bin \ mingw32 - make. Exe" qmake_all

Mingw32 - make: Nothing to be done for 'qmake_all.
15:10:43: process "C: \ Qt \ Qt5.9.0 \ Tools \ mingw530_32 \ bin \ mingw32 - make. Exe" normal exit,
15:10:43: Elapsed time: 00:03.

Qmake but if not, run directly, can skip the Qmake, interface can run ,

To compile under MSVC2015, perform Qmake, also have the above problem, but when run directly to the following error:
error: Failed to retrieve MSVC Environment from "C: \ Program Files \ Microsoft Visual Studio (x86) VC 14.0 \ \ vcvarsall bat" :
The system always find The file specified.



CodePudding user response:

How can say the Qt installation? I remember when I was in Qt5.9 Riga Qt5.2 version as if had a similar problem, you first to describe the process

CodePudding user response:

reference 1/f, it is a nice nickname response:
can be said about how to install Qt? I remember when I was in Qt5.9 Riga Qt5.2 version as if had a similar problem, after you describe the process


Is normal according to the steps of installation, the installation process, the choice of the mingw and MSVC two compilation mode - "after complete the installation, configuration in VS2015 QT tool VS tools -"
After installed the WIN10 Debug tool -- "configuration environment variable path; Open the QT Creator tool to check the build suite, see no problem, a new project, the above problems,

CodePudding user response:



Please check again build suite situation, and check whether Qt path and environment variables are consistent,
Check the C:/Qt/Qt5.9.0/5.9/mingw53_32 under these paths to have those documents,


CodePudding user response:

Quote: this is a nice nickname reference 3 floor response:


Please check again build suite situation, and check whether Qt path and environment variables are consistent,
Check the C:/Qt/Qt5.9.0/5.9/mingw53_32 under these paths to have those documents,

I looked at it and have no problems
  •  Tags:  
  • Qt
  • Related