[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

Gunnar Roth gunnar.roth at gmx.de
Wed Nov 4 17:30:02 CET 2015


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? 
 
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 }


So I replaced the fragment in assimp.pri by the one from svg.pro.


Et Voila, it works now.

Regards,
Gunnar Roth


>My build fails with
>C:\RTIL\Shared\Qt\5.5.1\qt-src\qt3d\src\3rdparty\assimp\code\BlenderLoader.cpp(62) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or >directory
>That didnt happen for me before, i use the very same build env for quite some time.
>But there was no 3rdparte stuff in qt3d before.
> 
>C:\RTIL\Shared\Qt\5.5.1\qt-src\qt3d\src\3rdparty\assimp\assimp.pri
> uses INCLUDEPATH += $$[QT_INSTALL_HEADERS/get]/QtZlib
> 
>build log has -IC:/RTIL/Shared/Qt/5.5.1/bld/WIN32-VS11-32/qtbase/include/QtZlib in the command line for cl
>but this dir does not exist.
>I took the src from  downloaded qt5.5.1 enterprise tar.gz.
 
 
 
 
 
 _______________________________________________ Interest mailing list Interest at qt-project.org http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list