My mistake, I should give the full name of lib to PRE_TARGETDEPS.
Thanks a lot!
From: interest-bounces+wcai=cypress....@qt-project.org 
[mailto:interest-bounces+wcai=cypress....@qt-project.org] On Behalf Of Stefan 
Walter
Sent: 2013年1月23日 15:42
To: interest@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 <w...@cypress.com<mailto:w...@cypress.com>>

An:

Stefan Walter <stefan.wal...@lisec.com<mailto:stefan.wal...@lisec.com>>, 
"interest@qt-project.org<mailto:interest@qt-project.org>" 
<interest@qt-project.org<mailto:interest@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....@qt-project.org<mailto:interest-bounces+wcai=cypress....@qt-project.org>
 [mailto:interest-bounces+wcai=cypress....@qt-project.org] On Behalf Of Stefan 
Walter
Sent: 2013年1月23日 15:06
To: interest@qt-project.org<mailto:interest@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 <w...@cypress.com<mailto:w...@cypress.com>>

An:

Thiago Macieira <thiago.macie...@intel.com<mailto:thiago.macie...@intel.com>>, 
"interest@qt-project.org<mailto:interest@qt-project.org>" 
<interest@qt-project.org<mailto:interest@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....@qt-project.org<mailto:interest-bounces+wcai=cypress....@qt-project.org>
 [mailto:interest-bounces+wcai=cypress....@qt-project.org] On Behalf Of Thiago 
Macieira
Sent: 2013年1月23日 12:52
To: interest@qt-project.org<mailto:interest@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@qt-project.org<mailto:Interest@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.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to