zlib in Qt - QtZlib not present

前端 未结 3 1339
醉酒成梦
醉酒成梦 2020-12-10 21:00

I am using QuaZip library, which has zlib dependency. I want to compile my CMake managed application under Archlinux and Windows 7, in both I have Qt 5.3.0 installed.

<
3条回答
  •  余生分开走
    2020-12-10 21:45

    Try to add into pro file this line:

     INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib    
    

    or

    INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/qtbase/include/QtZlib
    

    or

     INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/qtbase/3rdparty/zlib   
    

    For my app this worked fine.

提交回复
热议问题