can bus example, unable to build, Project ERROR: Unknown module(s) in QT: serialbus
-
Hi there,
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.
Olivier
-
Hi @osfe,
it's possible that CentOS does not provide the
qtserialbus
package. 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.Regards
-
Hi aha_1980
thank you for your answer. I think qtserialbus existsdnf 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. -
@aha_1980 said in can bus example, unable to build, Project ERROR: Unknown module(s) in QT: serialbus:
qt5-qtserialbus-devel
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
-
@osfe said in can bus example, unable to build, Project ERROR: Unknown module(s) in QT: serialbus:
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.htmlOops, sorry, it is CentOS v8.. Then change the Linux distro, because it is not the qtserialbus issue.
-
Old eyes...
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.