Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

how add new libs like poppler on QT



  • hello everyone,

    I work on QT with the Windows OS.
    I'm looking to view pdf files.
    After some research I found some redundancy in the answers, which led me to poppler.

    I find a site offering different versions :
    https://blog.alivate.com.au/poppler-windows/
    and i take poppler-0.68.0

    I work with this version of QT :
    5.9.9

    and i use :
    mingw.png

    I extract my files, the classical manipulation :
    mingw2.png

    and let's go, i add in my .pro :

    QT       += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
    
    CONFIG += c++11
    
    INCLUDEPATH  += C:/Users/portalc/Desktop/doc_qt/poppler-0.68.0/bin
    LIBS         += -L/Users/portalc/Desktop/doc_qt/poppler-0.68.0/lib
    

    it builds without any problem, but when I try to add a #include "poppler.h" it doesn't find any.

    I am ready to listen to all the explanations to move forward!
    thank you :)



  • hi
    @Albator said in how add new libs like poppler on QT:

    INCLUDEPATH += C:/Users/portalc/Desktop/doc_qt/poppler-0.68.0/bin

    try

    INCLUDEPATH += C:/Users/portalc/Desktop/doc_qt/poppler-0.68.0/include



  • mingw3.png

    thank you for your advice.
    I find my headers now!


Log in to reply