[Qt-interest] qmake and staticlib issue

Thiago Macieira thiago.macieira at trolltech.com
Mon Apr 20 08:48:12 CEST 2009


ami guru wrote:
>While biulding the static libraries do i have to provide the library
> path as well for the libraries that they depend on while building the
> library?
>
>I have tried that ,but eneded up with  the same error
>
>What am i missing in the process ?

No, it's not necessary to list which library a static library depends on. 
There's no actual linking being performed.

The linking happens only when the final application(s) is linked. So you 
have to list all your direct and *indirect* dependencies in the 
application's .pro file's LIBS +=.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090420/095fba31/attachment.bin 


More information about the Qt-interest-old mailing list