Results 1 to 12 of 12

Thread: mingw32-make keeps rebuilding

  1. #1
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default mingw32-make keeps rebuilding

    I used mingw32-make to compile my Qt stuff and found that everytime i compile

    "mingw32-make myproject.pro" the mingw32 seems to recompile some of the files "not all the files.

    I was expecting that if i compile my project two times in a row , the second compile will just give me a message saying something like "nothing needs to be done" right? but in my case it will compile some (not all) project files

    please enlightened me of whats going on

    baray98

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: mingw32-make keeps rebuilding

    When make thinks that a dependency of an file changed, it gets recompiled.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: mingw32-make keeps rebuilding

    What happens if you invoke only "mingw32-make"?

  4. #4
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: mingw32-make keeps rebuilding

    i tried just using mingw32-make it will always compile the same files (not all) even i made sure that i did not change them.... very wierd....

    baray98

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: mingw32-make keeps rebuilding

    Quote Originally Posted by baray98 View Post
    i tried just using mingw32-make it will always compile the same files (not all) even i made sure that i did not change them....
    Do you have any backup software or antivirus running on your system?
    What extensions do those recompiled files have?

  6. #6
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: mingw32-make keeps rebuilding

    Do any files have a change date set in the future?

  7. #7
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: mingw32-make keeps rebuilding

    yes I have a antivirus running in my pc ,but my other projects runs normal (no recompiling of i wont make some changes)...

    spud:
    i don't understand what is "date set in the future" means

  8. #8
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: mingw32-make keeps rebuilding

    • open your project folder in explorer
    • activate the "detailled list" view
    • sort by the column "last changed", or similar
    • make sure that no date is more current than today

    Also I assume of course that the date of your computer is set correctly.

  9. #9
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: mingw32-make keeps rebuilding

    crykes!!!!!! i got some files thats has a time stamp of the future ... is the clock turning backwards?

    how can i set these dates to normal? i know this is my problem.. thanks to you SPUD!!!!

    baray98

  10. #10
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: mingw32-make keeps rebuilding

    Just open the file in an editor, make some unimportant change and save it. Then the file should have the current time stamp(granted that your computers clock is correct).
    As for why this happens, there can be a lot of reasons, depending on if the file was extracted from an archive, downloaded from a repository(cvs,svn...) or copied from somewhere...

  11. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: mingw32-make keeps rebuilding

    Quote Originally Posted by baray98 View Post
    i got some files thats has a time stamp of the future
    Usually make warns about such situation by outputting "clock skew detected" message.

  12. #12
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: mingw32-make keeps rebuilding

    i know the source of this probs its the new release of codeblocks i remember i created this file using thier class wizard... but then again thank you guys!! ang thats a lot...

    baray98

Similar Threads

  1. Window OS make distclean && qmake && make one line
    By patrik08 in forum General Programming
    Replies: 4
    Last Post: 22nd March 2007, 10:43
  2. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.