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

2013-01-22 Thread Vincent Cai
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

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

2013-01-22 Thread Thiago Macieira
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.

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

2013-01-22 Thread Lincoln Ramsay
On 23/01/13 13:29, Vincent Cai wrote: 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. qmake does not write out dependencies

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

2013-01-22 Thread Thiago Macieira
On quarta-feira, 23 de janeiro de 2013 15.53.47, Lincoln Ramsay wrote: This is most noticeable with static libraries but it can also be a problem with shared libraries. I imagine qmake doesn't do this because of how difficult it is to know exactly which libs the linker will use when

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

2013-01-22 Thread Vincent Cai
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] On Behalf Of Thiago Macieira Sent: 2013年1月23日 12:52 To: interest@qt-project.org

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

2013-01-22 Thread Stefan Walter
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 An:Thiago Macieira thiago.macie...@intel.com, interest@qt-project.org

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

2013-01-22 Thread Vincent Cai
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

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

2013-01-22 Thread Stefan Walter
Hi Vincent, please post also your .pro file content with the PRE_TARGETDEPS specification of yours. Thanks, Stefan Von: Vincent Cai w...@cypress.com An:Stefan Walter stefan.wal...@lisec.com, interest@qt-project.org interest@qt-project.org Datum: 23.1.2013 11:31 Betreff: Re: [Interest] How

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

2013-01-22 Thread Vincent Cai
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]