[Interest] How to rebuild a Qt project which linked with a static library?

Vincent Cai wcai at cypress.com
Wed Jan 23 08:50:24 CET 2013


My mistake, I should give the full name of lib to PRE_TARGETDEPS.
Thanks a lot!
From: interest-bounces+wcai=cypress.com at qt-project.org [mailto:interest-bounces+wcai=cypress.com at qt-project.org] On Behalf Of Stefan Walter
Sent: 2013年1月23日 15:42
To: interest at qt-project.org
Subject: Re: [Interest] How to rebuild a Qt project which linked with a static library?

Hi Vincent,

please post also your .pro file content with the PRE_TARGETDEPS specification of yours.

Thanks,
Stefan

>>>
Von:

Vincent Cai <wcai at cypress.com<mailto:wcai at cypress.com>>

An:

Stefan Walter <Stefan.Walter at lisec.com<mailto:Stefan.Walter at lisec.com>>, "interest at qt-project.org<mailto:interest at qt-project.org>" <interest at qt-project.org<mailto:interest at qt-project.org>>

Datum:

23.1.2013 11:31

Betreff:

Re: [Interest] How to rebuild a Qt project which linked with a    static library?

Hi Stefan,
       Thanks for your reply.
        Unfortunately, when I add the lib the PRE_TARGETDEPS, I can’t pass compiling, which report below error:

mingw32-make[2]: *** No rule to make target `TSA_Base_X86_GCC', needed by `debug/tst_unittesttest.exe'. Stop.
TSA_Base_X86_GCC is my static lib name which is created by other application.

Vincent.
From: interest-bounces+wcai=cypress.com at qt-project.org<mailto:interest-bounces+wcai=cypress.com at qt-project.org> [mailto:interest-bounces+wcai=cypress.com at qt-project.org] On Behalf Of Stefan Walter
Sent: 2013年1月23日 15:06
To: interest at qt-project.org<mailto:interest at qt-project.org>
Subject: Re: [Interest] How to rebuild a Qt project which linked with a static library?

The qmake variable PRE_TARGETDEPS might be what you are looking for.

By using this variable in your project file, you should be able to specify the dependencies to the static library.

>>>
Von:

Vincent Cai <wcai at cypress.com<mailto:wcai at cypress.com>>

An:

Thiago Macieira <thiago.macieira at intel.com<mailto:thiago.macieira at intel.com>>, "interest at qt-project.org<mailto:interest at qt-project.org>" <interest at qt-project.org<mailto:interest at qt-project.org>>

Datum:

23.1.2013 10:53

Betreff:

Re: [Interest] How to rebuild a Qt project which linked with a    static library?

This will force to rebuild the whole project or just force re-link?

-----Original Message-----
From: interest-bounces+wcai=cypress.com at qt-project.org<mailto:interest-bounces+wcai=cypress.com at qt-project.org> [mailto:interest-bounces+wcai=cypress.com at qt-project.org] On Behalf Of Thiago Macieira
Sent: 2013年1月23日 12:52
To: interest at qt-project.org<mailto:interest at qt-project.org>
Subject: Re: [Interest] How to rebuild a Qt project which linked with a static library?

On quarta-feira, 23 de janeiro de 2013 03.29.59, Vincent Cai wrote:
> Dear All,
>
>          I have a Qt project which is linked with a static library.
>          When I updated the static library, and try build the project,
> the project can't detect that the library is updated and need to
> rebuild. So that I have to rebuild the whole project.
>          Could anybody tell me how to fix this issue?

Remove the target file and make again.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message.
_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest


______________________________
The content of this e-mail is confidential and restricted for the use of the intended recipient only. If you are not the intended recipient please inform the sender immediately and delete this e-mail and any attachments. We cannot accept liability for any damage incurred as a result of software viruses and advise that you carry out your own virus checks before opening any attachment.

Der Inhalt dieses E-Mails ist vertraulich und für die alleinige Verwendung durch den beabsichtigten Empfänger bestimmt. Falls Sie nicht der beabsichtigte Empfänger sind, bitten wir Sie den Absender umgehend zu informieren und dieses E-Mail samt angeschlossenen Dateien zu löschen. Wir können keine Haftung für allfällige Schäden übernehmen, die aufgrund von Software-Viren entstehen, und empfehlen Ihnen, selbst Virenprüfungen durchzuführen, bevor Sie eine Anlage öffnen.
This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message.


______________________________
The content of this e-mail is confidential and restricted for the use of the intended recipient only. If you are not the intended recipient please inform the sender immediately and delete this e-mail and any attachments. We cannot accept liability for any damage incurred as a result of software viruses and advise that you carry out your own virus checks before opening any attachment.

Der Inhalt dieses E-Mails ist vertraulich und für die alleinige Verwendung durch den beabsichtigten Empfänger bestimmt. Falls Sie nicht der beabsichtigte Empfänger sind, bitten wir Sie den Absender umgehend zu informieren und dieses E-Mail samt angeschlossenen Dateien zu löschen. Wir können keine Haftung für allfällige Schäden übernehmen, die aufgrund von Software-Viren entstehen, und empfehlen Ihnen, selbst Virenprüfungen durchzuführen, bevor Sie eine Anlage öffnen.
This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130123/eced1dae/attachment.html>


More information about the Interest mailing list