libsocketcan not found in 5.14.1
-
i upgraded the toolchain from 5.12.3 to 5.14.1 to get the additonal functionalities of the QCanBusDevice.
under 5.12.3 everything works
now under 5.14.1 upon creating the device with
device = QCanBus::instance()->createDevice(
QStringLiteral("socketcan"), QStringLiteral("can0"), &errorString);i get following runtime errors: (compilin and linking is all fine)
qt.canbus.plugins.socketcan: Cannot load library socketcan: (socketcan: cannot open shared object file: No such file or directory)
qt.canbus.plugins.socketcan: Cannot load library libsocketcan, some functionality will not be available.
Cannot load library socketcan: (socketcan: cannot open shared object file: No such file or directory)i am a bit lost now on how to debug this...esp bec if i compile for 5.12.3 it does not happend
any pointers fpor me? -
Install libsocketcan package
-
thanks i did not see that its an external library that has to be installed separetely and 5.14 depends on it while 5.12 does not
Libsocketcan is still optional, but gives additional functions, as stated here: https://doc.qt.io/qt-5/qtserialbus-socketcan-overview.html
If you don't use that, you can safely ignore the warning. But if you install the libsocketcan library, that's fine too.
Regards