Important: Please read the Qt Code of Conduct -

[SOLVED] Integrating Poppler in Qt5: weird problem with freetype and zlib (System: Windows 7, Qt5.3.1, MSVC compiler)

  • Hi guys,

    I compiled poppler-qt5 (package poppler 0.26.4) libraries using cairo (dev, 1.10.2), freetype (dev, 2.4.2) and zlib (dev, 1.2.5) libraries.
    Compilation of the poppler libraries obviously works.

    Anyway I can't execute the included demo application "poppler_qt5viewer.exe". (also compiled during poppler library compilation)
    After adding all requested DLL files to the application directory an error shows up: FT_New_Memory_Face not found in zlib1.dll.
    (original german message: "Der Prozedureinsprungpunkt "Ft_New_Memory_Face" wurde in der DLL "zlib1.dll" nicht gefunden.")
    This is weird because this function is part of the freetype library, isn't it?!

    Did anybody have similar problems or may help?

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Maybe a silly question, but are you sure you are copying the right zlib dll ?

  • Hi,

    Thanks for replying. Actually I am not sure .. I found no dll in the zlib package and the downloaded ones with file version equal to zlib package didn't work either. I thought about compiling the zlib package on my own but found no appropriate way.

    I followed this guide to compile poppler:

    Anyway I left out the part about the zlib package and compiled the poppler library without zlib.
    Now everything works and I can render pdfs..
    Don't know why poppler actually needed zlib ?!


  • Lifetime Qt Champion

    Good question, PDF compression ? :)

    Anyway, glad you succeeded. Happy coding !

Log in to reply