Closed VitaliyMubarakov closed 1 year ago
After manipulation with Visual Studio Installer i got new error
error: building directxtk:x64-windows-sp failed with: BUILD_FAILED
[0/42] cmd.exe /C "cd /D F:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Src\Shaders && F:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe -E env CompileShadersOutput="F:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/Shaders/Compiled" CompileShaders.cmd > F:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/Shaders/Compiled/compileshaders.log"
[2/42] C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe /TP -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0601 -D_WIN7_PLATFORM_UPDATE -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\x64-windows-sp-dbg\Shaders\Compiled -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Src -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Inc -external:IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\build\vcpkg_installed\x64-windows-sp\include\directxmath -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MTd /Z7 /Ob0 /Od /RTC1 -MTd /Wall /GR /fp:fast /sdl /permissive- /JMC- /Zc:__cplusplus /Zc:inline /ZH:SHA_256 /Zc:preprocessor /wd5105 /Zc:lambda /Zc:templateScope /Zc:checkGwOdr /wd5262 -std:c++17 /YcF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /FpF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/./cmake_pch.cxx.pch /FIF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\DirectXTK.dir\cmake_pch.cxx.obj /FdCMakeFiles\DirectXTK.dir\DirectXTK.pdb /FS -c F:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\x64-windows-sp-dbg\CMakeFiles\DirectXTK.dir\cmake_pch.cxx
FAILED: CMakeFiles/DirectXTK.dir/cmake_pch.cxx.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe /TP -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0601 -D_WIN7_PLATFORM_UPDATE -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\x64-windows-sp-dbg\Shaders\Compiled -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Src -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Inc -external:IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\build\vcpkg_installed\x64-windows-sp\include\directxmath -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MTd /Z7 /Ob0 /Od /RTC1 -MTd /Wall /GR /fp:fast /sdl /permissive- /JMC- /Zc:__cplusplus /Zc:inline /ZH:SHA_256 /Zc:preprocessor /wd5105 /Zc:lambda /Zc:templateScope /Zc:checkGwOdr /wd5262 -std:c++17 /YcF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /FpF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/./cmake_pch.cxx.pch /FIF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\DirectXTK.dir\cmake_pch.cxx.obj /FdCMakeFiles\DirectXTK.dir\DirectXTK.pdb /FS -c F:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\x64-windows-sp-dbg\CMakeFiles\DirectXTK.dir\cmake_pch.cxx
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(347): error C7527: 'TDelegateInterface': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(345): note: see previous definition of 'TDelegateInterface'
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(369): note: see reference to class template instantiation 'Microsoft::WRL::Details::DelegateArgTraits<HRESULT(__cdecl TDelegateInterface::* )(TArgs...)>' being compiled
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(347): error C7527: 'TArgs': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(345): note: see previous definition of 'TArgs'
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(360): error C7527: 'TDelegateInterface': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(345): note: see previous definition of 'TDelegateInterface'
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(375): error C7527: 'TDelegateInterface': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(373): note: see previous definition of 'TDelegateInterface'
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(397): note: see reference to class template instantiation 'Microsoft::WRL::Details::DelegateArgTraits<HRESULT(__cdecl TDelegateInterface::* )(TArgs...) noexcept>' being compiled
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(375): error C7527: 'TArgs': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(373): note: see previous definition of 'TArgs'
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(388): error C7527: 'TDelegateInterface': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(373): note: see previous definition of 'TDelegateInterface'
ninja: build stopped: subcommand failed.
see https://github.com/microsoft/DirectXTK/issues/389 You can install Win 11 SDK (it's ok for win10) to solve the issue. Or wait for the latest directxtk with this PR (https://github.com/microsoft/DirectXTK/pull/390) to be included in vcpkg. Or make your overlay port in vcpkg.
System
Error
When i tried to build clear chakra