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. qmake error - QT Creator 3.1.1 (opensource)
Qt 6.11 is out! See what's new in the release blog

qmake error - QT Creator 3.1.1 (opensource)

Scheduled Pinned Locked Moved Unsolved General and Desktop
21 Posts 4 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.
  • N Offline
    N Offline
    ntn7
    wrote on last edited by
    #1

    Hi all,

    Hoping for some assistance/guidance on an issue I am experiencing. I've done a fresh install of QT Creator 3.1.1 (this is the software required for a course I am attempting).

    After trying a basic program I receive the below error when attempting to build the program.

    13:56:37: Running steps for project hello...
    13:56:37: Could not start process "C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qmake.exe" C:\Users\nnathaniel\Downloads\hello\hello\hello.pro -r -spec win32-g++ "CONFIG+=debug"
    Error while building/deploying project hello (kit: Desktop)
    When executing step 'qmake'
    13:56:37: Elapsed time: 00:00.

    I have checked the kit, Qt Versions and Compilers and all seems to be in order there. Also tried this on a different laptop with the same error :|

    0364a41e-8d6b-4f54-bf9e-21fc8f7a83b3-image.png

    45c3fbfb-7110-44bd-9573-86d92a0f2cc7-image.png

    29709bf8-5381-4de5-8720-12c04d0e4058-image.png

    OS: Windows 10 Enterprise

    Really hope someone can point me in the right direction.

    ps. I have tried uninstalling and reinstalling multiple times :|

    VRoninV 1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      @ntn7 said in qmake error - QT Creator 3.1.1 (opensource):

      hello.pro

      Can you post the contents of hello.pro?

      @ntn7 said in qmake error - QT Creator 3.1.1 (opensource):

      a fresh install of QT Creator 3.1.1 (this is the software required for a course I am attempting).

      This version is 7 years old...

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      N 1 Reply Last reply
      0
      • VRoninV VRonin

        @ntn7 said in qmake error - QT Creator 3.1.1 (opensource):

        hello.pro

        Can you post the contents of hello.pro?

        @ntn7 said in qmake error - QT Creator 3.1.1 (opensource):

        a fresh install of QT Creator 3.1.1 (this is the software required for a course I am attempting).

        This version is 7 years old...

        N Offline
        N Offline
        ntn7
        wrote on last edited by VRonin
        #3

        @VRonin Thanks for your prompt response. I would like to get into a debate with the university regarding the software selection but don't see the point ;)

        #-------------------------------------------------
        #
        # Project created by QtCreator 2021-05-17T10:24:41
        #
        #-------------------------------------------------
        
        QT       += core gui
        
        greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
        
        
        TARGET = tst_hellotest
        
        
        TEMPLATE = app
        
        
        SOURCES += \
            main.cpp
        
        
        #include <QApplication>
        #include <QLabel>
        
        int main (int argc, char* argv[])
        {
            QApplication app(argc, argv);
            QLabel* label = new QLabel("HelloQT!");
            label->show();
            return app.exec();
        }
        
        1 Reply Last reply
        0
        • N ntn7

          Hi all,

          Hoping for some assistance/guidance on an issue I am experiencing. I've done a fresh install of QT Creator 3.1.1 (this is the software required for a course I am attempting).

          After trying a basic program I receive the below error when attempting to build the program.

          13:56:37: Running steps for project hello...
          13:56:37: Could not start process "C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qmake.exe" C:\Users\nnathaniel\Downloads\hello\hello\hello.pro -r -spec win32-g++ "CONFIG+=debug"
          Error while building/deploying project hello (kit: Desktop)
          When executing step 'qmake'
          13:56:37: Elapsed time: 00:00.

          I have checked the kit, Qt Versions and Compilers and all seems to be in order there. Also tried this on a different laptop with the same error :|

          0364a41e-8d6b-4f54-bf9e-21fc8f7a83b3-image.png

          45c3fbfb-7110-44bd-9573-86d92a0f2cc7-image.png

          29709bf8-5381-4de5-8720-12c04d0e4058-image.png

          OS: Windows 10 Enterprise

          Really hope someone can point me in the right direction.

          ps. I have tried uninstalling and reinstalling multiple times :|

          VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          Project looks good

          @ntn7 said in qmake error - QT Creator 3.1.1 (opensource):

          Could not start process "C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qmake.exe

          I suspect some permissioning issue. Try opening cmd and typing C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qmake.exe --help

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          N 1 Reply Last reply
          0
          • VRoninV VRonin

            Project looks good

            @ntn7 said in qmake error - QT Creator 3.1.1 (opensource):

            Could not start process "C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qmake.exe

            I suspect some permissioning issue. Try opening cmd and typing C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qmake.exe --help

            N Offline
            N Offline
            ntn7
            wrote on last edited by
            #5

            @VRonin I was able to run this command... I assuming the below is what the response should be.

            Does it make a difference that the project file I'm attempting to run is not in the same folder as Qt?

            31bc9dd6-4006-40e1-a3c6-a11b95f255cd-image.png

            1 Reply Last reply
            0
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              looks like it's working, let's try running it manually.
              in cmd, type

              C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qtenv2.bat
              cd C:\Users\nnathaniel\Downloads\hello\hello
              qmake
              mingw32-make
              

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              N 1 Reply Last reply
              0
              • VRoninV VRonin

                looks like it's working, let's try running it manually.
                in cmd, type

                C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qtenv2.bat
                cd C:\Users\nnathaniel\Downloads\hello\hello
                qmake
                mingw32-make
                
                N Offline
                N Offline
                ntn7
                wrote on last edited by
                #7

                @VRonin ran it twice (wasn't sure i did it right the first time).

                9ab17270-17b0-4cde-89b9-f0524fc5cbb0-image.png

                3f6462df-b85e-49e1-b017-b2917c570f6c-image.png

                I really appreciate your assistance here... (I will be offline for a couple of hours)

                1 Reply Last reply
                0
                • VRoninV Offline
                  VRoninV Offline
                  VRonin
                  wrote on last edited by VRonin
                  #8

                  Looks like it compiled succesfully, do you have tst_hellotest.exe somewhere in your project folder?

                  "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                  ~Napoleon Bonaparte

                  On a crusade to banish setIndexWidget() from the holy land of Qt

                  N 1 Reply Last reply
                  0
                  • VRoninV VRonin

                    Looks like it compiled succesfully, do you have tst_hellotest.exe somewhere in your project folder?

                    N Offline
                    N Offline
                    ntn7
                    wrote on last edited by
                    #9

                    @VRonin apologies for the delayed response. I do have that .exe file and when i try to run it i get the below errors:
                    1b16633a-e871-4724-91e7-9b0788fcebde-image.png

                    32e8ebad-ba38-490c-bcc5-ecc21bf15941-image.png

                    a8987bc3-b4ee-4cd9-a07e-4fcd5b1600d1-image.png

                    9384d656-7877-466c-84a9-4411546cacd9-image.png

                    1 Reply Last reply
                    0
                    • VRoninV Offline
                      VRoninV Offline
                      VRonin
                      wrote on last edited by
                      #10

                      don't double click it, run it from the console (replace Path\To\Executable with the path to tst_hellotest.exe.

                      C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qtenv2.bat
                      cd Path\To\Executable\tst_hellotest.exe
                      

                      In any case this proves you can compile a program with qmake/mingw32-make so try opening the project with Qt Creator again

                      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                      ~Napoleon Bonaparte

                      On a crusade to banish setIndexWidget() from the holy land of Qt

                      N 1 Reply Last reply
                      0
                      • VRoninV VRonin

                        don't double click it, run it from the console (replace Path\To\Executable with the path to tst_hellotest.exe.

                        C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qtenv2.bat
                        cd Path\To\Executable\tst_hellotest.exe
                        

                        In any case this proves you can compile a program with qmake/mingw32-make so try opening the project with Qt Creator again

                        N Offline
                        N Offline
                        ntn7
                        wrote on last edited by
                        #11

                        @VRonin I've run it via the console and that works.

                        Tried again via Qt creator and get the same error as before
                        13:01:47: Running steps for project hello...
                        13:01:47: Could not start process "C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qmake.exe" C:\Users\nnathaniel\Downloads\hello\hello\hello.pro -r -spec win32-g++ "CONFIG+=debug"
                        Error while building/deploying project hello (kit: Desktop)
                        When executing step 'qmake'
                        13:01:47: Elapsed time: 00:00.

                        J.HilkJ 1 Reply Last reply
                        0
                        • N ntn7

                          @VRonin I've run it via the console and that works.

                          Tried again via Qt creator and get the same error as before
                          13:01:47: Running steps for project hello...
                          13:01:47: Could not start process "C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qmake.exe" C:\Users\nnathaniel\Downloads\hello\hello\hello.pro -r -spec win32-g++ "CONFIG+=debug"
                          Error while building/deploying project hello (kit: Desktop)
                          When executing step 'qmake'
                          13:01:47: Elapsed time: 00:00.

                          J.HilkJ Offline
                          J.HilkJ Offline
                          J.Hilk
                          Moderators
                          wrote on last edited by
                          #12

                          @ntn7 what kit is selected, when you run it from QtCreator, the auto detected one or the manual one?


                          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                          Q: What's that?
                          A: It's blue light.
                          Q: What does it do?
                          A: It turns blue.

                          N 1 Reply Last reply
                          0
                          • J.HilkJ J.Hilk

                            @ntn7 what kit is selected, when you run it from QtCreator, the auto detected one or the manual one?

                            N Offline
                            N Offline
                            ntn7
                            wrote on last edited by
                            #13

                            @J-Hilk Hi, below are the kit details that are being used. this is what was setup by default, i haven't changed this.

                            b5ba1c7f-c26e-4bd2-9772-f455509921ac-image.png

                            jsulmJ 1 Reply Last reply
                            0
                            • N ntn7

                              @J-Hilk Hi, below are the kit details that are being used. this is what was setup by default, i haven't changed this.

                              b5ba1c7f-c26e-4bd2-9772-f455509921ac-image.png

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

                              @ntn7 You did not answer the question. As you can see there are 2 Kits, so which one do you use?

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

                              N 1 Reply Last reply
                              1
                              • jsulmJ jsulm

                                @ntn7 You did not answer the question. As you can see there are 2 Kits, so which one do you use?

                                N Offline
                                N Offline
                                ntn7
                                wrote on last edited by
                                #15

                                @jsulm is this the detail you looking for? :|

                                6d00c5a2-1d55-43b2-bd82-506b88a6829e-image.png

                                if not, please will you point me to the right direction and I'll provide whats needed

                                jsulmJ 1 Reply Last reply
                                1
                                • N ntn7

                                  @jsulm is this the detail you looking for? :|

                                  6d00c5a2-1d55-43b2-bd82-506b88a6829e-image.png

                                  if not, please will you point me to the right direction and I'll provide whats needed

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

                                  @ntn7 @J-Hilk So, it's the manually added Kit

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

                                  J.HilkJ N 2 Replies Last reply
                                  1
                                  • jsulmJ jsulm

                                    @ntn7 @J-Hilk So, it's the manually added Kit

                                    J.HilkJ Offline
                                    J.HilkJ Offline
                                    J.Hilk
                                    Moderators
                                    wrote on last edited by J.Hilk
                                    #17

                                    @jsulm alright
                                    @ntn7

                                    so change it to the auto generated kit, who knows what settings the manual kit has.

                                    on the left hand side in the menu bar the top most icons, there's (above the question mark) the project tab.

                                    select that, enable the auto detection kit, and try compiling and running again


                                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                    Q: What's that?
                                    A: It's blue light.
                                    Q: What does it do?
                                    A: It turns blue.

                                    1 Reply Last reply
                                    0
                                    • jsulmJ jsulm

                                      @ntn7 @J-Hilk So, it's the manually added Kit

                                      N Offline
                                      N Offline
                                      ntn7
                                      wrote on last edited by
                                      #18

                                      @jsulm I'm not sure how that was created but after removing it, it works now.
                                      Thank you all for your assistance @VRonin @J-Hilk
                                      Apologies for the extremely basic question :|

                                      jsulmJ 1 Reply Last reply
                                      2
                                      • N ntn7

                                        @jsulm I'm not sure how that was created but after removing it, it works now.
                                        Thank you all for your assistance @VRonin @J-Hilk
                                        Apologies for the extremely basic question :|

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

                                        @ntn7 said in qmake error - QT Creator 3.1.1 (opensource):

                                        after removing it

                                        You don't have to remove it, you can easily switch between different Kits

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

                                        1 Reply Last reply
                                        0
                                        • N Offline
                                          N Offline
                                          ntn7
                                          wrote on last edited by ntn7
                                          #20

                                          ok, I really am a little lost now... I've changed the location of the above project and I receive the error again... I've checked the kit thats being used and its only the one referenced above.

                                          4743ed42-f6a8-444d-8c8a-98de7c2114d8-image.png

                                          what am i doing wrong? :(
                                          am i perhaps building this incorrectly?

                                          jsulmJ 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