Results 1 to 4 of 4

Thread: vary hard problem to solve

  1. #1
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default vary hard problem to solve

    I have experienced a very confusing problem with qt and I share my experience with you.
    if system date at the qt installation time is ahead of the date after qt installation, for any reason (for example I corrected my system's wrong date after qt installation), you can't compile your qt programs and a command is infinitely executed when you issue the make command.
    the reason is, project configurations for making qt programs depend on some files in the qt installation, and every time .pro file is re-generated it has still an older date that the qt's files.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: vary hard problem to solve

    Maybe it helps if you first (= after time change) clean your project.

  3. #3
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: vary hard problem to solve

    no it doesn't solve the problem.
    because every new file generated would have still a date prior to qt installation.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: vary hard problem to solve

    It's not a problem with Qt but with make. It bases its decisions on what needs compiling based on the modification dates of files. You have to make sure all files marked as dependencies in the Makefile have a modification time in the past. If you don't have any wise tools to do that, just set your system clock back and use the "touch" command or its windows equivalent to change modification times of the relevant files. Then you can set the clock back to a proper value.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. The following user says thank you to wysota for this useful post:

    FS Lover (2nd July 2009)

Similar Threads

  1. How to solve this cc1plus: out of memory problem?
    By triperzonak in forum Qt Programming
    Replies: 2
    Last Post: 28th September 2008, 20:20
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. Replies: 12
    Last Post: 3rd April 2006, 06:11

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.