td: Build fails on VS2022
Build fails on VS2022
c:\Projects\td\build (master -> origin)
λ cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DCMAKE_TOOLCHAIN_FILE:FILEPATH=../vcpkg/scripts/buildsystems/vcpkg.cmake ..
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version to target Windows 10.0.19044.
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:9 (project):
No CMAKE_CXX_COMPILER could be found.
CMake Error at CMakeLists.txt:9 (project):
No CMAKE_C_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "C:/Projects/td/build/CMakeFiles/CMakeOutput.log".
See also "C:/Projects/td/build/CMakeFiles/CMakeError.log".
c:\Projects\td\build (master -> origin)
λ
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 25 (11 by maintainers)
Works perfectly now. I included more SDK and compiler versions for older VS 2019
Then you should have a Windows Kit installed and kernel32.lib inside the Windows Kit.