Directly to create a new project of the Gui, compile will appear the following error:
1> -- -- -- -- -- - has started to generate: project: QtGuiApplication1, configuration: Debug x64 -- -- -- -- -- --
1> Reading Qt configuration (C: \ Qt \ Qt5.14.1\5.14.1 \ msvc2017_64 \ bin \ qmake exe)
1> C: \ Users \ \ Administrator \ AppData \ Local \ QtMsBuild \ qt_vars targets (239, 5) : error: the compilation of the source file can be found in the following locations: "C: \ Users \ \ Administrator \ AppData \ Local \ Temp \ a1f0b7ed c80c - 49 e1-8 f4e - f1cfce34a877. TXT"
1> C: \ Users \ \ Administrator \ AppData \ Local \ QtMsBuild \ qt_vars targets (239, 5) : error MSB3758: compile-time errors, C: \ Users \ \ Administrator \ AppData \ Local \ Temp \ kyrtzm45.0 cs (103, 26) : error CS1061: "System. Collections. Generic. IEnumerable
1> C: \ Users \ \ Administrator \ AppData \ Local \ QtMsBuild \ qt_vars targets (239, 5) : error MSB4175: not from the assembly "C: \ Program Files \ Microsoft Visual Studio (x86) \ 2017 \ \ MSBuild \ 15.0 \ Bin \ Microsoft Enterprise Build. The Tasks. The Core. The DLL" factory "CodeTaskFactory" loading Tasks, task factory must to "TaskType" property returns a value,
1> Generating project has been completed "QtGuiApplication1 vcxproj" operations - failure,
==========: zero success, failure, latest 0, 0 skip==========
You have a solution,
VS and QT is in no use!!!!!!!!
CodePudding user response:
The building Lord solved?CodePudding user response:
1. Install Qt need to select the matching with VS version2. VS need to install the Qt Visual Studio Tools plug-in
3. In VS Qt Options to add a set of
VS2015=QT installation directory \ \ ms msvc2015_64 (here in VS2015, for example)
4. In VS the Qt Project Settings set
Qt Installation=msvc2015_64
(the old Version is Version=msvc2015_64)