Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved How to apply poppler to qt4???

    Installation and Deployment
    3
    14
    780
    Loading More Posts
    • 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 last edited by 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.

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @Hwanwoo last edited by

        @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 Reply Quote 1
        • H
          Hwanwoo last edited by

          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.

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @Hwanwoo last edited by

            @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 Reply Quote 1
            • H
              Hwanwoo @jsulm last edited by

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

              JonB 1 Reply Last reply Reply Quote 0
              • JonB
                JonB @Hwanwoo last edited by

                @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 Reply Quote 0
                • H
                  Hwanwoo @JonB last edited by

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

                  jsulm JonB 2 Replies Last reply Reply Quote 0
                  • jsulm
                    jsulm Lifetime Qt Champion @Hwanwoo last edited by

                    @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 Reply Quote 0
                    • JonB
                      JonB @Hwanwoo last edited by JonB

                      @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 Reply Quote 0
                      • H
                        Hwanwoo @jsulm last edited by

                        @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

                        jsulm 1 Reply Last reply Reply Quote 0
                        • jsulm
                          jsulm Lifetime Qt Champion @Hwanwoo last edited by

                          @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 Reply Quote 0
                          • H
                            Hwanwoo @jsulm last edited by

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

                            jsulm 1 Reply Last reply Reply Quote 0
                            • jsulm
                              jsulm Lifetime Qt Champion @Hwanwoo last edited by

                              @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 Reply Quote 0
                              • H
                                Hwanwoo @jsulm last edited by

                                @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 Reply Quote 0
                                • First post
                                  Last post