Qt6 newly created CMake project cannot be started

The error is as follows:

:-1: error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

:-1: error: CMake process exited with exit code 1.

:-1: error: CMake project configuration failed. No CMake configuration for build type "Debug" found.

Solution: Add CMake and Ninja to the environment variables. The following is the default path of Qt

C:\Qt\Tools\CMake_64\bin

C:\Qt\Tools\Ninja

Guess you like

Origin blog.csdn.net/weixin_41013202/article/details/129955627