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. no CMAKE_CXX_COMPILER
QtWS25 Last Chance

no CMAKE_CXX_COMPILER

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
11 Posts 3 Posters 339 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.
  • M Offline
    M Offline
    m5p3nc3r
    wrote on 24 Mar 2025, 16:25 last edited by
    #1

    Hi Guys

    After coming back from Embedded World, and not having used QT for over 15 years, I though I'd give it a look again.

    I installed QtCreator using the qt-inline-installer-windows-arm64-4.9.0, which I believe is the latest, and created a test project using the new project wizard.

    I get the following 'Issues':

    C:\Users\matth\projects\QT_Test\CMakeLists.txt:3: error: No CMAKE_CXX_COMPILER could be found.
    
    Tell CMake where to find the compiler by setting either the environment
    variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.
    :-1: error: The command "C:\Qt\Tools\CMake\bin\cmake.exe -S C:/Users/matth/projects/QT_Test -B C:/Users/matth/projects/QT_Test/build/Desktop_Qt_6_8_2_MSVC2022_ARM64-Debug" terminated with exit code 1.
    :-1: error: CMake project configuration failed. No CMake configuration for build type "Debug" found. Check General Messages for more information.
    

    Having done some investigation, I can see the compiler listed under the Kits
    781d091a-b63b-4474-a504-dec3770f1088-image.png

    And I can also see a compiler listed under the current kit configuration
    c9699db0-cc5b-400f-abea-f0820b54bffa-image.png

    The compilers were installed using the MSFT Visual Studio Installer app, and are all up to date.

    Your help is appreciated!

    1 Reply Last reply
    0
    • C Christian Ehrlicher moved this topic from Installation and Deployment on 24 Mar 2025, 16:30
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 24 Mar 2025, 16:31 last edited by
      #2

      Move your mouse over the yellow exclamation mark to see what is wrong.

      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
      • M Offline
        M Offline
        m5p3nc3r
        wrote on 24 Mar 2025, 16:39 last edited by
        #3

        I get this:

        image.png

        But its not telling me anything about how to fix it. Does the MSVC toolchain not have a valid C/C++ compiler in it? If not, where do I get one from for Windows (I a linux developer, not sure I'm enjoying the windows development world!)

        C 1 Reply Last reply 24 Mar 2025, 16:42
        0
        • M m5p3nc3r
          24 Mar 2025, 16:39

          I get this:

          image.png

          But its not telling me anything about how to fix it. Does the MSVC toolchain not have a valid C/C++ compiler in it? If not, where do I get one from for Windows (I a linux developer, not sure I'm enjoying the windows development world!)

          C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 24 Mar 2025, 16:42 last edited by
          #4

          @m5p3nc3r said in no CMAKE_CXX_COMPILER:

          But its not telling me anything about how to fix it.

          Look at this configuration and see if the paths are correct would be a start.

          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
          • M Offline
            M Offline
            m5p3nc3r
            wrote on 24 Mar 2025, 16:51 last edited by
            #5

            Sorry - which configuration?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              m5p3nc3r
              wrote on 24 Mar 2025, 17:01 last edited by
              #6

              I have checked the location of the auto-detected c/c++ compilers and they seem to be correct.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                m5p3nc3r
                wrote on 24 Mar 2025, 17:22 last edited by
                #7

                Some posts I'm finding suggest that CMake needs to be run from a 'Visual Studio Command Prompt'. But I don't have VS installed, just the toolchain components from the VS Installer app. I do have VS Code installed, but that doesn't have the option of a 'Command Prompt'.

                I have spent way too much time on trying to get a simple QT 'Hello World' app running here :o(

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  cristian-adam
                  wrote on 24 Mar 2025, 18:23 last edited by
                  #8

                  Qt Creator will use the vcvars*.bat files to determine the environment for the Visual C++ compiler. Running these vcvars*.bat files takes time and therefore they are done asynchronously.

                  Unfortunately Microsoft is doing updates pretty often and Qt Creator sometimes needs a little "push" to get things right. In Preferences > Kits > Compilers do the following:

                  1. Click on Remove All
                  2. Click on Re-detect
                  3. Restart Qt Creator and wait a few minutes until the detection has been done.

                  Alternatively you can install the free compiler option (MinGW) which doesn't have this issue.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    m5p3nc3r
                    wrote on 24 Mar 2025, 21:27 last edited by
                    #9

                    Ok, thanks for the feedback. I tried your approach, but it didn't seem to work for me. Waited over 10 minutes, but still nothing.

                    I am going to try the MinGW route - this is a tool I haven't used in /forever/!!

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      m5p3nc3r
                      wrote on 24 Mar 2025, 22:50 last edited by
                      #10

                      MinGW was a no-go. I think it doesn't like windows on arm... So last attempt - wsl2 and ubuntu... Installing now - fingers crossed!

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        m5p3nc3r
                        wrote on 24 Mar 2025, 23:15 last edited by
                        #11

                        WSL is my friend - this worked for me.

                        Thanks to everybody for your help in this thread. Now to try and create something :o)

                        1 Reply Last reply
                        1

                        3/11

                        24 Mar 2025, 16:39

                        topic:navigator.unread, 8
                        • Login

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