Using socketcan on QT
-
Hi @Garza,
that's currently not possible. You may want to comment and vote on QTBUG-55295 to get that implemented.
Regards
Edit: Of course you can also use the
peakcan
plugin together with Peak's own driver on Linux, where this should already work as expected. -
@Garza you can try to patch the socketcan plugin locally and recompile QtSerialBus.
An official solution is not that easy, as all the plugins need to be adjusted. I don't expect that to happen anytime soon. As always: Patches welcome.
Regards
-
@Garza you can try to patch the socketcan plugin locally and recompile QtSerialBus.
An official solution is not that easy, as all the plugins need to be adjusted. I don't expect that to happen anytime soon. As always: Patches welcome.
Regards
-
@Garza said in Using socketcan on QT:
how can I do that?
https://wiki.qt.io/Building_Qt_5_from_Git
But don't build whole Qt, just QtSerialBus module. -
@Garza said in Using socketcan on QT:
how can I do that?
https://wiki.qt.io/Building_Qt_5_from_Git
But don't build whole Qt, just QtSerialBus module. -
@jsulm So, do I need to pull the whole QT code and then build only the module I want or should should I pull only the module I need?
@Garza You can clone the modules you need as described in the link I gave you: https://wiki.qt.io/Building_Qt_5_from_Git
-
@Garza You can clone the modules you need as described in the link I gave you: https://wiki.qt.io/Building_Qt_5_from_Git
-
@jsulm I downloaded the sub module I wanted and went to the branch 5.12.2. then there is no CMakelists.txt on that branch, only on the main branch and when running the CMakelists.txt that is there It asks for qt6 which I dont have.
-
@Garza Qt5 uses QMake, Qt6 uses CMake. Main branch is Qt6. If you want to build Qt5 modules use QMake.
-
@jsulm said in Using socketcan on QT:
Main branch is Qt6
sorry my dumb questions, so I need to run qmake with the .pro file and then run make, and the .so files on the bin folder will be the ones I have to substitute on the qt?