Build poppler with Qt5 - OS X



  • This post is deleted!

  • Lifetime Qt Champion

    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.



  • 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



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


  • Lifetime Qt Champion

    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 :)


Log in to reply
 

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