Не собирается чистый проект QtGui

Решил добавить графику(qt 5.8.0) в проект msvc2015(windows 7), но столкнулся с проблемой добавления графики Qt в уже существующий проект. Решил создать новый проект QtGuiApplication и туда добавить код из своего проекта. Так вот при создании чистого проекта, решил его собрать, перед тем как двигаться дальше. И натолкнулся на ошибку во время компиляции.

Список ошибок:

  • Error MSB3758 An error has occurred during compilation. c:\Users\Федя\AppData\Local\Temp\yga1haap.0.cs(103,26) : error CS1061: 'System.Collections.Generic.IEnumerable' does not contain a definition for 'ToHashSet' and no extension method 'ToHashSet' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?) QtGuiApplication2 C:\Users\Федя\AppData\Local\QtMsBuild\qt_vars.targets 239
  • Error MSB4036 The "GetVarsFromMakefile" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\14.0\bin" directory. QtGuiApplication2 C:\Users\Федя\AppData\Local\QtMsBuild\qt_vars.targets 239 \

  • Error The source file for this compilation can be found at: "C:\Users\Федя\AppData\Local\Temp\9ad6322e-80ef-4c1c-9c78-16216b0a4bdc.txt" QtGuiApplication2 C:\Users\Федя\AppData\Local\QtMsBuild\qt_vars.targets 239

Output(log) выглядит вот так:

Reading Qt configuration (C:\1Work\msvc2015_is_x64_5.8.0(for qt)\bin\qmake.exe)

C:\Users\Федя\AppData\Local\QtMsBuild\qt_vars.targets(239,5): error : The source file for this compilation can be found at: "C:\Users\Федя\AppData\Local\Temp\9ad6322e-80ef-4c1c-9c78-16216b0a4bdc.txt"

C:\Users\Федя\AppData\Local\QtMsBuild\qt_vars.targets(239,5): error MSB3758: An error has occurred during compilation. c:\Users\Федя\AppData\Local\Temp\yga1haap.0.cs(103,26) : error CS1061: 'System.Collections.Generic.IEnumerable' does not contain a definition for 'ToHashSet' and no extension method 'ToHashSet' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?)

C:\Users\Федя\AppData\Local\QtMsBuild\qt_vars.targets(239,5): error MSB4036: The "GetVarsFromMakefile" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\14.0\bin" directory.

При этом на сколько я понимаю все нужные либы подтянуты. В C\C++ -> General -> additional include directories:

  • C:\Program Files%28x86%29\MSBuild\14.0\Bin;
  • $(QTDIR)\include\QtANGLE;
  • $(QTDIR)\include\QtGui; $(QTDIR)\include\QtConcurrent;
  • $(QTDIR)\include\qtmain; $(QTDIR)\include\QtCore\private;
  • $(QTDIR)\include\QtCore; $(QTDIR)\include\QtWidgets;
  • $(QTDIR)\include; C:\1Work\DAQTools64\SDK\brdinc\ctrladmpro;
  • C:\1Work\DAQTools64\SDK\gipcy\include;
  • C:\1Work\DAQTools64\SDK\brdinc;
  • C:\1Work\msvc2015_is_x64_5.8.0(for qt)\plugins\platforms;
  • C:\Program Files %28x86%29\Windows Kits\8.1\Include\um;
  • %(AdditionalIncludeDirectories)

В Linker ->General ->additional library directories:

  • C:\1Work\msvc2015_is_x64_5.8.0 % 28for qt % 29\plugins\platforms;
  • C:\Program Files %28x86%29\MSBuild\14.0\Bin;
  • C:\1Work\msvc2015_is_x64_5.8.0%28for qt%29\lib;
  • C:\1Work\DAQTools64\SDK\lib;
  • %(AdditionalLibraryDirectories)

    В Linker -> Input -> Additional dependence:

  • qtmain_is64d.lib;

  • qwindows.lib;
  • qwindowsd.lib;
  • qoffscreen.lib;
  • qoffscreend.lib;
  • qminimal.lib;
  • qminimald.lib;
  • qdirect2dd.lib;
  • qdirect2d.lib;
  • Qt5Widgets_is64d.lib;
  • Qt5Core_is64d.lib;
  • Qt5Gui_is64d.lib;
  • Qt5Concurrent_is64d.lib;
  • %(AdditionalDependencies)

Облазил уже кучу сайтов и форумов, но так и не нашел ответа, как пофиксить данную проблему, и почему она возникает.

Версии ПО не могу поменять из-за требований руководства.


Ответы (0 шт):