Я строю шаблон, который я создал некоторое время: go:
https://github.com/BleuGamer/Qt5-CMake-Template
Это прекрасно сработало примерно за 3 месяца до go, но теперь после установки sh я получаю неописуемые ошибки, которые я не могу отладить.
Среда:
Windows 10 сборка 18363.720
CMake 3.16.3
QT 5.14.2
MSV C 2017 (инструменты сборки) 15.9.28307.1064
Ошибка:
Running C:\Program Files\CMake\bin\cmake.exe G:/Projects/Bootstrap "-GVisual Studio 16 2019" "-A<unsupported>" "-T<unsupported>" in C:\Users\bleug\AppData\Local\Temp\QtCreator-jooAUK\qtc-cmake-aXzUaetS.
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
CMake Error at CMakeLists.txt:4 (project):
Failed to run MSBuild command:
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe
to get the value of VCTargetsPath:
Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 4/4/2020 7:35:36 PM.
Project "C:\Users\bleug\AppData\Local\Temp\QtCreator-jooAUK\qtc-cmake-aXzUaetS\CMakeFiles\3.16.3\VCTargetsPath.vcxproj" on node 1 (default targets).
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(360,25): error MSB4184: The expression "[MSBuild]::NormalizePath(C:\Users\bleug\AppData\Local\Temp\QtCreator-jooAUK\qtc-cmake-aXzUaetS\CMakeFiles\3.16.3, obj\<unsupported>\Debug\, VCTargetsPath.vcxproj.CopyComplete)" cannot be evaluated. Illegal characters in path. [C:\Users\bleug\AppData\Local\Temp\QtCreator-jooAUK\qtc-cmake-aXzUaetS\CMakeFiles\3.16.3\VCTargetsPath.vcxproj]
Done Building Project "C:\Users\bleug\AppData\Local\Temp\QtCreator-jooAUK\qtc-cmake-aXzUaetS\CMakeFiles\3.16.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Users\bleug\AppData\Local\Temp\QtCreator-jooAUK\qtc-cmake-aXzUaetS\CMakeFiles\3.16.3\VCTargetsPath.vcxproj" (default target) (1) ->
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(360,25): error MSB4184: The expression "[MSBuild]::NormalizePath(C:\Users\bleug\AppData\Local\Temp\QtCreator-jooAUK\qtc-cmake-aXzUaetS\CMakeFiles\3.16.3, obj\<unsupported>\Debug\, VCTargetsPath.vcxproj.CopyComplete)" cannot be evaluated. Illegal characters in path. [C:\Users\bleug\AppData\Local\Temp\QtCreator-jooAUK\qtc-cmake-aXzUaetS\CMakeFiles\3.16.3\VCTargetsPath.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.36
Exit code: 1
-- Configuring incomplete, errors occurred!
See also "C:/Users/bleug/AppData/Local/Temp/QtCreator-jooAUK/qtc-cmake-aXzUaetS/CMakeFiles/CMakeOutput.log".
CMake process exited with exit code 1.
Комплект: ![Screen cap of the dev kit.](https://i.stack.imgur.com/jYldo.png)
Неверный путь не имеет смысла для меня, и, глядя в файл, я вижу:
<PropertyGroup Label="Globals">
<ProjectGuid>{F3FC6D86-508D-3FB1-96D2-995F08B142EC}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<Platform><unsupported></Platform>
<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props"/>
<PropertyGroup>
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<ConfigurationType>Utility</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset><unsupported></PlatformToolset>
</PropertyGroup>
У меня такое чувство, что они должны быть где-то созданы, но моя домашняя утка не помогла. Я не уверен, что изменилось с моей системой, qt или практикой, но я провел часы в кроличьей норе связанных с этим проблем, и это последний контрольно-пропускной пункт, который я не могу преодолеть. Любая помощь будет принята с благодарностью!