[Qt-interest] qmake / MinGW and stale libraries
Andreas Pakulat
apaku at gmx.de
Wed Oct 5 15:32:44 CEST 2011
On 05.10.11 14:27:27, Schimkowitsch Robert wrote:
> I have a subdirs project for the main application.
> I'd rather not have to create one for each test configuration.
>
> One thing I don't quite understand:
> I "build" the application. The library files (*.a) that I worked on have
> changed, and now have a different modify date as well as (in most cases)
> a different file size.
>
> Why doesn't qmake recognize the change and simply re-link the library?
Because it cannot. QMake doesn't do any compilation, linking etc. it
merely generates Makefiles (or VS/XCode project files). If the generated
Makefile has no rule to update the app whenever a lib changes, then
maybe something is still missing in your qmake project file...
Note that the create_prl/link_prl options are meant for static libs and
they only help you get all the correct linker flags to link against all
necessary libs. They don't do anything for dependency-tracking/updating
of makefile rules.
You may want to try listing the 2 libs in the PRE/POST_TARGETDEPS qmake
variable in your app, that should generate a dependency rule in the
Makefile as far as I can see from the docs.
Andreas
More information about the Qt-interest-old
mailing list