Hello, everyone
I tried to build the following github codes, but it failed
What is did are as below
git clone --recursive https://github.com/khronosGroup/Vulkan-samples
cd Vulkan-samples
And I installed Python 3.12, CMake (v3.2?)
I have Visual Studio 2022
I think I installed clang-format-8
and I did below
cmake -G"Visual Studio 15 2017 Win64" -S . -Bbuild/windows
but this failed. It says there is no Visual Studio 2017
so I did below
cmake -G"Visual Studio 17 2022 Win64" -S . -Bbuild/windows
or
cmake -G"Visual Studio 17 2022" -AWin64 -S . -Bbuild/windows
Anyway I tried, it failed
So could you please helo me with this issue?
Thank you and have a nice weekend
Error messages are
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
CMake Error at CMakeLists.txt:20 (project):
Failed to run MSBuild command:
C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe
to get the value of VCTargetsPath:
MSBuild version 17.5.0+6f08c67f3 for .NET Framework
build starts: 2023-03-17 pm 11:46:17
Included response file: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.rsp
1 node's "K:\a\Vulkan-Samples\build\windows\CMakeFiles\3.26.0-rc6\VCTargetsPath.vcxproj" project(default target)
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(832,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='Win64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [K:\a\Vulkan-Samples\build\windows\CMakeFiles\3.26.0-rc6\VCTargetsPath.vcxproj]
"K:\a\Vulkan-Samples\build\windows\CMakeFiles\3.26.0-rc6\VCTargetsPath.vcxproj" project builds(default target). - failure
cannot build.
"K:\a\Vulkan-Samples\build\windows\CMakeFiles\3.26.0-rc6\VCTargetsPath.vcxproj"(default)(1)->
(_CheckForInvalidConfigurationAndPlatform target) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(832,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='Win64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [K:\a\Vulkan-Samples\build\windows\CMakeFiles\3.26.0-rc6\VCTargetsPath.vcxproj]
warning 0
error 1
elapsed: 00:00:00.13
Exit code: 1
-- Configuring incomplete, errors occurred!