[Development] Proposal: Use -qt-zlib configuration in official MinGW builds

Konstantin Tokarev annulen at yandex.ru
Tue Nov 29 11:14:19 CET 2016



29.11.2016, 13:02, "Konrad Rosenbaum" <konrad at silmor.de>:
> Hi,
>
> On Monday 28 November 2016 17:11:19 Konstantin Tokarev wrote:
>>  Currently, MinGW builds in Coin use -system-zlib configuration. It happens
>>  because MinGW is shipped with zlib headers and libz.a. However, linking zlib
>>  to several Qt modules (at least, QtCore, QtGui, QtNetwork, and QtSvg) is
>>  suboptimal, while with -system-zlib one copy in QtCore is shared between
>>  all modules.
>
> Please be aware that there are quite a few Applications out there that use
> zlib independently of Qt - e.g. to encode/decode ZIP files. Unfortunately Qt
> does not expose its internal zlib headers, nor does it wrap all functionality
> of zlib.

qt-zlib builds provide zlib headers in include/QtZlib

> So at the very least qt-zlib needs to be linked in a way that allows
> an additional version of zlib to be linked.

zlib in QtCore is built with prefixed symbols.

>
>         Konrad
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

-- 
Regards,
Konstantin



More information about the Development mailing list