Solved QT module compile problem.
I am using ubuntu 18.04 for development, but serialbus module do not support this platform. So , i guess we can compile the qt/serialbus by myself. I use qmke & make one by one step. But error meets below:
Makefile:729: recipe for target '.obj/qcanbusdevice.o' failed
In file included from /home/jason/Downloads/qtserialbus/src/serialbus/qcanbusdevice.cpp:38:0:
/home/jason/Downloads/qtserialbus/src/serialbus/qcanbusdevice_p.h:43:10: fatal error: private/qobject_p.h: No such file or directory
/home/jason/Downloads/qtserialbus/src/serialbus/qcanbus.cpp:46:10: fatal error: private/qfactoryloader_p.h: No such file or directory
make: *** [.obj/qcanbusdevice.o] Error 1
Nothing tips with the module source on serialbus
Anyone who can help , appreciate!
I think the OP means that there's no serialbus module in Ubuntu's Package archive if he installs Qt from apt.
But the module is available if installing by official installer.
I'm not sure but I think serialport module should be different from serialbus?
Since you'll get both dlls in Windows.
Yes it is a different module: https://doc.qt.io/qt-5/qtserialbus-index.html
@Pangolin to compile a Qt module you need to compile base Qt as well - at the very least the Qt base repo.
@jsulm Good to see you sir . As i know qt serialbus module only support the platform higher than 18.04 not include 18.04. Many thanks to you.
@sierdzio So appreciate to you sir. I m always think why we can not build qt module separately and more wondering that no compile tips for qt module source at all !
I m always think why we can not build qt module separately
It's all because of
configurestep, which is done by
qtbaserepo - it sets all build settings for all other modules. Some modules can be build separately. And I think that starting with Qt 6, all modules will be buildable separately.
@sierdzio Thank you so much sir. I would like to meet QT6 and if that done will bring us so many flexible features.
It will be released in December. But first few releases will be quite, well, incomplete. A lot of modules are missing in 6.0 and will come back around 6.1 or 6.2 (so in December next year).