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
Forum Updated to NodeBB v4.3 + New Features

no CMAKE_CXX_COMPILER

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
11 Posts 3 Posters 525 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.
  • Christian EhrlicherC Online
    Christian EhrlicherC Online
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on 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 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!)

      Christian EhrlicherC 1 Reply Last reply
      0
      • M m5p3nc3r

        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!)

        Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 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 last edited by
          #5

          Sorry - which configuration?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            m5p3nc3r
            wrote on 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 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
              • cristian-adamC Offline
                cristian-adamC Offline
                cristian-adam
                wrote on 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 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 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 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

                      • Login

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