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
QtWS25 Last Chance

Cannot load library libsocketcan, some functionality will not be available

Scheduled Pinned Locked Moved Unsolved Qt 6
libsocketcansocketcanserialbuscanbusboot2qt
5 Posts 3 Posters 1.9k 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 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.

    jsulmJ 1 Reply Last reply
    0
    • C Chichkanov

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      1
      • M Offline
        M Offline
        MrShawn
        wrote on 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
        1
        • jsulmJ jsulm

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

            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 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
            • JonBJ JonB referenced this topic on

            • Login

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