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. Project ERROR: Cannot run compiler 'g++'
Forum Updated to NodeBB v4.3 + New Features

Project ERROR: Cannot run compiler 'g++'

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
12 Posts 6 Posters 11.7k 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.
  • M MrShawn

    Hi,
    I just reinstalled Qt and Qt creator on a windows 10 machine and am having this error. I tried to spend some time on it and could not find a solution. I am hoping someone smarter than me can provide some insight on how to solve the problem. Qt Version 5.11.

    Project ERROR: Cannot run compiler 'g++'. Output:
    ===================
    ===================
    Maybe you forgot to setup the environment?
    11:00:09: The process "C:\Qt\5.11.0\mingw53_32\bin\qmake.exe" exited with code 3.
    Error while building/deploying project 6528Test (kit: MyKit)
    When executing step "qmake"
    

    I am using mingw 5.3 and used the online installer, just like every time before. Also when I load projects at the start I get this error, and nothing but the .pro file is loaded.

    Running Windows Runtime device detection.
    No winrtrunner.exe found.
    

    What is interesting is at one point I had Qt installed and running, and then suddenly it was removed from the machine - since then I am having this issue. I did add the mingw compiler directory to the windows Path variable and can call it freely in the cmd prompt.

    g++ --version
    g++ (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 5.3.0
    Copyright (C) 2015 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    

    I have looked and looked for awhile and tried a few things that I see but everyone's reponse on problems is that MSVC++ compiler is missing but I am using mingw not MSVC++.

    Here's MyKiy:
    0_1542201929702_5f219fc0-1b50-4583-a95b-178879eb74b3-image.png

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @MrShawn Did you try to delete the *.pro.user file?

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

    A 1 Reply Last reply
    2
    • M Offline
      M Offline
      MrShawn
      wrote on last edited by
      #3

      I just tried that, no luck still got the same errors.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Hi,

        Did you check the PATH environment variable in the Build part of the Project panel ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @MrShawn Did you try to delete the *.pro.user file?

          A Offline
          A Offline
          Asha
          wrote on last edited by
          #5

          Hi,
          how to delete the pro file?..I am very new to this qt..please let me know..

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @Asha it's the .pro.user file that is mentioned. Deleting it is unrelated to Qt, just use your file manager or a terminal to delete the file.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • A Offline
              A Offline
              Asha
              wrote on last edited by
              #7

              Thankyou for the replay, now after building and running a small application ,I am getting Application output is ,"cannot run: No command given",what it means, and how to solve this..

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Asha
                wrote on last edited by
                #8

                After deleting that .pro file what will be the next step...

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Asha
                  wrote on last edited by
                  #9

                  Hi,
                  I am very new this qt,please help me,getting error "cannot run: No command given",and the device is connecting but sftp connection is not showing anything...

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Did you check the settings of your project ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #11

                      Hey, I'm having the same or similar issue, see
                      (link [https://forum.qt.io/topic/111868/cannot-run-compiler-g-output/2])

                      deleting .pro.user file did not help
                      reinstalling qt did also not help

                      Somebody already found a solution?

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        Juglugs
                        wrote on last edited by Juglugs
                        #12

                        I had the same error. sudo apt install build-essential worked for me.

                        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