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 30 Aug 2023, 09:03 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

    J 1 Reply Last reply 31 Aug 2023, 19:15
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 Aug 2023, 18:49 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 31 Aug 2023, 01:35
      0
      • S SGaist
        30 Aug 2023, 18:49

        Hi,

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

        S Offline
        S Offline
        Shen sida
        wrote on 31 Aug 2023, 01:35 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.

        S 1 Reply Last reply 31 Aug 2023, 18:46
        0
        • S Shen sida
          31 Aug 2023, 01:35

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

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 31 Aug 2023, 18:46 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 1 Sept 2023, 02:35
          0
          • S Shen sida
            30 Aug 2023, 09:03

            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

            J Offline
            J Offline
            JoeCFD
            wrote on 31 Aug 2023, 19:15 last edited by
            #5

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

            S 1 Reply Last reply 1 Sept 2023, 02:46
            0
            • S SGaist
              31 Aug 2023, 18:46

              How did you install Qt on the target ?

              S Offline
              S Offline
              Shen sida
              wrote on 1 Sept 2023, 02:35 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
              • J JoeCFD
                31 Aug 2023, 19:15

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

                S Offline
                S Offline
                Shen sida
                wrote on 1 Sept 2023, 02:46 last edited by
                #7

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

                J 1 Reply Last reply 1 Sept 2023, 18:31
                0
                • S Shen sida
                  1 Sept 2023, 02:46

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

                  J Offline
                  J Offline
                  JoeCFD
                  wrote on 1 Sept 2023, 18:31 last edited by
                  #8

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

                  S 1 Reply Last reply 6 Sept 2023, 06:32
                  0
                  • J JoeCFD
                    1 Sept 2023, 18:31

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

                    S Offline
                    S Offline
                    Shen sida
                    wrote on 6 Sept 2023, 06:32 last edited by
                    #9

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

                    S J 2 Replies Last reply 6 Sept 2023, 18:54
                    0
                    • S Shen sida
                      6 Sept 2023, 06:32

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

                      S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 6 Sept 2023, 18:54 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 7 Sept 2023, 05:53
                      0
                      • S Shen sida
                        6 Sept 2023, 06:32

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

                        J Offline
                        J Offline
                        JoeCFD
                        wrote on 6 Sept 2023, 18:58 last edited by JoeCFD 9 Jun 2023, 19:00
                        #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 7 Sept 2023, 05:29
                        0
                        • J JoeCFD
                          6 Sept 2023, 18:58

                          @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 7 Sept 2023, 05:29 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
                          
                          J 1 Reply Last reply 7 Sept 2023, 13:50
                          0
                          • S SGaist
                            6 Sept 2023, 18:54

                            What issue did you have ?

                            S Offline
                            S Offline
                            Shen sida
                            wrote on 7 Sept 2023, 05:53 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
                              7 Sept 2023, 05:29

                              @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
                              
                              J Offline
                              J Offline
                              JoeCFD
                              wrote on 7 Sept 2023, 13:50 last edited by JoeCFD 9 Jul 2023, 13:56
                              #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 6 May 2024, 09:26

                              1/14

                              30 Aug 2023, 09:03

                              • Login

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