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
Forum Updated to NodeBB v4.3 + New Features

how to install serial bus in ubuntu18.04

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
17 Posts 5 Posters 5.4k 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.
  • jsulmJ jsulm

    @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 last edited by
    #8

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

    jsulmJ aha_1980A 2 Replies Last reply
    0
    • G goldLovemoon

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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #9

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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      G 1 Reply Last reply
      0
      • G goldLovemoon

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

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 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
        • jsulmJ jsulm

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

          G Offline
          G Offline
          goldLovemoon
          wrote on last edited by
          #11

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

          G 1 Reply Last reply
          0
          • G goldLovemoon

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

            G Offline
            G Offline
            goldLovemoon
            wrote on 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

            jsulmJ 1 Reply Last reply
            0
            • G goldLovemoon

              @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

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #13

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

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              G 1 Reply Last reply
              1
              • jsulmJ jsulm

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

                G Offline
                G Offline
                goldLovemoon
                wrote on last edited by
                #14

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

                jsulmJ 1 Reply Last reply
                0
                • G goldLovemoon

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

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 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...

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  3
                  • L Offline
                    L Offline
                    Loophole Fred
                    wrote on 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 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