Results 1 to 7 of 7

Thread: qmake odditiy - Bug reports?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: qmake odditiy - Bug reports?

    This is pure semantics, but I stated

    Quote Originally Posted by Asperamanca View Post
    SOURCE and HEADER variables (and possibly others, too) seem to remember the values of past executions of qmake.
    (there was more, but this is the core of the statement)

    ...to which you replied...

    Quote Originally Posted by wysota View Post
    No, that's impossible
    If (as I now know) there is a mechanism to pre-define those values for all projects (using qconfig.pri), then my statement is basically correct: The value of the SOURCES variable can be remembered across multiple project, machine reboots, etc.
    Of course the description is misleading, since I did not (at that time) know the cause for this behaviour, and thus used the term "remembering", which is inaccurate.

    Please consider also that I did not plainly say this is a bug, instead I asked whether this would be considered a bug, or expected behaviour (which, as it turns out, it is).

    No blame was assigned to anyone, and I probably will not be able to find out how exactly the filenames ended up in qconfig.pri (I only know for sure that I never manually wrote anything in there).

    EDIT:
    As for IDE...I'm using QTCreator, which (right now) seems to be the most likely cause.

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

    Default Re: qmake odditiy - Bug reports?

    Quote Originally Posted by Asperamanca View Post
    This is pure semantics, but I stated


    (there was more, but this is the core of the statement)
    Which is false. Prior executions of qmake have nothing to do with contents of one of included files. It's not qmake that made changes to those files, it only modifies Makefiles (and creates a .pro file when run with -project switch).

    If (as I now know) there is a mechanism to pre-define those values for all projects (using qconfig.pri), then my statement is basically correct: The value of the SOURCES variable can be remembered across multiple project, machine reboots, etc.
    Which, again, has nothing to do with prior executions which was the essence of your statement. You can modify qconfig.pri (or any other included file) and run qmake once and it will "remember (nonexisting) prior executions".


    Of course the description is misleading, since I did not (at that time) know the cause for this behaviour, and thus used the term "remembering", which is inaccurate.
    On the other hand my "impossible" statement was accurate because the only file opened in write mode by qmake is the Makefile. It doesn't do any caching on its own.

    EDIT:
    As for IDE...I'm using QTCreator, which (right now) seems to be the most likely cause.
    I think so as well, Creator likes to modify wrong project files when you add a file to a project. If you had Qt opened as a project and config.pri was mentioned there somewhere explicitely and you tried adding a file to some project, it might have accidently landed in qconfig.pri. That's a bug in Creator, for sure
    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.


Similar Threads

  1. qmake sux a lot
    By singermornings in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 08:33
  2. Qt 4.3.1 & MinGW 5.1.3 & MSYS 1.0 qmake problem
    By mdecandia in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd October 2008, 16:52
  3. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.