No CMake configuration for build type "Debug" found for sample projects
-
wrote on 19 Dec 2023, 23:11 last edited by passiflora
I installed Qt on a new Windows PC computer and tested sample projects but it rendered two errors:
CMake process failed to start CMake project configuration failed. No CMake configuration for build type "Debug" found.
In the General Messages panel it also reported "CMake process failed to restart" and elapsed time is 00:00, I searched in the web and found no solutions to this problem, I guess it may be installation and/or global configuration problem because it occurred even when I use official sample projects, but I uninstalled and reinstalled Qt and CMake the errors still occur. so could anyone provide suggestions to this problem? Thanks in advance!
Environment: Windows11 + Qt 6.6.1 MSVC2019
-
I installed Qt on a new Windows PC computer and tested sample projects but it rendered two errors:
CMake process failed to start CMake project configuration failed. No CMake configuration for build type "Debug" found.
In the General Messages panel it also reported "CMake process failed to restart" and elapsed time is 00:00, I searched in the web and found no solutions to this problem, I guess it may be installation and/or global configuration problem because it occurred even when I use official sample projects, but I uninstalled and reinstalled Qt and CMake the errors still occur. so could anyone provide suggestions to this problem? Thanks in advance!
Environment: Windows11 + Qt 6.6.1 MSVC2019
Here is the screenshot:
@passiflora Did you check the Kit you're using - are there any warnings/errors?
Do you actually have a debug configuration (you can check in QtCreator on the left side if you click on "Projects". -
@passiflora Did you check the Kit you're using - are there any warnings/errors?
Do you actually have a debug configuration (you can check in QtCreator on the left side if you click on "Projects".... and does
C:\Qt\Tools\cmake_64\bin\cmake.exe
exists and can be started on the command line? -
wrote on 21 Dec 2023, 18:05 last edited by Olli_Myohanen
I'm having similar problems. CMake fails because:
"C:\Qt\Examples\Qt-6.5.2\qml\tutorials\extending-qml\CMakeLists.txt:4: error: Unknown CMake command "qt_internal_add_example"."Examples used to work just fine.
There is also bug reported:
https://bugreports.qt.io/browse/QTBUG-117696 -
wrote 6 days ago last edited by BlackRagnor
Hi @passiflora Have you found a solution yet?
I had the same issue.
Turns out CMake can sometimes have issues when there are spaces in directory names, especially in paths like the build directory. CMake and other build systems like Make or Ninja often have problems parsing paths with spaces in them, as the tools may interpret the space as a separator between different arguments.
For example, a path like C:/My Qt Projects/build can cause problems because the build system might treat My and Qt as separate arguments instead of a single directory name.
And this is exactly how my Build folder was named. I had to change it by removing the spaces. I changed the name of the build folder to My_Qt_Projects, and voila!! No more issues.