Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Project ERROR: Cannot run compiler 'g++'. Output:
QtWS25 Last Chance

Project ERROR: Cannot run compiler 'g++'. Output:

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 3 Posters 1.9k 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.
  • J joseph_ho

    @JKSH, apologies for the late reply.
    In regard to your 2 suggestions:

    1. How do I run/test the MinGW 64-bit kit without running the Qt Creator?

    2. I've downloaded & installed Qt Creator on another computer, and it worked without any problems there. This was done after the aforementioned problems started.

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

    @joseph_ho said in Project ERROR: Cannot run compiler 'g++'. Output::

    How do I run/test the MinGW 64-bit kit without running the Qt Creator?

    In a terminal. Call

    qmake.exe
    mingw32-make.exe
    

    You can open a terminal using the shortcut created during Qt installation (doing so you make sure the environment is set up properly).

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

    J 1 Reply Last reply
    2
    • jsulmJ jsulm

      @joseph_ho said in Project ERROR: Cannot run compiler 'g++'. Output::

      How do I run/test the MinGW 64-bit kit without running the Qt Creator?

      In a terminal. Call

      qmake.exe
      mingw32-make.exe
      

      You can open a terminal using the shortcut created during Qt installation (doing so you make sure the environment is set up properly).

      J Offline
      J Offline
      joseph_ho
      wrote on last edited by
      #9

      @jsulm Do you mean like this?
      26e41a7a-33bb-40fc-812c-fd0dba27882b-image.png

      I've recently switched over to Qt Creator 4.8.2 (Enterprise) but still experiencing the same problems.
      I'm starting to suspect there might be caused by some corrupted leftover files or registries.

      jsulmJ 1 Reply Last reply
      0
      • J joseph_ho

        @jsulm Do you mean like this?
        26e41a7a-33bb-40fc-812c-fd0dba27882b-image.png

        I've recently switched over to Qt Creator 4.8.2 (Enterprise) but still experiencing the same problems.
        I'm starting to suspect there might be caused by some corrupted leftover files or registries.

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

        @joseph_ho You need to do these calls in your PROJECT directory...

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

        J 1 Reply Last reply
        0
        • jsulmJ jsulm

          @joseph_ho You need to do these calls in your PROJECT directory...

          J Offline
          J Offline
          joseph_ho
          wrote on last edited by
          #11

          @jsulm Is it like this?

          de3e9efa-fd72-4fa3-8592-4c83556ba55b-image.png

          jsulmJ 1 Reply Last reply
          0
          • J joseph_ho

            @jsulm Is it like this?

            de3e9efa-fd72-4fa3-8592-4c83556ba55b-image.png

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

            @joseph_ho Yes, but please use full paths to qmake and make.
            Also, you should use the command prompt from MinGW (you will find it in Windows start menu). You then will have ready made environment where you can call wmake/make without using full path.

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

            J 1 Reply Last reply
            2
            • jsulmJ jsulm

              @joseph_ho Yes, but please use full paths to qmake and make.
              Also, you should use the command prompt from MinGW (you will find it in Windows start menu). You then will have ready made environment where you can call wmake/make without using full path.

              J Offline
              J Offline
              joseph_ho
              wrote on last edited by
              #13

              @jsulm It is this, right?

              8d81df56-a75b-4b27-95ea-c09820097f84-image.png

              jsulmJ 1 Reply Last reply
              0
              • J joseph_ho

                @jsulm It is this, right?

                8d81df56-a75b-4b27-95ea-c09820097f84-image.png

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

                @joseph_ho said in Project ERROR: Cannot run compiler 'g++'. Output::

                It is this, right?

                Apparently not!
                Why do you call make/qmake inside the MinGW installation directory?! We actually already clarified that.
                You need to call it inside your project/build directory (from where you called qmake).

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

                J 1 Reply Last reply
                2
                • jsulmJ jsulm

                  @joseph_ho said in Project ERROR: Cannot run compiler 'g++'. Output::

                  It is this, right?

                  Apparently not!
                  Why do you call make/qmake inside the MinGW installation directory?! We actually already clarified that.
                  You need to call it inside your project/build directory (from where you called qmake).

                  J Offline
                  J Offline
                  joseph_ho
                  wrote on last edited by
                  #15

                  @jsulm could you provide an example? I'm really confused by all this

                  jsulmJ 1 Reply Last reply
                  0
                  • J joseph_ho

                    @jsulm could you provide an example? I'm really confused by all this

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

                    @joseph_ho

                    cd YOUR_PROJECT_DIR
                    PATH_TO_YOUR_QMAKE/qmake.exe
                    PATH_TO_YOUR_MAKE/mingw32-make.exe
                    

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

                    J 1 Reply Last reply
                    2
                    • jsulmJ jsulm

                      @joseph_ho

                      cd YOUR_PROJECT_DIR
                      PATH_TO_YOUR_QMAKE/qmake.exe
                      PATH_TO_YOUR_MAKE/mingw32-make.exe
                      
                      J Offline
                      J Offline
                      joseph_ho
                      wrote on last edited by
                      #17

                      @jsulm its something like this, is it?

                      af05756d-4b22-446c-9230-385f3481ef87-image.png

                      jsulmJ 1 Reply Last reply
                      0
                      • J joseph_ho

                        @jsulm its something like this, is it?

                        af05756d-4b22-446c-9230-385f3481ef87-image.png

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

                        @joseph_ho You should use the command prompt from MinGW installation, then the environment will be setup and ready.

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

                        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