Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. No CMake configuration for build type "Debug" found for sample projects

No CMake configuration for build type "Debug" found for sample projects

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 6 Posters 4.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    passiflora
    wrote on 19 Dec 2023, 23:11 last edited by passiflora
    #1

    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:
    屏幕截图 2023-12-20 071312.png
    屏幕截图 2023-12-20 071457.png

    J 1 Reply Last reply 20 Dec 2023, 06:19
    0
    • P passiflora
      19 Dec 2023, 23:11

      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:
      屏幕截图 2023-12-20 071312.png
      屏幕截图 2023-12-20 071457.png

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 20 Dec 2023, 06:19 last edited by
      #2

      @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".

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply 20 Dec 2023, 06:47
      0
      • J jsulm
        20 Dec 2023, 06:19

        @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".

        C Offline
        C Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 20 Dec 2023, 06:47 last edited by
        #3

        ... and does C:\Qt\Tools\cmake_64\bin\cmake.exe exists and can be started on the command line?

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0
        • O Offline
          O Offline
          Olli_Myohanen
          wrote on 21 Dec 2023, 18:05 last edited by Olli_Myohanen
          #4

          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

          1 Reply Last reply
          0
          • B Offline
            B Offline
            BlackRagnor
            wrote 18 days ago last edited by BlackRagnor
            #5

            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.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JoeJoe909
              wrote 10 days ago last edited by JoeJoe909 20 days from now
              #6

              Please see my post on stack overflow and provide a reasonable explanation. I believe this will help in a unsavory way. https://stackoverflow.com/a/79607899/13585636

              Respectfully,
              Joe F.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved