[Qt-interest] Reason for separate INCLUDEPATH and DEPENDPATH in qmake
Daniel Price
daniel.price at fxhome.com
Mon Sep 13 17:33:54 CEST 2010
Welcome to the wonderful world of QMake! Automatic dependency tracking? Who needs it!
Seriously I've been bitten by this more times than I can count. Library dependencies are particularly insidious. In fact I've found the PRE_TARGETDEPS only seems to work if all projects are part of a SUBDIR which isn't always practical.
If you can, I recommend CMake instead.
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Jan Kundrát
> Sent: 13 September 2010 16:25
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] Reason for separate INCLUDEPATH and DEPENDPATH
> in qmake
>
> Hi,
> I just got bitten by a .pro file which did not include all of the
> INCLUDEPATH directories in the DEPENDPATH.
>
> I changed the signature of a constructor of one class (last parameter
> got removed) and expected the compiler to spit out and error on all
> places which were actually calling said constructor. Unfortunately, one
> place got undetected, the generated object files even passed through
> the linker and I got a nasty segfault at runtime (Gentoo Linux x86, not
> using --as-needed linking or qnything special).
>
> So, now I wonder if there is any real use case for having INCLUDEPATH
> and DEPENDPATH with different values -- perhaps QMake could somehow
> warn if they do not match? Or am I missing something obvious here?
>
> With kind regards,
> Jan
>
> --
> cd /local/pub && more beer > /dev/mouth
This email is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. Errors and Omissions Excluded. If you are not the intended recipient please notify the sender. Please delete the message from all places in your computer where it is stored. You should not copy the email or use it for any purpose or disclose its contents to any other person. To do so may be unlawful. Email is an informal means of communicating and may be subject to data corruption accidentally or deliberately. For this reason it is inappropriate to rely on advice contained in an email without obtaining written confirmation of it first.
FXhome Limited is a limited company registered in England and Wales. Registered number: 04172812. Registered office: The Henderson Business Centre, Ivy Road, Norwich, Norfolk, NR5 8BF, U.K.
More information about the Qt-interest-old
mailing list