Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. [SOLVED] Integrating Poppler in Qt5: weird problem with freetype and zlib (System: Windows 7, Qt5.3.1, MSVC compiler)
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved 3rd Party Software
4 Posts 2 Posters 4.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Speggo
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Speggo
        wrote on last edited by
        #3

        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:
        http://laconsigna.wordpress.com/2011/07/14/compiling-poppler-on-windows/

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

        greets

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Good question, PDF compression ? :)

          Anyway, glad you succeeded. Happy coding !

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved