Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED]Integrating Poppler in QT4
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Integrating Poppler in QT4

Scheduled Pinned Locked Moved Mobile and Embedded
25 Posts 2 Posters 15.6k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Short version: you are missing a symbolic link call libpoppler-qt4.so.

    @ln -s /usr/lib/libpoppler-qt4.so.3 /usr/lib/libpoppler-qt4.so@

    As for the package stuff: are you using a linux distribution ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dreamerindia
      wrote on last edited by
      #5

      hi,

      Thank you. your right i'm missing symbolic link.

      after

      @ ln -s /usr/lib/libpoppler-qt4.so.3 /usr/lib/libpoppler-qt4.so @

      it works fine.

      thank you very much.

      ~Ravivarman~

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dreamerindia
        wrote on last edited by
        #6

        Hi,
        It is working fine in x86 compiler.
        But how to get the libpoppler-qt4.so for ARM compiler.
        or How to cross compile poppler for ARM.

        Configuring with "./configure --host=arm-linux-gcc" will work right?

        ~Ravivarman~

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dreamerindia
          wrote on last edited by
          #7

          Hi,

          I am trying to configure with cross compile with no success

          i used

          @./configure --host=/usr/local/DigiEL-5.6/x-tools/arm-cortex_a8-linux-gnueabi/bin/arm-linux-g++ --prefix=/usr/local/DigiEL-5.6/x-tools/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sys-root/usr/lib/ @

          its generating the

          libpoppler.so,libpoppler-cpp.so 's but not the libpoppler-qt4.so or its derivatives.

          ~Ravivarman~

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #8

            Did you cross-compile or already have all dependencies for poppler ? If you don't have Qt for ARM, it won't build it

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dreamerindia
              wrote on last edited by
              #9

              yea i'm using the QT for ARM integrated in Eclipse C++ IDE.when i compile it with arm-linux-gcc its not creating the libpoppler-qt4.so or its derivatives but creates the libpoppler-cpp.so in ARM compile.

              ~Ravivarman~

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dreamerindia
                wrote on last edited by
                #10

                I tried with libraries from
                @https://launchpad.net/~ubuntu-security/+archive/ppa/+build/4407291@
                But its showing undefined references....
                @./lib/libpoppler-qt4.so: undefined reference to PDFDoc::isLinearized()' ./lib/libpoppler-qt4.so: undefined reference to FormWidgetText::noSpellCheck() const'
                ./lib/libpoppler-qt4.so: undefined reference to FormWidgetChoice::deselectAll()' ./lib/libpoppler-qt4.so: undefined reference to Page::getAnnots(Catalog*)'
                ./lib/libpoppler-qt4.so: undefined reference to TextWordList::~TextWordList()' ./lib/libpoppler-qt4.so: undefined reference to Annots::~Annots()'
                ./lib/libpoppler-qt4.so: undefined reference to `typeinfo for OutStream'
                @

                ~Ravivarman~

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #11

                  Are you sure that the build system finds your arm Qt ?

                  If you download pre-built package, you also have to download their dependencies

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dreamerindia
                    wrote on last edited by
                    #12

                    can you pls tell me where i can find the source package for arm linux(armel).i tried different sources compilation.

                    ~Ravivarman~

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      dreamerindia
                      wrote on last edited by
                      #13

                      yea i installed binaries for arm and its dependencies.finally its throwing only one error..

                      @
                      /lib/libpoppler.so: undefined reference to `__longjmp_chk@GLIBC_2.11'
                      @

                      ~Ravivarman~

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #14

                        It means a package has been linked to a pretty old version of glibc. Are you sure you downloaded the latest version of the armel libraries ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          dreamerindia
                          wrote on last edited by
                          #15

                          which one is older version libpoppler.so? or libpoppler-qt4?

                          ~Ravivarman~

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #16

                            They should be same since they are built at the same time

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              dreamerindia
                              wrote on last edited by
                              #17

                              hi one library need libssl.s0.1.0.0 and another needs libssl.s0.1.0.1
                              how to deal with this. if i create soft link for one of it another is not working.pls help

                              ~Ravivarman~

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #18

                                Seems there's something wrong in your dependencies. Check that you download all packages from the same distribution

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  dreamerindia
                                  wrote on last edited by
                                  #19

                                  Actually i downloaded dependencies www.openmamba.org
                                  how to ensure it as from same distribution?

                                  ~Ravivarman~

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #20

                                    Don't know this one, generally if I need to download precompiled package I go for the debian armel architecture.

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      dreamerindia
                                      wrote on last edited by
                                      #21

                                      now trying to solve this error.

                                      @
                                      /usr/local/DigiEL-5.6/x-tools/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sys-root/usr/lib/libldap-2.4.so: undefined reference to sys_nerr@GLIBC_2.12' /usr/local/DigiEL-5.6/x-tools/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sys-root/usr/lib/libldap-2.4.so: undefined reference to sys_errlist@GLIBC_2.12'
                                      @

                                      ~Ravivarman~

                                      1 Reply Last reply
                                      0
                                      • D Offline
                                        D Offline
                                        dreamerindia
                                        wrote on last edited by
                                        #22

                                        finally managed to compile successfully.

                                        @

                                        arm-linux-g++ -o pdfviewer debug/documentwidget.o debug/main.o debug/window.o debug/moc_documentwidget.o debug/moc_window.o debug/moc_poppler-optcontent.o -L/usr/local/DigiEL-5.6/x-tools/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sys-root/usr/lib -L/usr/local/DigiEL-5.6/x-tools/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sys-root/usr/lib -lpoppler-qt4 -lpoppler -llcms -llcms2 -ltiff -lpng15 -lopenjpeg -lbz2 -lfreetype -lfontconfig -lexpat -ljbig -ljpeg -lstdc++ -lpoppler-glib -llzma -lcares -llber-2.4 -lsasl2 -lssh2 -lgpg-error -lgcrypt -lcurl -lldap-2.4 -lcrypto -lssl -lQtGui -lQtNetwork -lQtCore -lpthread
                                        @

                                        but its showing error in runtime as

                                        @

                                        /home/pdf_viewer # ./pdfviewer -qws
                                        ./pdfviewer: error while loading shared libraries: libpoppler-qt4.so.4: cannot open shared object file: No such file or directory

                                        @

                                        what is the problem ? :-)

                                        ~Ravivarman~

                                        1 Reply Last reply
                                        0
                                        • D Offline
                                          D Offline
                                          dreamerindia
                                          wrote on last edited by
                                          #23

                                          Yea finally it came. copied .so files to target lib folder.SUCCESS!!!!

                                          Thank you very much for your suggestions :-)

                                          ~Ravivarman~

                                          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