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. Error When executing step "qmake"
Forum Updated to NodeBB v4.3 + New Features

Error When executing step "qmake"

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
21 Posts 3 Posters 4.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.
  • John_ThessJ Offline
    John_ThessJ Offline
    John_Thess
    wrote on last edited by
    #1

    Hello programmers

    I met something strange in my work.
    I have created a database in QT using C++ and SQL.
    Everything worked properly, until I updated to QT v6.
    I don’t remember the previous version (5…).
    When I run the project in 6th version an error appeared repeatedly:

    Could not create directory "D:\work\build-D:workTheDataTheData-Desktop_Qt_6_2_2_MinGW_64_bit-Debug"
    Error while building/deploying project TheData (kit: Desktop Qt 6.2.2 MinGW 64-bit)
    When executing step "qmake"

    When I tried to created a new project using 6th version of QT everything worked properly, at least in the first steps (!!!)

    The compiler path is “C:\Qt\Tools\mingw900_64\bin\g++.exe”
    The default kit is “Desktop Qt 6.2.2 MinGW 64-bit

    I think it is not a matter of code, but if you would like to take a glance in my code I will upload it.

    Thanks in advance
    John

    My kits

    Kits.jpg

    My path
    Path.jpg

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      Fix your kits so the yellow and red icons disappear and then use the correct kit to configure your app.

      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
      • John_ThessJ Offline
        John_ThessJ Offline
        John_Thess
        wrote on last edited by
        #3

        I thank you for your prompt answer. Unfortunately, when I tried some changes using the suggested options, the result was just the same.

        For example, in the C++ compiler, the option “MinGQ 9.0.0 64-bit for C++” and the the option "MINGW" lead to no change.

        May be I skipped important options during installation.

        Thanks anyway

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

          Hi,

          Did you install MinGW through the online installer as well ?

          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
          • John_ThessJ Offline
            John_ThessJ Offline
            John_Thess
            wrote on last edited by
            #5

            Yes, as you wrote.
            The installation folder is "C:\MinGW"

            1 Reply Last reply
            0
            • John_ThessJ Offline
              John_ThessJ Offline
              John_Thess
              wrote on last edited by
              #6

              What makes me wonder above all is why the compiles works for new projects and does not work for the old one. Truly strange.

              1 Reply Last reply
              0
              • John_ThessJ Offline
                John_ThessJ Offline
                John_Thess
                wrote on last edited by
                #7

                @SGaist said in Error When executing step "qmake":

                MinGW

                Thanks to all.
                May be I go back to a previous version.

                1 Reply Last reply
                0
                • John_ThessJ Offline
                  John_ThessJ Offline
                  John_Thess
                  wrote on last edited by John_Thess
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • John_ThessJ Offline
                    John_ThessJ Offline
                    John_Thess
                    wrote on last edited by
                    #9

                    John_Thess less than a minute ago

                    Unfortunately, dear programmers, nothing works.
                    Might someone upload images with the right settings for compilers and kits?
                    I use Qt Creator 6.0.1 Based on Qt 6.2.2 (MSVC 2019, 64 bit)

                    I upload my current settingsImage.jpg
                    Image2.jpg
                    Image3.jpg

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

                      @John_Thess said in Error When executing step "qmake":

                      Could not create directory "D:\work\build-D:workTheDataTheData-Desktop_Qt_6_2_2_MinGW_64_bit-Debug"

                      Is it really the path you are getting ?
                      Did you already try to nuke the .pro.user file in your project directory and configure it again ?

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

                      John_ThessJ 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        @John_Thess said in Error When executing step "qmake":

                        Could not create directory "D:\work\build-D:workTheDataTheData-Desktop_Qt_6_2_2_MinGW_64_bit-Debug"

                        Is it really the path you are getting ?
                        Did you already try to nuke the .pro.user file in your project directory and configure it again ?

                        John_ThessJ Offline
                        John_ThessJ Offline
                        John_Thess
                        wrote on last edited by
                        #11

                        @SGaist The project, I created, is saved in folder named "work" in an external disk (D:\work)
                        I copy once again the Compile Output.

                        19:59:42: Running steps for project TheData...
                        19:59:42: Could not create directory "D:\work\build-D:workTheDataTheData-Desktop_Qt_6_2_2_MinGW_64_bit-Debug"
                        Error while building/deploying project TheData (kit: Desktop Qt 6.2.2 MinGW 64-bit)
                        When executing step "qmake"
                        19:59:42: Elapsed time: 00:00.

                        What do you mean by writing "nuke"? Excuse me, but Iam not a professional programmer, neither a native english speaker.
                        Thank you very much for interesting in my question.

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

                          Delete the .pro.user file as well as the build directory and reconfigure your project from scratch.

                          The automatically generated build path is invalid as it contains ":" which if memory serves well is not allowed in file path.

                          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
                          • John_ThessJ Offline
                            John_ThessJ Offline
                            John_Thess
                            wrote on last edited by
                            #13
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • John_ThessJ Offline
                              John_ThessJ Offline
                              John_Thess
                              wrote on last edited by
                              #14
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • John_ThessJ Offline
                                John_ThessJ Offline
                                John_Thess
                                wrote on last edited by
                                #15

                                That works. Thank you very much.
                                Your answer was very helpful and I' ve learned something I didn't Know.

                                One more question, please.

                                In my project, a text editor is included. In this editor, I included, among other tools, a button for font editing. A day after, I deleted this button, as well as the function, connected with it and the same function from the header file. I cleaned the project and I rebuilt it.
                                In the .moc file, the button still seems to be in the project.
                                What else is to be deleted?
                                ![0_1641419947451_Image5.jpg](Uploading 100%)

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

                                  Are you using the auto connect feature ?

                                  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
                                  • John_ThessJ Offline
                                    John_ThessJ Offline
                                    John_Thess
                                    wrote on last edited by
                                    #17

                                    I use the "go to slot" command from the right click menu.
                                    May be is better to write more code lines?
                                    For example (in an other project of mine):
                                    "QObject::connect(ui->changeIt, SIGNAL(clicked()), this, SLOT(setText()));
                                    //changeIt: the name of a button
                                    // setText: the function I call.

                                    Thanks SGaist...

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

                                      Do you have any slot named like on_<object name>_<signal name> ?

                                      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
                                      • John_ThessJ Offline
                                        John_ThessJ Offline
                                        John_Thess
                                        wrote on last edited by
                                        #19

                                        The part of code in the moc file is:
                                        Case 0: t→onSavebtn_clicked(); break;
                                        Case 1: t→newValues_clicked(); break;
                                        Case 2: t→onExitRbtn_clicked(); break;
                                        Case 0: t→onFontbtn_clicked(); break;
                                        //the last button is the one I deleted

                                        1 Reply Last reply
                                        0
                                        • John_ThessJ Offline
                                          John_ThessJ Offline
                                          John_Thess
                                          wrote on last edited by
                                          #20

                                          I read in a qt tutorial that it is better for programmers to avoid "Go to slot..." command.
                                          Do you agree with this advice?

                                          /being a new user I have to wait 600 seconds until I upload a new post.
                                          So our dialogue should be interrupted
                                          /

                                          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