Can't use zlib with Qt MinGW 5.9



  • Has anyone had success in using zlib with MinGW-compiled Qt 5.9? I'm able to use it with Qt 5.6 where MinGW was 4.9.2, but with the 5.3.0 MinGW that comes with Qt 5.9 the application just crashes on the inflate method.

    I'll work on making a reproducible test case, just throwing the question out there as I've spent many hours trying to get this to work already.


  • Moderators

    @Vadi2
    are you using a prebuilt version of zlib?!
    If so you need to make sure that the binaries are compatible. Mostly that they are built with the same compiler version.
    Mingw 4.9 and 5.3 for sure are not compatible of course.



  • Nah, I'm compiling zlib myself at all times, and compiling zlib with MinGW 5.3.0 is just not working - application crashes or doesn't decompress right when using inflate()



  • The issue is that just compiling our application (Mudlet) with MinGW 5.3 included with Qt Online Installer causes the issue. zlib can be compiled with any MinGW version, same with Qt. It's super strange.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.