Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt creator can not parse cmake version after update from Qt 6.5.3 to Qt 6.7.2

Qt creator can not parse cmake version after update from Qt 6.5.3 to Qt 6.7.2

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 6 Posters 2.1k 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.
  • R Offline
    R Offline
    Roget.P
    wrote on 11 Jul 2024, 03:05 last edited by
    #1

    this issue has stocked to me for 2 days, I really want to fix this.

    Backgound

    I recently update Qt 6.5.3 to Qt 6.7.2 for Windows 10, there is a issue "error: The kit needs to define a CMake tool to parse this project." when I opened a project. Then I checked Edit>Preference>Kits, I see a warning says Cmake is unconfigured.

    1.png

    and I check Cmake Setting, It says cmake version is not parseable.

    2.png

    And there is no Cmake generator

    3.png

    What have I done

    I tried to remove all components of Qt and install all over again using Qt maintenance tool, but nothing changes, I tried to install Qt creator Community 13.0.2 and Qt Creator 14.0.0-beta2 Community but nothing changes, I tried to Install Qt 6.5.3, Qt 6.6.3 and Qt 6.7.2 but nothing changes.

    I checked my enviromment path, I think everything is fine.

    Qt672 meas kits path for Qt 6.7.2, I alse have QT663 and qt653 for each specific version of Qt kit.

    4.png

    What is bizzared

    I use Qt design studio for fun and I checked its preference setting, I found Qt design studio can parse Cmake version!!!!

    5.png

    And this show what I installed

    6.png

    This is so frustrating and sucks! I search every related web page, asked ChatGPT mang questions, But I really can not find a solution.

    Any suggestion will be appreciated, Please help me!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Roget.P
      wrote on 11 Jul 2024, 23:32 last edited by
      #2

      can't be solved, I just use virtual machine to install Qt all over agagin

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cristian-adam
        wrote on 12 Jul 2024, 07:44 last edited by cristian-adam 7 Dec 2024, 07:49
        #3

        I would suggest starting the Maintainance Tool and reinstall the CMake version (first remove, restart, and add again).

        Qt Creator gets the Qt SDK CMake information from C:\Qt\Tools\sdktool\share\qtcreator\QtProject\qtcreator\cmaketools.xml. Have a look in the xml file and check for sanity.

        Here is my version:

        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE QtCreatorCmaketools>
        <!-- Written by sdktool , 2024-07-12T09:30:39. -->
        <qtcreator>
         <data>
          <variable>CMakeTools.0</variable>
          <valuemap type="QVariantMap">
           <value type="bool" key="Autodetect">true</value>
           <value type="QString" key="Binary">C:/Qt\Tools\CMake_64\bin\cmake.exe</value>
           <value type="QString" key="DisplayName">CMake 3.29.3 (Qt)</value>
           <value type="QString" key="Id">qt.tools.cmake</value>
          </valuemap>
         </data>
         <data>
          <variable>CMakeTools.Count</variable>
          <value type="int">1</value>
         </data>
         <data>
          <variable>Version</variable>
          <value type="int">1</value>
         </data>
        </qtcreator>
        

        Qt Creator uses sdktool/share/qtcreator/QtProject/qtcreator/cmaketools.xml as a template for it's own settings.

        Go to "%appdata%\QtProject\qtcreator\cmaketools.xml" and again check for sanity.

        My version looks like this:

        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE QtCreatorCMakeTools>
        <!-- Written by QtCreator 13.0.2, 2024-07-12T09:40:59. -->
        <qtcreator>
         <data>
          <variable>CMakeTools.0</variable>
          <valuemap type="QVariantMap">
           <value type="bool" key="AutoCreateBuildDirectory">false</value>
           <value type="bool" key="AutoDetected">true</value>
           <value type="bool" key="AutoRun">true</value>
           <value type="QString" key="Binary">C:/Qt/Tools/CMake_64/bin/cmake.exe</value>
           <value type="QString" key="DetectionSource"></value>
           <value type="QString" key="DisplayName">CMake 3.29.3 (Qt)</value>
           <value type="QString" key="Id">qt.tools.cmake</value>
           <value type="QString" key="QchFile">C:/Qt/Tools/CMake_64/doc/cmake/CMake.qch</value>
          </valuemap>
         </data>
         <data>
          <variable>CMakeTools.1</variable>
          <valuemap type="QVariantMap">
           <value type="bool" key="AutoCreateBuildDirectory">false</value>
           <value type="bool" key="AutoDetected">true</value>
           <value type="bool" key="AutoRun">true</value>
           <value type="QString" key="Binary">C:/Program Files/CMake/bin/cmake.exe</value>
           <value type="QString" key="DetectionSource"></value>
           <value type="QString" key="DisplayName">System CMake at C:\Program Files\CMake\bin\cmake.exe</value>
           <value type="QString" key="Id">{0656c167-a015-475f-b76d-ea16048564a9}</value>
           <value type="QString" key="QchFile">C:/Program Files/CMake/doc/cmake/CMake.qch</value>
          </valuemap>
         </data>
         <data>
          <variable>CMakeTools.Count</variable>
          <value type="int">2</value>
         </data>
         <data>
          <variable>CMakeTools.Default</variable>
          <value type="QString">{0656c167-a015-475f-b76d-ea16048564a9}</value>
         </data>
         <data>
          <variable>Version</variable>
          <value type="int">1</value>
         </data>
        </qtcreator>
        
        1 Reply Last reply
        0
        • C Offline
          C Offline
          cristian-adam
          wrote on 12 Jul 2024, 07:48 last edited by cristian-adam 7 Dec 2024, 07:49
          #4

          Here is the Qt Creator's function that checks for validity:

          bool CMakeTool::isValid() const
          {
              if (!m_id.isValid() || !m_introspection)
                  return false;
          
              if (!m_introspection->m_didAttemptToRun)
                  readInformation();
          
              return m_introspection->m_haveCapabilitites && !m_introspection->m_fileApis.isEmpty();
          }
          

          It can fail if <value type="QString" key="Id">qt.tools.cmake</value> is empty, Id that is.

          Or if C:\Qt\Tools\CMake_64\bin\cmake.exe -E capabilities fails to run.

          Which case do you have?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cristian-adam
            wrote on 12 Jul 2024, 07:55 last edited by
            #5

            In order to find out if Qt Creator for some reason has some borked settings in "%appdata%\QtProject\qtcreator you can start:

            $ C:\Qt\Tools\QtCreator\bin\qtcreator.exe -temporarycleansettings
            
            1 Reply Last reply
            1
            • C cristian-adam referenced this topic on 16 Jul 2024, 18:42
            • S Offline
              S Offline
              SunKun
              wrote on 17 Feb 2025, 03:18 last edited by
              #6

              Has this problem been solved? I've had the same problem. Cmake Setting says cmake version is not parseable.

              1 Reply Last reply
              0
              • B Offline
                B Offline
                boolerule
                wrote on 19 Mar 2025, 08:33 last edited by
                #7

                Has this problem been solved? I also encountered the same problem. The CMake settings show that the CMake version cannot be parsed. I have tried reinstalling qt, qt creator and cmake, but none of them worked.

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  boolerule
                  wrote on 21 Mar 2025, 00:46 last edited by
                  #8

                  我想我知道原因了,我电脑里安装的是vs2022,qt creator 里面的cmake需要的是vs2019,虽然单纯的cmake-gui 运行没有问题,但是qt coeator 识别不了,安装一个vs2019 就行了。

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Aleksei S
                    wrote on 1 Apr 2025, 15:22 last edited by
                    #9

                    I have this problem with remote device. Qt Creator 15.0.1

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      RandyXi
                      wrote on 10 Apr 2025, 16:11 last edited by
                      #10

                      I have the same issues about two days now, I had clean the registry, also all qt settings on other locations that isn't the drive c qt installation, uninstall qt, I did this many times and I also have a working qt install on another computer which I exchange the install qt folder and in my problem computer it won't work and the qt installation folder works on another computer, system oaths is the same, so I came down to operating system issues, I use dependency walker to see what uic.exe requires and in my computer about 4 ot 5 dll it calls and the other computer It call a number of windows kit dll, installing the kit disnt help, I am currently running windows repairs well I will update you guys of my findings

                      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