Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
can bus example, unable to build, Project ERROR: Unknown module(s) in QT: serialbus
osfe last edited by aha_1980
I'm trying to build the can bus example which is part of the qt5 bundle of examples. The error is the following one :
Project ERROR: Unknown module(s) in QT: serialbus
My config is the following one :
- centos 8
- qt5 installed from packages
- every qt5 package is installed, including devel and doc
- qt creator 4.12.4
I really don't know what to do. Thank you for your help.
it's possible that CentOS does not provide the
qtserialbuspackage. For example, Ubuntu 18.04 did not provide it either. It might therefore be easiest, to use the Qt online installer from http://download.qt.io/official_releases/online_installers to install the whole Qt framework.
thank you for your answer. I think qtserialbus exists
dnf search qt5 | grep -i serial Dernière vérification de l’expiration des métadonnées effectuée il y a 3:00:56 le mar. 10 nov. 2020 10:05:43 CET. qt5-qtserialbus.x86_64 : Qt5 - SerialPort component qt5-qtserialbus.i686 : Qt5 - SerialPort component qt5-qtserialport.x86_64 : Qt5 - SerialPort component qt5-qtserialport.i686 : Qt5 - SerialPort component qt5-qtserialport-devel.x86_64 : Development files for qt5-qtserialport qt5-qtserialport-devel.i686 : Development files for qt5-qtserialport qt5-qtserialbus-examples.x86_64 : Programming examples for qt5-qtserialbus qt5-qtserialport-examples.x86_64 : Programming examples for qt5-qtserialport qt5-qtserialbus-doc.noarch : Documentation for qtserialbus qt5-qtserialport-doc.noarch : Documentation for qtserialport
Hi and welcome to devnet,
One thing to check, are you sure you are using the Qt 5 qmake ?
You might also have Qt 4 installed.
thank you for your answer. definitely I use Qt5 :)
You seem to miss
qt5-qtserialbus-devel.*which is needed for development.
You might be right... I feel like I'll need to install the qt framework with online installer...
dnf search qt5 | grep -i serial | grep -i devel Dernière vérification de l’expiration des métadonnées effectuée il y a 4:46:28 le mar. 10 nov. 2020 10:05:43 CET. qt5-qtserialport-devel.x86_64 : Development files for qt5-qtserialport qt5-qtserialport-devel.i686 : Development files for qt5-qtserialport
I can confirm @aha_1980 is correct, QtSerialBus and QtSerialPort are two different modules. But since you have both available with your distribution, you can go on with them unless you need a specific version of Qt.
@SGaist Actually, if you have a closer look, I don't have qt5-qtserialbus-devel...
I don't have qt5-qtserialbus-devel...
Please read how to upgrate the right repos for your Fedora distro on the Fedora forums then. Because the qtserialbus-devel package exists on Fedora: https://fedora.pkgs.org/32/fedora-updates-x86_64/qt5-qtserialbus-devel-5.14.2-1.fc32.x86_64.rpm.html
Oops, sorry, it is CentOS v8.. Then change the Linux distro, because it is not the qtserialbus issue.
I would recommend complaining to your distribution.
From centos forum :
Re: qt5-qtserialbus-devel not in repos
It appears to be one of the missing -devel packages that Red Hat don't want to release. There are mailing list discussions, bug reports etc about this. I'd suggest reading those, especially the mailing list, as there is a pointer to a ticket somewhere (that I don't remember) gathering requests for the missing packages and reasons why they are needed.
Pablo J. Rogina last edited by
@osfe what if you build the Qt SerialBus module yourself?