Cannot load library libsocketcan, some functionality will not be available
-
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 libsocketcanroot@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.controlError: "/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.
-
@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). -
@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 -
@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.