Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. how to install serial bus in ubuntu18.04

how to install serial bus in ubuntu18.04

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
17 Posts 5 Posters 5.1k Views
  • 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.
  • G Offline
    G Offline
    goldLovemoon
    wrote on 30 Sept 2019, 02:14 last edited by
    #1

    I want to use modbus module, serialbus add in pro file then occured a problem, Project ERROR: Unknown module(s) in QT: serialbus. I don't find command line to install serialbus. Only find in ubuntu19 can install this module by sudo apt-get install libqt5serialbus5-dev.Anyone can help me...

    J 2 Replies Last reply 30 Sept 2019, 04:44
    0
    • G goldLovemoon
      30 Sept 2019, 02:14

      I want to use modbus module, serialbus add in pro file then occured a problem, Project ERROR: Unknown module(s) in QT: serialbus. I don't find command line to install serialbus. Only find in ubuntu19 can install this module by sudo apt-get install libqt5serialbus5-dev.Anyone can help me...

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 30 Sept 2019, 04:44 last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • G goldLovemoon
        30 Sept 2019, 02:14

        I want to use modbus module, serialbus add in pro file then occured a problem, Project ERROR: Unknown module(s) in QT: serialbus. I don't find command line to install serialbus. Only find in ubuntu19 can install this module by sudo apt-get install libqt5serialbus5-dev.Anyone can help me...

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 30 Sept 2019, 04:46 last edited by jsulm
        #3

        @goldLovemoon Which Qt version do you use and how did you install it? On which platform?

        G 1 Reply Last reply 30 Sept 2019, 05:07
        0
        • J jsulm
          30 Sept 2019, 04:46

          @goldLovemoon Which Qt version do you use and how did you install it? On which platform?

          G Offline
          G Offline
          goldLovemoon
          wrote on 30 Sept 2019, 05:07 last edited by
          #4

          @jsulm I used Qt5.9.5 and install in ubuntu 18.04

          J 1 Reply Last reply 30 Sept 2019, 05:12
          0
          • G goldLovemoon
            30 Sept 2019, 05:07

            @jsulm I used Qt5.9.5 and install in ubuntu 18.04

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 30 Sept 2019, 05:12 last edited by
            #5

            @goldLovemoon Did you try to install the Qt serialport(-dev) module? Maybe serialbus is part of it in Ubuntu 18?

            G 1 Reply Last reply 30 Sept 2019, 05:17
            0
            • J jsulm
              30 Sept 2019, 05:12

              @goldLovemoon Did you try to install the Qt serialport(-dev) module? Maybe serialbus is part of it in Ubuntu 18?

              G Offline
              G Offline
              goldLovemoon
              wrote on 30 Sept 2019, 05:17 last edited by
              #6

              @jsulm yeah,serialport can be used, but when I use serialbus occured an error

              J 1 Reply Last reply 30 Sept 2019, 05:21
              0
              • G goldLovemoon
                30 Sept 2019, 05:17

                @jsulm yeah,serialport can be used, but when I use serialbus occured an error

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 30 Sept 2019, 05:21 last edited by
                #7

                @goldLovemoon What I mean is: did you install the serialport Qt package on Ubuntu and then tried to use serialbus? Also it can be that Ubuntu 18 does not provide Qt serialbus, but that I don't know, I just can see that there is no deb package for that. If you don't have to use Ubuntu Qt packages then you can use Qt online installer and download recent Qt version.

                G 1 Reply Last reply 30 Sept 2019, 05:29
                1
                • J jsulm
                  30 Sept 2019, 05:21

                  @goldLovemoon What I mean is: did you install the serialport Qt package on Ubuntu and then tried to use serialbus? Also it can be that Ubuntu 18 does not provide Qt serialbus, but that I don't know, I just can see that there is no deb package for that. If you don't have to use Ubuntu Qt packages then you can use Qt online installer and download recent Qt version.

                  G Offline
                  G Offline
                  goldLovemoon
                  wrote on 30 Sept 2019, 05:29 last edited by
                  #8

                  @jsulm I know, but I can't use the command line 'apt-get install libqt5serialbus5-dev' to get package.

                  J A 2 Replies Last reply 30 Sept 2019, 05:31
                  0
                  • G goldLovemoon
                    30 Sept 2019, 05:29

                    @jsulm I know, but I can't use the command line 'apt-get install libqt5serialbus5-dev' to get package.

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 30 Sept 2019, 05:31 last edited by
                    #9

                    @goldLovemoon You misunderstand me: install the serialport package and then try to use serialbus.

                    G 1 Reply Last reply 30 Sept 2019, 05:42
                    0
                    • G goldLovemoon
                      30 Sept 2019, 05:29

                      @jsulm I know, but I can't use the command line 'apt-get install libqt5serialbus5-dev' to get package.

                      A Offline
                      A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on 30 Sept 2019, 05:40 last edited by
                      #10

                      @goldLovemoon If Ubuntu does not provide an official package, then you cannot use it.

                      Either find an apt repo doing so, or install Qt with the online installer as @jsulm already said.

                      https://download.qt.io/official_releases/online_installers/

                      Regards

                      Qt has to stay free or it will die.

                      1 Reply Last reply
                      2
                      • J jsulm
                        30 Sept 2019, 05:31

                        @goldLovemoon You misunderstand me: install the serialport package and then try to use serialbus.

                        G Offline
                        G Offline
                        goldLovemoon
                        wrote on 30 Sept 2019, 05:42 last edited by
                        #11

                        @jsulm I have install the serialport package, but can't work

                        G 1 Reply Last reply 30 Sept 2019, 05:52
                        0
                        • G goldLovemoon
                          30 Sept 2019, 05:42

                          @jsulm I have install the serialport package, but can't work

                          G Offline
                          G Offline
                          goldLovemoon
                          wrote on 30 Sept 2019, 05:52 last edited by
                          #12

                          @goldLovemoon https://ubuntu.pkgs.org/19.04/ubuntu-universe-amd64/libqt5serialbus5-dev_5.12.2-1_amd64.deb.html I find the package in ubuntu19

                          J 1 Reply Last reply 30 Sept 2019, 05:58
                          0
                          • G goldLovemoon
                            30 Sept 2019, 05:52

                            @goldLovemoon https://ubuntu.pkgs.org/19.04/ubuntu-universe-amd64/libqt5serialbus5-dev_5.12.2-1_amd64.deb.html I find the package in ubuntu19

                            J Offline
                            J Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 30 Sept 2019, 05:58 last edited by
                            #13

                            @goldLovemoon Yes Ubuntu 19 provides it, but not Ubuntu 18.

                            G 1 Reply Last reply 30 Sept 2019, 06:05
                            1
                            • J jsulm
                              30 Sept 2019, 05:58

                              @goldLovemoon Yes Ubuntu 19 provides it, but not Ubuntu 18.

                              G Offline
                              G Offline
                              goldLovemoon
                              wrote on 30 Sept 2019, 06:05 last edited by
                              #14

                              @jsulm But now I want use this module in Qt, how can I install it

                              J 1 Reply Last reply 30 Sept 2019, 06:22
                              0
                              • G goldLovemoon
                                30 Sept 2019, 06:05

                                @jsulm But now I want use this module in Qt, how can I install it

                                J Offline
                                J Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on 30 Sept 2019, 06:22 last edited by
                                #15

                                @goldLovemoon said in how to install serial bus in ubuntu18.04:

                                how can I install it

                                I already suggested to install a newer Qt version using online installer. Since Ubuntu 18 does not provide this package this would be the easiest solution...

                                1 Reply Last reply
                                3
                                • L Offline
                                  L Offline
                                  Loophole Fred
                                  wrote on 19 Apr 2021, 15:25 last edited by Loophole Fred
                                  #16

                                  In case someone else get stuck with old requirements.... yay...

                                  • Required: Git, qmake, make
                                  • You may wanna skip the 'overkill' step

                                  Overkill: get all qt-stuff

                                  sudo apt install qml-module-qt-labs-folderlistmodel qml-module-qtquick-extras qml-module-qtquick-controls2 qt5-default libqt5quickcontrols2-5 qtquickcontrols2-5-dev qtcreator qtcreator-doc libqt5serialport5-dev build-essential qml-module-qt3d qt3d5-dev qtdeclarative5-dev qtconnectivity5-dev qtmultimedia5-dev

                                  To get rid of the private/qobject_p.h error

                                  sudo apt-get install qtbase5-private-dev

                                  Set build env

                                  git clone git://code.qt.io/qt/qtserialbus.git
                                  cd qtserialbus
                                  git checkout tags/QT_VERSION version [-b LOCAL_BRANCH]

                                  • QT_VERSION: version shall be written in a v.X.X.X format (v.5.9.5 for Ubunu 18.04)
                                  • LOCAL_BRANCH:: optional, but still a good practice..

                                  Build and install

                                  qmake
                                  make [-jX]

                                  • where X is the number of cores use to build. If single core, don't use the -j
                                    sudo make install

                                  cheers

                                  (source: https://gist.github.com/awesomebytes/ed90785324757b03c8f01e3ffa36d436)

                                  1 Reply Last reply
                                  0
                                  • R Offline
                                    R Offline
                                    Rahul Das
                                    wrote on 22 Feb 2024, 21:18 last edited by Rahul Das
                                    #17

                                    @goldLovemoon said in how to install serial bus in ubuntu18.04:

                                    dev

                                    In case someone got into the old stuff :
                                    sudo apt-get install libqt5serialbus5 libqt5serialbus5-bin libqt5serialbus5-plugins


                                    Declaration of (Platform) independence.

                                    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