Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6198087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:56:08+00:00 2026-05-24T03:56:08+00:00

I am trying to compile a Qt project that uses poppler library for pdf

  • 0

I am trying to compile a Qt project that uses poppler library for pdf (linux).

I put #include in the mainwindow.cpp
I put poppler folder in my project folder besides mainwindow.cpp
poppler-qt4.h is in poppler-0.16.7/qt4/src

I do not need to recompile poppler, I just need to link the library through its headers but I do not know how to do. If compilation is necessary I can do it, but I tried ./configure and it said “./configure not found”.
I searched for other similar threads but they were not enough useful to me.
I know LIBS is involved but makefile is overwritten by Qt-creator?
I’d prefer to learn how to “officially” inform Qt-creator that I want to add the library.
Please can help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:56:08+00:00Added an answer on May 24, 2026 at 3:56 am

    You have a good example, completed with source code, here: Poppler: Displaying PDF files with Qt

    Along with including the header files where apropriate, you need to link to the poppler library.

    To do so, you need to edit your .pro file and include something like:

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

    These are the “default” paths, you may need to change them accordingly to your particular install location.

    EDIT:

    From your comments you seem to be trying to build poppler lib from source. The problem is that you’re executing ./configure ( make and make install ) in the wrong directory. You “need” to position yourself in the directory where the file configure is located(*). Then execute the traditional commands:

    ./configure
    make 
    make install
    
    1. You run configure (you usually have to type ./configure as most
      people don’t have the current directory in their search path). This
      builds a new Makefile.
    2. Type make This builds the program. That is, make would be
      executed, it would look for the first target in Makefile and do what
      the instructions said. The expected end result would be to build an
      executable program.
    3. Now, as root, type make install. This again invokes make, make
      finds the target install in Makefile and files the directions to
      install the program.

    I extracted this quote from http://tldp.org/LDP/LG/current/smith.html. But there are lots of places where you can find more information about these commands. Just google it! 😀

    (*) You don’t really need to be in the same directory as the configure file. But it’s easier than writing the full path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to compile a project with MinGW that uses the fltk library.
I'm trying to compile a project that uses both libjpeg and libpng. I know
I'm trying to compile a project that uses the GData objective-c framework. I've successfully
While trying to compile my project, that uses some third party headers, with mingw
I'm trying to compile a VC++ project I've inherited that uses MSXML2. This is
I am trying to compile a project in VB.net 2010 that uses Microsoft Excel
trying to compile old project that has many uses of shared_ptr with the vs2010.
I'm trying to compile an old project that was originally designed for Visual Studio
I am trying to compile a Maven Java/Scala mixed project that has a Scala
I am trying to compile a project to run on an ARM board that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.