[Qt-interest] qmake / MinGW and stale libraries
andy fillebrown
andy.fillebrown at gmail.com
Wed Oct 5 13:00:21 CEST 2011
Are you using the DEPENDPATH qmake variable? If the library's header
directories are not in the app's DEPENDPATH variable then the app's
Makefile will not add the library's headers as dependencies.
Cheers,
~ andy.f
On Wed, Oct 5, 2011 at 4:29 AM, Schimkowitsch Robert
<Robert.Schimkowitsch at andritz.com> wrote:
> Hi,
>
> with qmake, I often have the problem of "stale libraries", libs that
> seemingly haven't been recompiled correctly despite changes to the code.
>
> I have the most serious problems in folders where I have two project
> essentially compiling the same code, one an app (for testing) , one a lib
> (for other projects to use).
>
> They use the same source files, plus the test app has a main.cpp, and
> sometimes a few extra classes.
>
> One thing I often see are leftover Makefiles that I have to delete manually
> before the resulting lib is any good.
>
> In many cases where I simply can't know anymore which of my libraries is
> stale, I do a complete clean (plus a manual delete of the Makefiles, plus a
> manual delete of the output binaries), then take a break as the whole bunch
> of libraries is re-compiled.
>
> I am already using
> CONFIG += create_prl
> and
> CONFIG += link_prl
>
> in all my libraries and applications, respectively.
>
> Are there any ways to further improve qmake's capabilities to detect when it
> should re-run?
>
> Or are we talking mingw limitation here as well?
>
> Kind regards
>
> Robert Schimkowitsch
>
> ________________________________
>
> This message and any attachments are solely for the use of the intended
> recipients. They may contain privileged and/or confidential information or
> other information protected from disclosure. If you are not an intended
> recipient, you are hereby notified that you received this email in error and
> that any review, dissemination, distribution or copying of this email and
> any attachment is strictly prohibited. If you have received this email in
> error, please contact the sender and delete the message and any attachment
> from your system.
>
> ANDRITZ HYDRO GmbH
> Rechtsform/ Legal form: Gesellschaft mit beschrankter Haftung / Corporation
> Firmensitz/ Registered seat: Wien
> Firmenbuchgericht/ Court of registry: Handelsgericht Wien
> Firmenbuchnummer/ Company registration: FN 61833 g
> DVR: 0605077
> UID-Nr.: ATU14756806
>
> Thank You.
>
> ________________________________
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
More information about the Qt-interest-old
mailing list