[Interest] Solution to Qt 5.5.1 build fails on win7 in qt3d with fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory

Koehne Kai Kai.Koehne at theqtcompany.com
Thu Nov 5 08:56:19 CET 2015



> -----Original Message-----
> From: Interest [mailto:interest-bounces at qt-project.org] On Behalf Of Gunnar
> Roth
> Sent: Wednesday, November 04, 2015 5:30 PM
> To: Gunnar Roth <gunnar.roth at gmx.de>
> Cc: qt interest mailinglist <interest at qt-project.org>
> Subject: Re: [Interest] Solution to Qt 5.5.1 build fails on win7 in qt3d with fatal
> error C1083: Cannot open include file: 'zlib.h': No such file or directory
> 
> Hello,
> reply to myself to tell about the found solution.
> I am doing a shadow build of qt, this fails.
> So does the Qt Ci not making shadow builds?

It does, but it builds from git.

> I looked into qtsvg\src\svg\svg.pro
> And saw:
> contains(QT_CONFIG, system-zlib) {
>     if(unix|mingw):          LIBS_PRIVATE += -lz
>     else:                    LIBS += zdll.lib
> } else {
>     git_build: \
>         INCLUDEPATH += $$[QT_INSTALL_HEADERS/get]/QtZlib
>     else: \
>         INCLUDEPATH += $$[QT_INSTALL_HEADERS/src]/QtZlib }
> 
> While qt3d\src\3rdparty\assimp\assimp.pri
> Has:
> contains(QT_CONFIG, system-zlib) {
>     unix|mingw: LIBS += -lz
>     else: LIBS += zdll.lib
> } else {
>     INCLUDEPATH += $$[QT_INSTALL_HEADERS/get]/QtZlib }

There's a fix for this both in 5.6. There was also a fix staged for 5.5.1, but unfortunately too late ...

https://codereview.qt-project.org/#/c/127252/3

Regards

Kai 


More information about the Interest mailing list