Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Cannot load library libsocketcan, some functionality will not be available
Forum Update on Monday, May 27th 2025

Cannot load library libsocketcan, some functionality will not be available

Scheduled Pinned Locked Moved Unsolved Qt 6
libsocketcansocketcanserialbuscanbusboot2qt
5 Posts 3 Posters 2.0k Views
  • 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.
  • C Offline
    C Offline
    Chichkanov
    wrote on 2 Dec 2021, 03:53 last edited by
    #1

    Host OS: Linux xu2004 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
    Target OS: Linux b2qt-apalis-imx8 5.4.129-0+git.9443377ef940 #1 SMP PREEMPT Mon Jul 19 18:19:07 UTC 2021 aarch64 GNU/Linux
    Qt Creator: 5.0.3
    Qt Creator Kit: Boot2Qt 6.2.1 Toradex Apalis-iMX8
    Example: /Qt/Examples/Qt-6.2.1/serialbus/can/
    Error: "/usr/share/examples/serialbus/can/can" QList()
    qt.canbus.plugins.socketcan: Unknown error
    qt.canbus.plugins.socketcan: Cannot load library libsocketcan, some functionality will not be available.
    Unknown error
    qt.canbus.plugins.socketcan: Function can_set_bitrate() is not available.
    qt.canbus.plugins.socketcan: Cannot apply parameter: 4 with value: 500000.

    Changes:
    Target OS: Linux b2qt-apalis-imx8 5.4.129-0+git.cb88cc157bfb #1 SMP PREEMPT Wed Sep 29 18:17:21 UTC 2021 aarch64 GNU/Linux
    Added package libsocketcan

    root@b2qt-apalis-imx8:~# find / -name libsocketcan*
    /usr/lib/libsocketcan.so.2
    /usr/lib/libsocketcan.so.2.3.1
    /usr/share/licenses/libsocketcan
    /usr/share/licenses/libsocketcan/libsocketcan.c
    /var/lib/opkg/info/libsocketcan2.postinst
    /var/lib/opkg/info/libsocketcan-lic.list
    /var/lib/opkg/info/libsocketcan-lic.control
    /var/lib/opkg/info/libsocketcan2.list
    /var/lib/opkg/info/libsocketcan2.control

    Error: "/usr/share/examples/serialbus/can/can" QList()
    qt.canbus.plugins.socketcan: Unknown error
    qt.canbus.plugins.socketcan: Cannot load library libsocketcan, some functionality will not be available.
    Unknown error
    qt.canbus.plugins.socketcan: Function can_set_bitrate() is not available.
    qt.canbus.plugins.socketcan: Cannot apply parameter: 4 with value: 500000.

    Cannot load library libsocketcan. Why? Help me please.

    J 1 Reply Last reply 2 Dec 2021, 07:41
    0
    • C Chichkanov
      2 Dec 2021, 03:53

      Host OS: Linux xu2004 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
      Target OS: Linux b2qt-apalis-imx8 5.4.129-0+git.9443377ef940 #1 SMP PREEMPT Mon Jul 19 18:19:07 UTC 2021 aarch64 GNU/Linux
      Qt Creator: 5.0.3
      Qt Creator Kit: Boot2Qt 6.2.1 Toradex Apalis-iMX8
      Example: /Qt/Examples/Qt-6.2.1/serialbus/can/
      Error: "/usr/share/examples/serialbus/can/can" QList()
      qt.canbus.plugins.socketcan: Unknown error
      qt.canbus.plugins.socketcan: Cannot load library libsocketcan, some functionality will not be available.
      Unknown error
      qt.canbus.plugins.socketcan: Function can_set_bitrate() is not available.
      qt.canbus.plugins.socketcan: Cannot apply parameter: 4 with value: 500000.

      Changes:
      Target OS: Linux b2qt-apalis-imx8 5.4.129-0+git.cb88cc157bfb #1 SMP PREEMPT Wed Sep 29 18:17:21 UTC 2021 aarch64 GNU/Linux
      Added package libsocketcan

      root@b2qt-apalis-imx8:~# find / -name libsocketcan*
      /usr/lib/libsocketcan.so.2
      /usr/lib/libsocketcan.so.2.3.1
      /usr/share/licenses/libsocketcan
      /usr/share/licenses/libsocketcan/libsocketcan.c
      /var/lib/opkg/info/libsocketcan2.postinst
      /var/lib/opkg/info/libsocketcan-lic.list
      /var/lib/opkg/info/libsocketcan-lic.control
      /var/lib/opkg/info/libsocketcan2.list
      /var/lib/opkg/info/libsocketcan2.control

      Error: "/usr/share/examples/serialbus/can/can" QList()
      qt.canbus.plugins.socketcan: Unknown error
      qt.canbus.plugins.socketcan: Cannot load library libsocketcan, some functionality will not be available.
      Unknown error
      qt.canbus.plugins.socketcan: Function can_set_bitrate() is not available.
      qt.canbus.plugins.socketcan: Cannot apply parameter: 4 with value: 500000.

      Cannot load library libsocketcan. Why? Help me please.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 2 Dec 2021, 07:41 last edited by
      #2

      @Chichkanov said in Cannot load library libsocketcan, some functionality will not be available:

      Cannot load library libsocketcan. Why?

      Maybe it is not installed?
      Simply install the package containing it (on my Ubuntu it is called libsocketcan2).

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

      C 1 Reply Last reply 3 Dec 2021, 03:16
      1
      • M Offline
        M Offline
        MrShawn
        wrote on 2 Dec 2021, 21:48 last edited by
        #3

        Did you try read/write on the canbus? I remember seeing this issue and it still worked and was able to do everything I wanted to on the CANbus.

        C 1 Reply Last reply 3 Dec 2021, 03:27
        1
        • J jsulm
          2 Dec 2021, 07:41

          @Chichkanov said in Cannot load library libsocketcan, some functionality will not be available:

          Cannot load library libsocketcan. Why?

          Maybe it is not installed?
          Simply install the package containing it (on my Ubuntu it is called libsocketcan2).

          C Offline
          C Offline
          Chichkanov
          wrote on 3 Dec 2021, 03:16 last edited by
          #4

          @jsulm said in Cannot load library libsocketcan, some functionality will not be available:

          Maybe it is not installed?
          Simply install the package containing it (on my Ubuntu it is called libsocketcan2).

          Installed :
          root @ b2qt-apalis-imx8: ~ # find / -name libsocketcan *
          /usr/lib/libsocketcan.so.2
          /usr/lib/libsocketcan.so.2.3.1
          / usr / share / licenses / libsocketcan
          / usr / share /licenses/libsocketcan/libsocketcan.c
          /var/lib/opkg/info/libsocketcan2.postinst
          /var/lib/opkg/info/libsocketcan-lic.list
          /var/lib/opkg/info/libsocketcan-lic.control
          / var /lib/opkg/info/libsocketcan2.list
          /var/lib/opkg/info/libsocketcan2.control

          1 Reply Last reply
          0
          • M MrShawn
            2 Dec 2021, 21:48

            Did you try read/write on the canbus? I remember seeing this issue and it still worked and was able to do everything I wanted to on the CANbus.

            C Offline
            C Offline
            Chichkanov
            wrote on 3 Dec 2021, 03:27 last edited by
            #5

            @MrShawn said in Cannot load library libsocketcan, some functionality will not be available:

            Did you try read/write on the canbus? I remember seeing this issue and it still worked and was able to do everything I wanted to on the CANbus.

            Read/write OK. Worked.

            1 Reply Last reply
            1
            • J JonB referenced this topic on 18 Jan 2025, 12:20

            2/5

            2 Dec 2021, 07:41

            • Login

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