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. [SOLVED] How can I rebuild the project once I press F5 to start debugging?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How can I rebuild the project once I press F5 to start debugging?

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 3 Posters 3.4k 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.
  • V Offline
    V Offline
    vincegata
    wrote on last edited by
    #1

    Hello,

    How can I automatically rebuild the project once I press F5 to start debugging?

    Thank you.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      I guess you are talking about Qt Creator here?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        Do you want a complete rebuild or just a build that compiles the files that changed from the last build only?

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vincegata
          wrote on last edited by
          #4

          Right, I use Qt Creator for C++, non-qt project.

          Ideally it should invoke build only if I change any source files. I use my own make files that compile and build only files that have been changed. I should have been more specific from the start.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            This should work by default. Maybe you need to tweak some of the settings in global settings / Build an Run Settings

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              That should work.

              There are two options in Tools->Options->Build & Run->General that are relevant here:
              Make sure both "Always build before deploy" and "Always deploy before run" are checked.

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vincegata
                wrote on last edited by
                #7

                “Always deploy before run” did it - thank you!

                I do not have Tools->Options->Build & Run though (Qt Creatro 2.3.1) , it is in Tools->Options->Projects.

                I do not even know what they mean by deploy, help system is absent after the install. I think I cleared this option because I am not "deploying" my projects.

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tobias.hunger
                  wrote on last edited by
                  #8

                  Qt Creator Builds, deploys and only afterwards runs your app.

                  "Build" is basically "turning source code into executables"

                  "Deploy" is basically "getting everything into the right place to run stuff". That is a no-op for most desktop projects (though some do require a "make install" there), but is rather important when cross-compiling for embedded devices.

                  PS: Yes, those settings moved around a bit recently in an effort to make that dialog fit onto a typical netbook screen.

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vincegata
                    wrote on last edited by
                    #9

                    I see, thank you for explanation Tobias.

                    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