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

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 3 Posters 2.1k 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.
  • J JKSH
    6 Sept 2019, 22:42

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

    The odd thing was that when I've first installed and created the project, I could run it without any problems using qmake. A few hours later, this problem happened.

    I can't see what's causing the problem, sorry.

    1. Does it also happen if you use the MinGW 64-bit kit?
    2. Does it also happen if you use a different Windows account to run Qt Creator?
    J Offline
    J Offline
    joseph_ho
    wrote on 10 Oct 2019, 23:57 last edited by
    #7

    @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.

    J 1 Reply Last reply 11 Oct 2019, 04:19
    0
    • J joseph_ho
      10 Oct 2019, 23:57

      @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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 11 Oct 2019, 04:19 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 23 Oct 2019, 03:27
      2
      • J jsulm
        11 Oct 2019, 04:19

        @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 23 Oct 2019, 03:27 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.

        J 1 Reply Last reply 23 Oct 2019, 12:06
        0
        • J joseph_ho
          23 Oct 2019, 03:27

          @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.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 23 Oct 2019, 12:06 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 24 Oct 2019, 00:09
          0
          • J jsulm
            23 Oct 2019, 12:06

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

            J Offline
            J Offline
            joseph_ho
            wrote on 24 Oct 2019, 00:09 last edited by
            #11

            @jsulm Is it like this?

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

            J 1 Reply Last reply 24 Oct 2019, 04:37
            0
            • J joseph_ho
              24 Oct 2019, 00:09

              @jsulm Is it like this?

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

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 24 Oct 2019, 04:37 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 24 Oct 2019, 06:26
              2
              • J jsulm
                24 Oct 2019, 04:37

                @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 24 Oct 2019, 06:26 last edited by
                #13

                @jsulm It is this, right?

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

                J 1 Reply Last reply 24 Oct 2019, 07:30
                0
                • J joseph_ho
                  24 Oct 2019, 06:26

                  @jsulm It is this, right?

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

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 24 Oct 2019, 07:30 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 24 Oct 2019, 07:57
                  2
                  • J jsulm
                    24 Oct 2019, 07:30

                    @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 24 Oct 2019, 07:57 last edited by
                    #15

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

                    J 1 Reply Last reply 24 Oct 2019, 08:06
                    0
                    • J joseph_ho
                      24 Oct 2019, 07:57

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

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 24 Oct 2019, 08:06 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 30 Oct 2019, 01:06
                      2
                      • J jsulm
                        24 Oct 2019, 08:06

                        @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 30 Oct 2019, 01:06 last edited by
                        #17

                        @jsulm its something like this, is it?

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

                        J 1 Reply Last reply 30 Oct 2019, 05:47
                        0
                        • J joseph_ho
                          30 Oct 2019, 01:06

                          @jsulm its something like this, is it?

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

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 30 Oct 2019, 05:47 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