[Interest] static qt without zlib

Thiago Macieira thiago.macieira at intel.com
Mon Dec 2 16:47:29 CET 2013

On segunda-feira, 2 de dezembro de 2013 14:03:54, Tim Blechmann wrote:
> >> well it is not that i want to completely remove zlib, but i currently
> >> have too many of them ;)
> >> 
> >>> You might try to use a "system zlib", i.e. provide your own copy of zlib
> >>> as the one Qt links to and then use the one linked inside Qt.
> >> 
> >> i've already tried to compile with -system-zlib, but Qt5Core.lib still
> >> contains zlib symbols.
> >> or do i need to/am i able to explicitly specify my zlib when compiling
> >> qt?
> > 
> > Exactly, the symbols from the system zlib are now in the statically linked
> > QtCore. How about not linking it to your own plugin again and instead
> > using
> > the zlib symbols from QtCore?
> > 
> > Zlib is actually pretty compatible, so this will generally work.
> hmm, i might be hit by my ignorance of the win32 platform, but trying to
> do so there seems to be a symbol mismatch: Qt5Core provides symbols like
> _z_deflate, but my library is looking for the symbol _deflate ...

If the symbols in Qt are different, then the original problem does not 
manifest: there is no clash.

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/20131202/e809faf7/attachment.sig>

More information about the Interest mailing list