Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator: cmake errors after downgrade of MSVC compiler
Forum Updated to NodeBB v4.3 + New Features

Qt Creator: cmake errors after downgrade of MSVC compiler

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
cmake error
7 Posts 2 Posters 161 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Asperamanca
    wrote last edited by
    #1

    I tried downgrading MSVC after severe debugging issues. After that, I manually re-detected compilers in Qt Creator.
    Now, when I try to configure cmake for a debug build ("Re-configure with initial parameters") even with a small test project, I get

    CMake Error at _hipase/cmake/modules/HIPASE.cmake:107 (find_package):
      By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "Qt6", but
      CMake did not find one.
    
      Could not find a package configuration file provided by "Qt6" with any of
      the following names:
    
        Qt6Config.cmake
        qt6-config.cmake
    
      Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
      to a directory containing one of the above files.  If "Qt6" provides a
      separate development package or SDK, be sure it has been installed.
    

    As per https://stackoverflow.com/questions/71086422/cmake-cannot-find-packages-within-qt6-installation I tried manually setting the Qt6 dir (although that somehow defeats the purpose of Kits, no?), by providing this additional Cmake option:

    "-DQt6_DIR=q:/Qt/6.8.2/msvc2022_64/lib/cmake/Qt6"
    

    But no change.
    Any suggestions?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Asperamanca
      wrote last edited by
      #2

      Well, after re-upgrading again, cmake works, but I did the downgrade for a reason.
      So a solution would be greatly appreciated.

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote last edited by
        #3

        What msvc version do you use?

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

        A 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          What msvc version do you use?

          A Offline
          A Offline
          Asperamanca
          wrote last edited by
          #4

          @Christian-Ehrlicher Now back to 19.44.35211 (Visual Studio 2022 17.14.8)

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Asperamanca
            wrote last edited by
            #5

            Strangely, the kits in Qt Creator detect it as 17.9.34622.214
            But I was always more than confused with Microsoft's version scheme(s)

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote last edited by
              #6

              17.9 should also work. Make sure to start with a clean build dir and also no CMakeLists.txt.user in the source tree

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

              A 1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                17.9 should also work. Make sure to start with a clean build dir and also no CMakeLists.txt.user in the source tree

                A Offline
                A Offline
                Asperamanca
                wrote last edited by Asperamanca
                #7

                @Christian-Ehrlicher said in Qt Creator: cmake errors after downgrade of MSVC compiler:

                17.9 should also work. Make sure to start with a clean build dir and also no CMakeLists.txt.user in the source tree

                I did everything, but forgot about .txt.user
                Will try that...

                EDIT:
                However, after the torturous downgrade/upgrade experience, my VS debugger decided to behave, so I'll keep you advice for the future.

                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