Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Build poppler with Qt5 - OS X
Forum Updated to NodeBB v4.3 + New Features

Build poppler with Qt5 - OS X

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 3.9k Views 1 Watching
  • 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.
  • LordfulL Offline
    LordfulL Offline
    Lordful
    wrote on last edited by Lordful
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      No you can't mix libraries build with Qt 4 and Qt 5.

      You should rather build poppler by hand with Qt 5 you have.

      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
      • LordfulL Offline
        LordfulL Offline
        Lordful
        wrote on last edited by
        #3

        First, thanks for your answer. I knew that it will be a little strange if it will be possible.

        So, I installed Qt 5.5.1 by installing Qt Creator and now, I'm trying to build poppler by hand. But it seems that there is a problem because I can't use Poppler in a project.

        Here is what I did to install Poppler, tell me if I'm wrong :

        export QTDIR="/Users/gh/Qt/5.5/clang_64"
        
        export POPPLER_QT5_CFLAGS=-I$QTDIR/include
        export POPPLER_QT5_CXXFLAGS=-I$QTDIR/include
        export POPPLER_QT5_TEST_CFLAGS=-I$QTDIR/include
        
        export POPPLER_QT5_LIBS="-L$QTDIR/lib -lz -framework QtCore -framework QtGui -framework QtXml"
        export POPPLER_QT5_TEST_LIBS="-L$QTDIR/lib -lz -framework QtCore -framework QtGui -framework QtXml"
        
        ./configure --enable-poppler-qt5
        make
        make install
        

        After this, there is 0 errors but when I'm trying to launch a project with poppler, there is this message :

        dyld: Symbol not found: __cg_jpeg_resync_to_restart
          Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
          Expected in: /usr/local/lib/libjpeg.8.dylib
         in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
        

        Here is how I add the lib :

        INCLUDEPATH += /usr/local/include/poppler
        LIBS += -L/usr/local/lib -lpoppler
        

        Did I install this in a wrong way ?

        Thanks for your replies

        1 Reply Last reply
        0
        • LordfulL Offline
          LordfulL Offline
          Lordful
          wrote on last edited by
          #4

          Resolved, thanks to : http://www.freebyte.fr/?p=8

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

            Nice !

            Thanks for sharing your findings.

            Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

            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