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. QtCreator does not update binary

QtCreator does not update binary

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 3 Posters 1.5k 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.
  • M Offline
    M Offline
    Mark81
    wrote on last edited by
    #1

    I'm using version 4.7.1 and sometimes it happens that I make some changes to the source code, and after a successfully build the behavior of the exe is like before the changes.

    It's very odd because:

    • the object files and exe file are actually written (new timestamp)
    • it happens in both shadow build and not
    • even a full rebuild doesn't fix
    • also restart QtCreator doesn't help

    The only way is to manually delete the output folder and rebuild again. It's very frustrating yet for the time do rebuild all, but when you're debugging something it's not so easy to understand your changes are not executed!

    It's a known bug or there might be something wrong on my system? I'm running Qt5.11.0 on Windows 7 (fresh install since 3 days).

    K 1 Reply Last reply
    0
    • M Mark81

      I'm using version 4.7.1 and sometimes it happens that I make some changes to the source code, and after a successfully build the behavior of the exe is like before the changes.

      It's very odd because:

      • the object files and exe file are actually written (new timestamp)
      • it happens in both shadow build and not
      • even a full rebuild doesn't fix
      • also restart QtCreator doesn't help

      The only way is to manually delete the output folder and rebuild again. It's very frustrating yet for the time do rebuild all, but when you're debugging something it's not so easy to understand your changes are not executed!

      It's a known bug or there might be something wrong on my system? I'm running Qt5.11.0 on Windows 7 (fresh install since 3 days).

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Mark81

      Did you check if all files (respectively those changed) are listed in the .pro file?

      At least in my case this seems to be teh issue, when I got similar behaviour. Especially included files are of an issue here.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mark81
        wrote on last edited by
        #3

        Yes, they are included in the pro file. They are standard Qt classes.

        K 1 Reply Last reply
        0
        • M Mark81

          Yes, they are included in the pro file. They are standard Qt classes.

          K Offline
          K Offline
          koahnig
          wrote on last edited by aha_1980
          #4

          @Mark81

          You are changing the source code of Qt modules?
          Are you sure that they are not being confused with the "standard" modules then?

          Probably you need to give an example how they are listed in .pro.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          1
          • M Offline
            M Offline
            Mark81
            wrote on last edited by
            #5

            No, they are just my classes! It's hard to provide an example... it happens sometime even creating a new project, adding a C++ class e change something.
            Of course it does not happen always! For example today it never happened...

            kshegunovK 1 Reply Last reply
            0
            • M Mark81

              No, they are just my classes! It's hard to provide an example... it happens sometime even creating a new project, adding a C++ class e change something.
              Of course it does not happen always! For example today it never happened...

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by
              #6

              Is it possible you have files with the same name in different folders? I have had once a case where one main.o had (partially) overwritten another main.o generated from two different source files.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              2

              • Login

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