Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to apply poppler to qt4???
Forum Updated to NodeBB v4.3 + New Features

How to apply poppler to qt4???

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
14 Posts 3 Posters 1.9k Views
  • 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.
  • H Hwanwoo

    HI!!
    I'm a beginner qt engineer in korea.
    Please help me.
    I tried to use poppler by referring to the following site.

    https://doc.qt.io/archives/qq/qq27-poppler.html
    https://forum.qt.io/topic/27172/solved-integrating-poppler-in-qt4/8
    https://github.com/shanalily/DeepReader/wiki/Developer-Documentation

    I used poppler-0.24.5. and

    sudo apt-get install libfontconfig1-dev
    sudo apt-get install libpoppler-dev
    sudo apt-get install libpoppler-qt4-dev
    cd poppler-0.24.5
    ./configure
    make
    sudo make install
    

    I entered the command.
    And I entered the following code in project.pro.

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

    Then the following error occurred.

    /opt/arm-qte-4.8.5_package/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lpoppler-qt4
    

    The path of my poppler library is "/usr/local/lib", so I changed the path to "/usr/local/lib", but it has no effect.
    I don't know what to check anymore.
    Please help me
    Please tell me if you have any additional needs
    I'm sorry that the sentence was awkward with a translator.

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @Hwanwoo said in How to apply poppler to qt4???:

    The path of my poppler library

    What is the name of the poppler library?
    Is it really libpoppler-qt4.so?
    You use Qt5 not Qt4, right?

    Also, you installed poppler using apt, then why do compile poppler by yourself?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    1
    • H Offline
      H Offline
      Hwanwoo
      wrote on last edited by
      #3

      I use Qt4!!
      sudo apt-get install libpoppler-qt5-dev ->sudo apt-get install libpoppler-qt4-dev
      Sorry....
      Several attempts were made.
      At first, I tried to configure only, but it didn't work. I used apt and configure together in another example.
      This site

      https://github.com/shanalily/DeepReader/wiki/Developer-Documentation
      

      I've been trying all the ways on the internet for a few days.

      jsulmJ 1 Reply Last reply
      0
      • H Hwanwoo

        I use Qt4!!
        sudo apt-get install libpoppler-qt5-dev ->sudo apt-get install libpoppler-qt4-dev
        Sorry....
        Several attempts were made.
        At first, I tried to configure only, but it didn't work. I used apt and configure together in another example.
        This site

        https://github.com/shanalily/DeepReader/wiki/Developer-Documentation
        

        I've been trying all the ways on the internet for a few days.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @Hwanwoo Why do you try to compile poppler if you installed it already using apt?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        H 1 Reply Last reply
        1
        • jsulmJ jsulm

          @Hwanwoo Why do you try to compile poppler if you installed it already using apt?

          H Offline
          H Offline
          Hwanwoo
          wrote on last edited by
          #5

          @jsulm
          I just tried to use it because there is a way to write both in the example.
          If you can see only pdf in qt using poppler, it doesn't matter whether you use apt or compile.
          I kept trying to compile, but it wasn't, so I just tried apt.

          JonBJ 1 Reply Last reply
          0
          • H Hwanwoo

            @jsulm
            I just tried to use it because there is a way to write both in the example.
            If you can see only pdf in qt using poppler, it doesn't matter whether you use apt or compile.
            I kept trying to compile, but it wasn't, so I just tried apt.

            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #6

            @Hwanwoo
            If I were you I would see if I could still find an existing downloadable sudo apt-get install libpoppler-qt4-dev somewhere on the web which can be installed on your distro. Unless you know that is not available.

            H 1 Reply Last reply
            0
            • JonBJ JonB

              @Hwanwoo
              If I were you I would see if I could still find an existing downloadable sudo apt-get install libpoppler-qt4-dev somewhere on the web which can be installed on your distro. Unless you know that is not available.

              H Offline
              H Offline
              Hwanwoo
              wrote on last edited by
              #7

              @JonB
              I'm sorry, but I didn't understand what you meant.

              sudo apt-get install libpoppler-qt4-dev
              Reading package lists... Done
              Building dependency tree       
              Reading state information... Done
              libpoppler-qt4-dev is already the newest version.
              The following package was automatically installed and is no longer required:
                thunderbird-globalmenu
              Use 'apt-get autoremove' to remove them.
              0 upgraded, 0 newly installed, 0 to remove and 444 not upgraded.
              

              When I apt-get, I get a message like this.
              I don't know what to do anymore.

              jsulmJ JonBJ 2 Replies Last reply
              0
              • H Hwanwoo

                @JonB
                I'm sorry, but I didn't understand what you meant.

                sudo apt-get install libpoppler-qt4-dev
                Reading package lists... Done
                Building dependency tree       
                Reading state information... Done
                libpoppler-qt4-dev is already the newest version.
                The following package was automatically installed and is no longer required:
                  thunderbird-globalmenu
                Use 'apt-get autoremove' to remove them.
                0 upgraded, 0 newly installed, 0 to remove and 444 not upgraded.
                

                When I apt-get, I get a message like this.
                I don't know what to do anymore.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @Hwanwoo I already asked this question before, but you did not answer it: "Is it really libpoppler-qt4.so?"
                So, again: what is the exact name of poppler-qt4 lib?

                Also, I see that you are building for ARM. Are you, by any chance, doing cross-compilation?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                H 1 Reply Last reply
                0
                • H Hwanwoo

                  @JonB
                  I'm sorry, but I didn't understand what you meant.

                  sudo apt-get install libpoppler-qt4-dev
                  Reading package lists... Done
                  Building dependency tree       
                  Reading state information... Done
                  libpoppler-qt4-dev is already the newest version.
                  The following package was automatically installed and is no longer required:
                    thunderbird-globalmenu
                  Use 'apt-get autoremove' to remove them.
                  0 upgraded, 0 newly installed, 0 to remove and 444 not upgraded.
                  

                  When I apt-get, I get a message like this.
                  I don't know what to do anymore.

                  JonBJ Online
                  JonBJ Online
                  JonB
                  wrote on last edited by JonB
                  #9

                  @Hwanwoo
                  For my part, from reading what you had written I was not clear that you had succeeded in getting libpoppler-qt4-dev. It is not available for my distro. However, now I see that you have done so. In which case, like @jsulm I don't understand why you are not trying to get that working for you instead of deciding you need to build it.

                  In any case, please answer @jsulm's questions.

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @Hwanwoo I already asked this question before, but you did not answer it: "Is it really libpoppler-qt4.so?"
                    So, again: what is the exact name of poppler-qt4 lib?

                    Also, I see that you are building for ARM. Are you, by any chance, doing cross-compilation?

                    H Offline
                    H Offline
                    Hwanwoo
                    wrote on last edited by
                    #10

                    @jsulm

                    I'm sorry .
                    Previously, I didn't understand the question properly.
                    libpoppler-qt4.so is correct.
                    Is poppler-0.41.0.tar.xz correct for the poppler library name?
                    I found that I can only output PDF using configure on the desktop.
                    As you said, I had to do cross-compile for arm.
                    I should have looked up a lot and asked questions.
                    I'm sorry

                    jsulmJ 1 Reply Last reply
                    0
                    • H Hwanwoo

                      @jsulm

                      I'm sorry .
                      Previously, I didn't understand the question properly.
                      libpoppler-qt4.so is correct.
                      Is poppler-0.41.0.tar.xz correct for the poppler library name?
                      I found that I can only output PDF using configure on the desktop.
                      As you said, I had to do cross-compile for arm.
                      I should have looked up a lot and asked questions.
                      I'm sorry

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @Hwanwoo said in How to apply poppler to qt4???:

                      Is poppler-0.41.0.tar.xz correct for the poppler library name?

                      This is not the name of Poppler library file but of the Poppler archive...

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      H 1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @Hwanwoo said in How to apply poppler to qt4???:

                        Is poppler-0.41.0.tar.xz correct for the poppler library name?

                        This is not the name of Poppler library file but of the Poppler archive...

                        H Offline
                        H Offline
                        Hwanwoo
                        wrote on last edited by
                        #12

                        @jsulm
                        Is this a file?
                        popp.png

                        ./configure
                        make

                        This is the file created using the command above.
                        I can use pdf in qt in ubuntu environment, but not in target board.
                        So I am looking for arm cross compile.

                        jsulmJ 1 Reply Last reply
                        0
                        • H Hwanwoo

                          @jsulm
                          Is this a file?
                          popp.png

                          ./configure
                          make

                          This is the file created using the command above.
                          I can use pdf in qt in ubuntu environment, but not in target board.
                          So I am looking for arm cross compile.

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          @Hwanwoo said in How to apply poppler to qt4???:

                          So I am looking for arm cross compile

                          Thzen you need to cross-compile that lib for your device.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          H 1 Reply Last reply
                          0
                          • jsulmJ jsulm

                            @Hwanwoo said in How to apply poppler to qt4???:

                            So I am looking for arm cross compile

                            Thzen you need to cross-compile that lib for your device.

                            H Offline
                            H Offline
                            Hwanwoo
                            wrote on last edited by
                            #14

                            @jsulm
                            Thank you for your help.
                            I looked up a lot and asked questions but thought my knowledge was lacking.
                            I want to browse more, try more and post the question again.
                            Thank you.

                            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