computer windows 11 home x64
vs community 2022
orbbecsdk 1.9.4
cmake 3.29.0-rc3
cmake window shows
current generator:visual studio 17 2022
in red
make_configuation_types Debug;Release;MinSizeRel;RelWithDebInfo
—error—
Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
CMake Error at CMakeLists.txt:3 (project):
Failed to run MSBuild command:
cmakelists.txt top 3 lines (orbbec examples directory)
Maybe I also encountered the same problem
❯ cmake --version
cmake version 3.29.2
windows 11
– Building for: Visual Studio 17 2022
– Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
– The C compiler identification is unknown
– The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
What’s the output of cl command? Should print MSVC version and usage example (if it is available in your PATH).
Also, have you tried running CMake from VS prompt (/path/to/vs/Common7/Tools/VsDevCmd.bat)?
C:\Users\yecat\source\repos\CMakeProject1\build>cmake …
– Building for: Visual Studio 17 2022
– Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
– The C compiler identification is unknown
– The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:12 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:12 (project):
No CMAKE_CXX_COMPILER could be found.
– Configuring incomplete, errors occurred!
C:\Users\yecat\source\repos\CMakeProject1\build>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64
Copyright (C) Microsoft Corporation. All rights reserved.