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.8k 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 Offline
    H Offline
    Hwanwoo
    wrote on 17 Jun 2020, 06:32 last edited by Hwanwoo
    #1

    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.

    J 1 Reply Last reply 17 Jun 2020, 06:59
    0
    • H Hwanwoo
      17 Jun 2020, 06:32

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 17 Jun 2020, 06:59 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 17 Jun 2020, 07:24 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.

        J 1 Reply Last reply 17 Jun 2020, 07:37
        0
        • H Hwanwoo
          17 Jun 2020, 07:24

          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.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 17 Jun 2020, 07:37 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 17 Jun 2020, 07:43
          1
          • J jsulm
            17 Jun 2020, 07:37

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

            H Offline
            H Offline
            Hwanwoo
            wrote on 17 Jun 2020, 07:43 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.

            J 1 Reply Last reply 17 Jun 2020, 10:01
            0
            • H Hwanwoo
              17 Jun 2020, 07:43

              @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.

              J Offline
              J Offline
              JonB
              wrote on 17 Jun 2020, 10:01 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 17 Jun 2020, 23:43
              0
              • J JonB
                17 Jun 2020, 10:01

                @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 17 Jun 2020, 23:43 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.

                J J 2 Replies Last reply 18 Jun 2020, 06:21
                0
                • H Hwanwoo
                  17 Jun 2020, 23:43

                  @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.

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 18 Jun 2020, 06:21 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 22 Jun 2020, 03:05
                  0
                  • H Hwanwoo
                    17 Jun 2020, 23:43

                    @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.

                    J Offline
                    J Offline
                    JonB
                    wrote on 18 Jun 2020, 08:31 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
                    • J jsulm
                      18 Jun 2020, 06:21

                      @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 22 Jun 2020, 03:05 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

                      J 1 Reply Last reply 22 Jun 2020, 05:30
                      0
                      • H Hwanwoo
                        22 Jun 2020, 03:05

                        @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

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 22 Jun 2020, 05:30 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 22 Jun 2020, 09:49
                        0
                        • J jsulm
                          22 Jun 2020, 05:30

                          @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 22 Jun 2020, 09:49 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.

                          J 1 Reply Last reply 22 Jun 2020, 10:53
                          0
                          • H Hwanwoo
                            22 Jun 2020, 09:49

                            @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.

                            J Offline
                            J Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 22 Jun 2020, 10:53 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 24 Jun 2020, 00:00
                            0
                            • J jsulm
                              22 Jun 2020, 10:53

                              @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 24 Jun 2020, 00:00 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

                              10/14

                              22 Jun 2020, 03:05

                              • Login

                              • Login or register to search.
                              10 out of 14
                              • First post
                                10/14
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved