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. Qtcreator builds from old sources
Forum Updated to NodeBB v4.3 + New Features

Qtcreator builds from old sources

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 5.0k 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.
  • H Offline
    H Offline
    harlequin.64
    wrote on last edited by
    #1

    I'm trying to write a small app that will read an xml file. but for the moment I am stuck because only some of the changes I make are actually shown in the application.
    The program keeps building an old version of the program in some way ...

    I tried cleaning the project both from the interface and manually.
    I tried creating a new project and moving the code into the new project and that didn't work.
    I tried to move the code in a new function and even that didn't work.
    I tried making changes to the interface and added code in the same source file... the changes worked but the old code keeps giving me messages that are by now ancient.

    I have no warning or any kind of build issues and I am definitely out of ideas now

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      You can try to clean the project and then to rebuild it. You can also execute qmake manually from the console.

      [quote author="harlequin.64" date="1304444444"]
      I tried creating a new project and moving the code into the new project and that didn't work.
      [/quote]

      Are you sure in your source at all?

      Regards,
      Leon

      http://anavi.org/

      1 Reply Last reply
      0
      • H Offline
        H Offline
        harlequin.64
        wrote on last edited by
        #3

        Yes. I print some stuff to the terminal so I am sure that I didn't mistake the file or forget to delete something.
        The output to the terminal is something from the beginning when I was still testing to see if it runs.
        Since then I have added a bit more code and when it came time to test it i still got the old trace messages in the console.

        I am new to qt so I don't know if this helps but I checked the run in terminal option in the project menu

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          Can you share some source code and output?

          http://anavi.org/

          1 Reply Last reply
          0
          • H Offline
            H Offline
            harlequin.64
            wrote on last edited by
            #5

            Not right now. Tomorow

            1 Reply Last reply
            0
            • ? This user is from outside of this forum
              ? This user is from outside of this forum
              Guest
              wrote on last edited by
              #6

              Same happened here. My approach:

              • Make sure the executable is deleted when make-cleaning the project.
              • Also, make sure the cleaning option removes any file other than ui_*, *.cpp & *.h
              • If on Linux, use touch command on every file you relate to. If not, make sure every file has been modified before compiling, so the compiler would take them into account.
              • Beware of Qt Designer's "shadow build" option... Toy with it a little bit and see if this helps.
              • Don't be shy to close and reopen Qt Designer, should you be using it.
              • Are you moving Qt sources between projects? You may be trying to compile older files. See the compiler's individual commands & outputs.

              Good luck!

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

                The build tools are based on modification times of files. So are you sure all the clocks build into the computers accessing the files are set up correctly? A fileserver being off by a couple of hours somewhere can cause a lot of trouble!

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  harlequin.64
                  wrote on last edited by
                  #8

                  In the end I think it was my fault. It was a big xml file and I didn't check every section to make sure everything was OK.
                  An army of debug output later I realized the problem was in the xml file.

                  Though it was a big coincidence that the new bad output was the same as the old good output
                  Sorry.

                  1 Reply Last reply
                  0
                  • ? This user is from outside of this forum
                    ? This user is from outside of this forum
                    Guest
                    wrote on last edited by
                    #9

                    BUT you rightfully worked it out. Congrats! ;)

                    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