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. how add new libs like poppler on QT
Forum Updated to NodeBB v4.3 + New Features

how add new libs like poppler on QT

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 550 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.
  • AlbatorA Offline
    AlbatorA Offline
    Albator
    wrote on last edited by Albator
    #1

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

    ODБOïO 1 Reply Last reply
    0
    • AlbatorA Albator

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

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      3
      • AlbatorA Offline
        AlbatorA Offline
        Albator
        wrote on last edited by
        #3

        mingw3.png

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

        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