Solved Using Socketcan Plugin in Qt
-
Thank you @aha_1980 ,
I have not installed plugin libqtsocketcanbus.so. I installed Qt on Raspberry Pi with "sudo apt-get install qtcreator". I did not do anything different for Socketcan. How can I install the plugin libqtsocketcanbus.so ?
-
@safiye said in Using Socketcan Plugin in Qt:
sudo apt-get install qtcreator
This installs QtCreator and only some basic Qt stuff. If you want to install Qt search for Qt packages.
-
Hi @jsulm,
To install Qt, I just did the following in order:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install qt5-default
sudo apt-get install qtcreator -
I installed sudo apt-get install libqt5serialbus5-dev and sudo apt-get install libqt5serialbus5 on Raspberry Pi. However, it gives the same error.
-
@safiye Do you build on RaspberryPi or do you do cross compiling?
-
@jsulm said in Using Socketcan Plugin in Qt:
@safiye Do you build on RaspberryPi or do you do cross compiling?
I'm building on a Raspberry Pi.
-
-
@safiye That will not work as long as you do not have libqtsocketcanbus.so plug-in. I don't know which package you have to install to get it. I'm not even sure the Linux distribution you're running on your device provides that at all (my Ubuntu 18.04 seems not to provide it). You could try to build it from source though.
-
Thank you @jsulm .
-
Hello, it is an old topic but someone can use it there, I had the same problem and nothing worked, but I solved it by adding the serialbus plugins because they will not be added they are libqt5serialbus5, it has to be installed:
sudo apt-get install libqt5serialbus5-plugins
Regards.