Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Independent Developers
  4. How do i use poppler lib in Qt quick application.
Forum Updated to NodeBB v4.3 + New Features

How do i use poppler lib in Qt quick application.

Scheduled Pinned Locked Moved Unsolved Independent Developers
35 Posts 4 Posters 8.4k 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.
  • J jsulm
    30 Mar 2021, 05:37

    @NIvil-Wilson said in How do i use poppler lib in Qt quick application.:

    skipping incompatible /usr/local/lib//libpoppler-qt5.so when searching for -lpoppler-qt5.

    This error clearly states that /usr/local/lib//libpoppler-qt5.so is not compatible with what you are building.
    Do

    file /usr/local/lib//libpoppler-qt5.so
    

    and post its output here.

    N Offline
    N Offline
    NIvil Wilson
    wrote on 1 Apr 2021, 11:18 last edited by
    #12

    @jsulm said in How do i use poppler lib in Qt quick application.:

    file /usr/local/lib//libpoppler-qt5.so

    /usr/local/lib//libpoppler-qt5.so: symbolic link to libpoppler-qt5.so.1

    J 1 Reply Last reply 1 Apr 2021, 11:34
    0
    • N NIvil Wilson
      1 Apr 2021, 11:18

      @jsulm said in How do i use poppler lib in Qt quick application.:

      file /usr/local/lib//libpoppler-qt5.so

      /usr/local/lib//libpoppler-qt5.so: symbolic link to libpoppler-qt5.so.1

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 1 Apr 2021, 11:34 last edited by
      #13

      @NIvil-Wilson Then do

      file /usr/local/lib//libpoppler-qt5.so.1
      

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

      N 1 Reply Last reply 3 Apr 2021, 05:40
      0
      • J jsulm
        1 Apr 2021, 11:34

        @NIvil-Wilson Then do

        file /usr/local/lib//libpoppler-qt5.so.1
        
        N Offline
        N Offline
        NIvil Wilson
        wrote on 3 Apr 2021, 05:40 last edited by
        #14

        @jsulm
        sir,
        the result for the command file /usr/local/lib//libpoppler-qt5.so.1 is
        /usr/local/lib//libpoppler-qt5.so.1: symbolic link to libpoppler-qt5.so.1.27.0

        S 1 Reply Last reply 3 Apr 2021, 06:49
        0
        • S SGaist
          29 Mar 2021, 18:13

          Hi,

          I would avoid putting a library like that built for a different architecture/OS in such a generic path. You should store in an explicit dedicated folder.

          N Offline
          N Offline
          NIvil Wilson
          wrote on 3 Apr 2021, 05:43 last edited by
          #15

          @SGaist
          sir, i tried that too but the same problem occurs

          1 Reply Last reply
          0
          • N NIvil Wilson
            3 Apr 2021, 05:40

            @jsulm
            sir,
            the result for the command file /usr/local/lib//libpoppler-qt5.so.1 is
            /usr/local/lib//libpoppler-qt5.so.1: symbolic link to libpoppler-qt5.so.1.27.0

            S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 3 Apr 2021, 06:49 last edited by
            #16

            @NIvil-Wilson said in How do i use poppler lib in Qt quick application.:

            @jsulm
            sir,
            the result for the command file /usr/local/lib//libpoppler-qt5.so.1 is
            /usr/local/lib//libpoppler-qt5.so.1: symbolic link to libpoppler-qt5.so.1.27.0

            Check that file then.

            Did you ensure that cmake is finding your cross-compiled version and not the one from your system ?

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

            N 1 Reply Last reply 15 Apr 2021, 14:58
            0
            • S SGaist
              3 Apr 2021, 06:49

              @NIvil-Wilson said in How do i use poppler lib in Qt quick application.:

              @jsulm
              sir,
              the result for the command file /usr/local/lib//libpoppler-qt5.so.1 is
              /usr/local/lib//libpoppler-qt5.so.1: symbolic link to libpoppler-qt5.so.1.27.0

              Check that file then.

              Did you ensure that cmake is finding your cross-compiled version and not the one from your system ?

              N Offline
              N Offline
              NIvil Wilson
              wrote on 15 Apr 2021, 14:58 last edited by
              #17

              @SGaist
              sir,
              yes i ensured that the cmake is finding cross-compiled version and not the one from the system .
              i stored the cross-compiled version in an explicit dedicated folder and the same message appears.
              please help

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 15 Apr 2021, 18:26 last edited by
                #18

                Did you check the architecture of your cross-compiled library ?

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

                N 1 Reply Last reply 18 Apr 2021, 04:50
                0
                • S SGaist
                  15 Apr 2021, 18:26

                  Did you check the architecture of your cross-compiled library ?

                  N Offline
                  N Offline
                  NIvil Wilson
                  wrote on 18 Apr 2021, 04:50 last edited by
                  #19

                  @SGaist
                  sir ,
                  the architecture of cross-compiled library is given below.

                  readelf -h libpoppler-qt5.so.1.27.0
                  ELF Header:
                  Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
                  Class: ELF64
                  Data: 2's complement, little endian
                  Version: 1 (current)
                  OS/ABI: UNIX - System V
                  ABI Version: 0
                  Type: DYN (Shared object file)
                  Machine: Advanced Micro Devices X86-64
                  Version: 0x1
                  Entry point address: 0x334f0
                  Start of program headers: 64 (bytes into file)
                  Start of section headers: 14323992 (bytes into file)
                  Flags: 0x0
                  Size of this header: 64 (bytes)
                  Size of program headers: 56 (bytes)
                  Number of program headers: 11
                  Size of section headers: 64 (bytes)
                  Number of section headers: 39
                  Section header string table index: 38

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 18 Apr 2021, 07:05 last edited by
                    #20

                    @NIvil-Wilson said in How do i use poppler lib in Qt quick application.:

                    Machine: Advanced Micro Devices X86-64

                    Is your device running on a x86_64 machine ?

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

                    N 1 Reply Last reply 18 Apr 2021, 16:09
                    0
                    • S SGaist
                      18 Apr 2021, 07:05

                      @NIvil-Wilson said in How do i use poppler lib in Qt quick application.:

                      Machine: Advanced Micro Devices X86-64

                      Is your device running on a x86_64 machine ?

                      N Offline
                      N Offline
                      NIvil Wilson
                      wrote on 18 Apr 2021, 16:09 last edited by NIvil Wilson
                      #21

                      @SGaist said in How do i use poppler lib in Qt quick application.:

                      x86_64

                      uname -a
                      Linux nivilwilsonp-desktop 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 18 Apr 2021, 16:45 last edited by
                        #22

                        Your desktop machine is.

                        I meant the target that runs Android. In any case, if it's ARM, libpoppler was not cross-compiled.

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

                        N 1 Reply Last reply 19 Apr 2021, 06:38
                        1
                        • S SGaist
                          18 Apr 2021, 16:45

                          Your desktop machine is.

                          I meant the target that runs Android. In any case, if it's ARM, libpoppler was not cross-compiled.

                          N Offline
                          N Offline
                          NIvil Wilson
                          wrote on 19 Apr 2021, 06:38 last edited by
                          #23

                          @SGaist
                          sir,
                          the target device is ARM.could you give me instructions to cross compile libpoppler for ARM.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 19 Apr 2021, 19:55 last edited by
                            #24

                            What did you do to build poppler until now ?

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

                            N 1 Reply Last reply 20 Apr 2021, 07:52
                            0
                            • S SGaist
                              19 Apr 2021, 19:55

                              What did you do to build poppler until now ?

                              N Offline
                              N Offline
                              NIvil Wilson
                              wrote on 20 Apr 2021, 07:52 last edited by
                              #25

                              @SGaist
                              sir,
                              i used the settings given below to cross compile poppler library

                              if(NOT DEFINED CMAKE_CROSSCOMPILING)
                              set(CMAKE_CROSSCOMPILING "TRUE")
                              endif()

                              set(CMAKE_SYSTEM_NAME Android)
                              set(CMAKE_SYSTEM_VERSION 21) # API level
                              set(CMAKE_ANDROID_ARCH_ABI arm64-v8a)
                              set(CMAKE_ANDROID_NDK /home/nivilwilsonp/Android/Sdk/ndk/21.3.6528147)
                              set(CMAKE_ANDROID_STL_TYPE c++_shared)

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 20 Apr 2021, 19:00 last edited by
                                #26

                                You might want to check here for how they build it for Androïd.

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

                                N 1 Reply Last reply 8 May 2021, 11:44
                                1
                                • S SGaist
                                  20 Apr 2021, 19:00

                                  You might want to check here for how they build it for Androïd.

                                  N Offline
                                  N Offline
                                  NIvil Wilson
                                  wrote on 8 May 2021, 11:44 last edited by NIvil Wilson 5 Aug 2021, 11:47
                                  #27

                                  @SGaist
                                  sir, i tried to compile poppler for android arm64-v8a but it always compiled to "x86_64".

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 8 May 2021, 18:53 last edited by
                                    #28

                                    Did you follow the example I linked ?

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

                                    N 1 Reply Last reply 10 May 2021, 10:24
                                    0
                                    • S SGaist
                                      8 May 2021, 18:53

                                      Did you follow the example I linked ?

                                      N Offline
                                      N Offline
                                      NIvil Wilson
                                      wrote on 10 May 2021, 10:24 last edited by
                                      #29

                                      @SGaist
                                      sir, i tried it many times .i changed the architecture and tried many times but it only compile to x86_64 architecture only.I think this is related to configuration mistake that i made cmake compilation process. sorry for my bad english .google translate help me very much these days.

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on 10 May 2021, 20:18 last edited by
                                        #30

                                        What did you do exactly for your latest try ?

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

                                        N 1 Reply Last reply 11 Jun 2021, 12:52
                                        0
                                        • S SGaist
                                          10 May 2021, 20:18

                                          What did you do exactly for your latest try ?

                                          N Offline
                                          N Offline
                                          NIvil Wilson
                                          wrote on 11 Jun 2021, 12:52 last edited by
                                          #31

                                          @SGaist
                                          sir, i couldnt understant this line " CFLAGS=-std=gnu99 STANDALONE_EXTRA="--arch arm64" /opt/helpers/build-standalone " which is in the link you given click here

                                          Screenshot from 2021-06-11 18-01-59.png

                                          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