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.2k 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.
  • 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
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #21

                        It's known to be a bit fragile. Being explicit in your code will be better in the long run especially with regard to maintainability.

                        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

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved