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. Could not load network backend on embedded Linux system
Forum Updated to NodeBB v4.3 + New Features

Could not load network backend on embedded Linux system

Scheduled Pinned Locked Moved Mobile and Embedded
14 Posts 3 Posters 818 Views 3 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.
  • S Offline
    S Offline
    Shen sida
    wrote on last edited by
    #1

    Hi all

    I found the the network backend could not be loaded on embedded Linux system. But the library file could be found.

    f67cc49a-a958-4d4b-8048-694e309cf620-image.png

    BTW, it could be loaded on Windows and desktop Linux (Ubuntu).

    Embedded system information as follow:
    Yocto Linux 5.15, with Qt 6.4.2

    Let me know if you want to get more details.

    Best regards

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

      Hi,

      Did you check with ldd whether all the plugins dependencies are present ?

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you check with ldd whether all the plugins dependencies are present ?

        S Offline
        S Offline
        Shen sida
        wrote on last edited by
        #3

        @SGaist said in Could not load network backend on embedded Linux system:

        Did you check with ldd whether all the plugins dependencies are present ?

        Here is the output of ldd /usr/lib/plugins/networkmanager/libqnetworkmanager.so
        3752dfaa-afbd-47ca-9a50-5de9941d6e8e-image.png
        Looks like all dependencies are present.

        Let me know if you need other information.

        SGaistS 1 Reply Last reply
        0
        • S Shen sida

          @SGaist said in Could not load network backend on embedded Linux system:

          Did you check with ldd whether all the plugins dependencies are present ?

          Here is the output of ldd /usr/lib/plugins/networkmanager/libqnetworkmanager.so
          3752dfaa-afbd-47ca-9a50-5de9941d6e8e-image.png
          Looks like all dependencies are present.

          Let me know if you need other information.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          How did you install Qt on the target ?

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

          S 1 Reply Last reply
          0
          • S Shen sida

            Hi all

            I found the the network backend could not be loaded on embedded Linux system. But the library file could be found.

            f67cc49a-a958-4d4b-8048-694e309cf620-image.png

            BTW, it could be loaded on Windows and desktop Linux (Ubuntu).

            Embedded system information as follow:
            Yocto Linux 5.15, with Qt 6.4.2

            Let me know if you want to get more details.

            Best regards

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #5

            @Shen-sida run
            strace your_app
            to check what is missing or wrong?

            S 1 Reply Last reply
            0
            • SGaistS SGaist

              How did you install Qt on the target ?

              S Offline
              S Offline
              Shen sida
              wrote on last edited by
              #6

              @SGaist Did you mean how to compile a whole image with Qt?

              It's based on Yocto project 5.15 for imx6.

              1 Reply Last reply
              0
              • JoeCFDJ JoeCFD

                @Shen-sida run
                strace your_app
                to check what is missing or wrong?

                S Offline
                S Offline
                Shen sida
                wrote on last edited by
                #7

                @JoeCFD So many mesaages after running this command. How to check them?

                JoeCFDJ 1 Reply Last reply
                0
                • S Shen sida

                  @JoeCFD So many mesaages after running this command. How to check them?

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by
                  #8

                  @Shen-sida
                  redirect output to a file:
                  strace -o log.txt your app

                  S 1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    @Shen-sida
                    redirect output to a file:
                    strace -o log.txt your app

                    S Offline
                    S Offline
                    Shen sida
                    wrote on last edited by
                    #9

                    @JoeCFD but I couldn't send the file here :( .

                    SGaistS JoeCFDJ 2 Replies Last reply
                    0
                    • S Shen sida

                      @JoeCFD but I couldn't send the file here :( .

                      SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      What issue did you have ?

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

                      S 1 Reply Last reply
                      0
                      • S Shen sida

                        @JoeCFD but I couldn't send the file here :( .

                        JoeCFDJ Offline
                        JoeCFDJ Offline
                        JoeCFD
                        wrote on last edited by JoeCFD
                        #11

                        @Shen-sida you can show only the part here which displays loading failure. You can find out in the file which dependency lib is unable to be loaded.

                        S 1 Reply Last reply
                        0
                        • JoeCFDJ JoeCFD

                          @Shen-sida you can show only the part here which displays loading failure. You can find out in the file which dependency lib is unable to be loaded.

                          S Offline
                          S Offline
                          Shen sida
                          wrote on last edited by
                          #12

                          @JoeCFD If about network, here is the information:

                          openat(AT_FDCWD, "/usr/lib/libQt6Network.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
                          read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\0\0\0\0004\0\0\0"..., 512) = 512
                          statx(3, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_BASIC_STATS, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0755, stx_size=1178928, ...}) = 0
                          mmap2(NULL, 1309948, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76780000
                          mmap2(0x76780000, 1244412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x76780000
                          munmap(0x768b0000, 64764)               = 0
                          mprotect(0x76899000, 61440, PROT_NONE)  = 0
                          mmap2(0x768a8000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x118000) = 0x768a8000
                          close(3)                                = 0
                          
                          JoeCFDJ 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            What issue did you have ?

                            S Offline
                            S Offline
                            Shen sida
                            wrote on last edited by
                            #13

                            @SGaist
                            The project couldn't load the network manager module.
                            I want to get network information such as IP address from it.
                            I have tested on desktop Windows and Linux, it works well. But on embedded Linux it doesn't work.

                            1 Reply Last reply
                            0
                            • S Shen sida

                              @JoeCFD If about network, here is the information:

                              openat(AT_FDCWD, "/usr/lib/libQt6Network.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
                              read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\0\0\0\0004\0\0\0"..., 512) = 512
                              statx(3, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_BASIC_STATS, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0755, stx_size=1178928, ...}) = 0
                              mmap2(NULL, 1309948, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76780000
                              mmap2(0x76780000, 1244412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x76780000
                              munmap(0x768b0000, 64764)               = 0
                              mprotect(0x76899000, 61440, PROT_NONE)  = 0
                              mmap2(0x768a8000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x118000) = 0x768a8000
                              close(3)                                = 0
                              
                              JoeCFDJ Offline
                              JoeCFDJ Offline
                              JoeCFD
                              wrote on last edited by JoeCFD
                              #14

                              @Shen-sida there is no message to tell loading fails. In your first post, loading libqnetworkmanager failed. Here you showed message for a different lib. You are looking at the wrong spot. Have you ever installed another version of Qt6? If you can use synaptic, open it to check all Qt libs(plus plugins) have the same versions. You can click the property of any lib to find out where they are located.

                              1 Reply Last reply
                              0
                              • S Shen sida marked this topic as a regular topic on

                              • Login

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