Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. can bus example, unable to build, Project ERROR: Unknown module(s) in QT: serialbus
Qt 6.11 is out! See what's new in the release blog

can bus example, unable to build, Project ERROR: Unknown module(s) in QT: serialbus

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 5 Posters 2.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O osfe

    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

    aha_1980A Offline
    aha_1980A Offline
    aha_1980
    Lifetime Qt Champion
    wrote on last edited by
    #2

    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

    Qt has to stay free or it will die.

    1 Reply Last reply
    2
    • O Offline
      O Offline
      osfe
      wrote on last edited by
      #3

      Hi aha_1980
      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
      
      
      aha_1980A 1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • O Offline
          O Offline
          osfe
          wrote on last edited by
          #5

          Hi,
          thank you for your answer. definitely I use Qt5 :)

          a2631e2d-1c79-4e21-9373-bd659050fbd8-image.png

          1 Reply Last reply
          0
          • O osfe

            Hi aha_1980
            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
            
            
            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #6

            Hi @osfe,

            You seem to miss qt5-qtserialbus-devel.* which is needed for development.

            Regards

            Qt has to stay free or it will die.

            1 Reply Last reply
            1
            • O Offline
              O Offline
              osfe
              wrote on last edited by
              #7

              @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
              
              
              1 Reply Last reply
              1
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                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.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                O 1 Reply Last reply
                0
                • SGaistS SGaist

                  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.

                  O Offline
                  O Offline
                  osfe
                  wrote on last edited by
                  #9

                  @SGaist Actually, if you have a closer look, I don't have qt5-qtserialbus-devel...

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kuzulis
                    Qt Champions 2020
                    wrote on last edited by kuzulis
                    #10

                    @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.html

                    Oops, sorry, it is CentOS v8.. Then change the Linux distro, because it is not the qtserialbus issue.

                    1 Reply Last reply
                    2
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      Old eyes...

                      I would recommend complaining to your distribution.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      O 1 Reply Last reply
                      1
                      • SGaistS SGaist

                        Old eyes...

                        I would recommend complaining to your distribution.

                        O Offline
                        O Offline
                        osfe
                        wrote on last edited by
                        #12

                        @SGaist :)

                        1 Reply Last reply
                        0
                        • O Offline
                          O Offline
                          osfe
                          wrote on last edited by
                          #13

                          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. RoginaP 1 Reply Last reply
                          0
                          • O osfe

                            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. RoginaP Offline
                            Pablo J. RoginaP Offline
                            Pablo J. Rogina
                            wrote on last edited by
                            #14

                            @osfe what if you build the Qt SerialBus module yourself?

                            Upvote the answer(s) that helped you solve the issue
                            Use "Topic Tools" button to mark your post as Solved
                            Add screenshots via postimage.org
                            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved