[Interest] Project using QuaZip needs zlib headers

Thiago Macieira thiago.macieira at intel.com
Thu Dec 6 16:18:50 CET 2012


On quinta-feira, 6 de dezembro de 2012 23.39.36, Tony Rietwyk wrote:
> Since my first post, I have found that on Mac OSX the application compiles,
> but the link fails to resolve the calls to zlib.  The same .pro file links
> and runs OK on Windows.
> 
> I need to know how to include and link against the same zlib used by Qt.
> Using a separate copy of the zlib code in the same executable seems to be
> asking for trouble.

On Mac OS X, you can do this:

LIBS += -lz

As for Windows, it seems you ran into a misfeature of Qt: the zlib symbols are 
exported from QtCore so that other libraries like QtNetwork can use it. DO NOT 
depend on this misfeature. Now that you've brought it to my attention, I might 
fix it.

Windows has no system zlib. You need to find a copy for yourself.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121206/fc25addf/attachment.sig>


More information about the Interest mailing list