Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Installing new module
Forum Updated to NodeBB v4.3 + New Features

Installing new module

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
ubuntu 16.04raspberry pi 3cross compileserial portnew module
26 Posts 4 Posters 6.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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 25 Sept 2019, 11:51 last edited by
    #2

    Hi,

    Mostly the same you would if building Qt for your desktop:

    • Get the module sources
    • Use the qmake executable of your cross-compiled Qt version
    • Call make && make install

    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
    3
    • V vishbynature
      25 Sept 2019, 09:47

      hey there,
      I am using Qt on my ubuntu PC to cross-compile on my Raspberry pi
      I want to add new modules on Qt such as QSerialport ,QBluetooth ,QCharts......etc
      I am new to this installing module thing and want to know simplest steps to install new modules.

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 25 Sept 2019, 12:34 last edited by
      #3

      @vishbynature said in Installing new module:

      steps to install new modules

      You may want to check this guide, especially step 16.

      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

      V 1 Reply Last reply 26 Sept 2019, 14:39
      3
      • P Pablo J. Rogina
        25 Sept 2019, 12:34

        @vishbynature said in Installing new module:

        steps to install new modules

        You may want to check this guide, especially step 16.

        V Offline
        V Offline
        vishbynature
        wrote on 26 Sept 2019, 14:39 last edited by
        #4

        @Pablo-J-Rogina , @SGaist
        I have not installed Qt on this UBuntu, I got it done from someone else and for now I dont have that help. I had read the RaspberryPi2EGLFS doc step 16
        but couldnt make anything out of it. Now searching for a Simpler explanation.

        P 1 Reply Last reply 26 Sept 2019, 14:55
        0
        • V vishbynature
          26 Sept 2019, 14:39

          @Pablo-J-Rogina , @SGaist
          I have not installed Qt on this UBuntu, I got it done from someone else and for now I dont have that help. I had read the RaspberryPi2EGLFS doc step 16
          but couldnt make anything out of it. Now searching for a Simpler explanation.

          P Offline
          P Offline
          Pablo J. Rogina
          wrote on 26 Sept 2019, 14:55 last edited by
          #5

          @vishbynature

          Now searching for a Simpler explanation

          "Everything should be as simple as it can be but not simpler" Albert Einstein.

          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

          V 1 Reply Last reply 30 Sept 2019, 09:18
          4
          • P Pablo J. Rogina
            26 Sept 2019, 14:55

            @vishbynature

            Now searching for a Simpler explanation

            "Everything should be as simple as it can be but not simpler" Albert Einstein.

            V Offline
            V Offline
            vishbynature
            wrote on 30 Sept 2019, 09:18 last edited by vishbynature 10 Jul 2019, 10:33
            #6

            @Pablo-J-Rogina @SGaist
            ohk.
            I was able to make the serialport module. qtserialport folder was inside the build folder of Qt and then I followed the step 16 from documentation, it worked.
            Now I want to install the "bluetooth" module. No folder called qtbluetooth inside build folder. From where on Internet should I download this folder?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 30 Sept 2019, 09:19 last edited by
              #7

              Bluetooth support comes from the QtConnectivity module.

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

              V 3 Replies Last reply 30 Sept 2019, 13:45
              2
              • S SGaist
                30 Sept 2019, 09:19

                Bluetooth support comes from the QtConnectivity module.

                V Offline
                V Offline
                vishbynature
                wrote on 30 Sept 2019, 13:45 last edited by
                #8

                @SGaist,
                ok, I will make QtConnectivity module.

                1 Reply Last reply
                0
                • S SGaist
                  30 Sept 2019, 09:19

                  Bluetooth support comes from the QtConnectivity module.

                  V Offline
                  V Offline
                  vishbynature
                  wrote on 1 Oct 2019, 11:48 last edited by vishbynature 10 Jan 2019, 12:46
                  #9

                  @SGaist
                  I was able to make the module and run my program in raspberry pi
                  but for now I have this message:
                  qt.bluetooth: Dummy backend running. Qt Bluetooth module is non-functional. on both my RPi and ubuntu 16.04.
                  I followed this thread.
                  working on it.
                  update:
                  my ubuntu 16.04 Qt program is able to communicate with raspberry pi python program. I have error in raspberry pi only now.

                  qt.bluetooth: Dummy backend running. Qt Bluetooth module is non-functional.

                  1 Reply Last reply
                  0
                  • S SGaist
                    30 Sept 2019, 09:19

                    Bluetooth support comes from the QtConnectivity module.

                    V Offline
                    V Offline
                    vishbynature
                    wrote on 1 Oct 2019, 13:01 last edited by
                    #10

                    @SGaist @Pablo-J-Rogina
                    I found this post suggesting you have to install libraries in between steps 6 and 8 while making raspberry pi. Is this link relevant?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 1 Oct 2019, 18:42 last edited by
                      #11

                      Yes it is.

                      You need to have the development packages of the needed dependencies for your target available in the sysroot you use to cross-compile Qt.

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

                      V 1 Reply Last reply 2 Oct 2019, 06:49
                      1
                      • S SGaist
                        1 Oct 2019, 18:42

                        Yes it is.

                        You need to have the development packages of the needed dependencies for your target available in the sysroot you use to cross-compile Qt.

                        V Offline
                        V Offline
                        vishbynature
                        wrote on 2 Oct 2019, 06:49 last edited by vishbynature 10 Feb 2019, 06:59
                        #12

                        @SGaist
                        ok I followed the procedure , installed All the libraries as mentioned in the link after step 6 and step 8 and made new raspberry pi, still i get the same Error message on RPi. I installed stretch lite on my RPi does this have any bearing? or there is something more to be done?
                        Does my Qt creator in ubuntu needs to be made again?

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 2 Oct 2019, 18:24 last edited by
                          #13

                          Might be a silly question but did you update the sysroot on your desktop machine ?

                          If so, did you rebuild the Qt Connectivity module from scratch ?

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

                          V 1 Reply Last reply 3 Oct 2019, 07:02
                          0
                          • S SGaist
                            2 Oct 2019, 18:24

                            Might be a silly question but did you update the sysroot on your desktop machine ?

                            If so, did you rebuild the Qt Connectivity module from scratch ?

                            V Offline
                            V Offline
                            vishbynature
                            wrote on 3 Oct 2019, 07:02 last edited by vishbynature 10 Mar 2019, 07:15
                            #14

                            @SGaist
                            about sysroot no I did not update it, i just follow plain steps to make RPi only.
                            my sysroot has folder of bluetooth in /usr/include directory.
                            and about Qt Connectivity yes I did make this module from scratch.
                            may be after making Qtconnectivity bluetooth folder was created in sysroot.

                            P 1 Reply Last reply 3 Oct 2019, 14:38
                            0
                            • V vishbynature
                              3 Oct 2019, 07:02

                              @SGaist
                              about sysroot no I did not update it, i just follow plain steps to make RPi only.
                              my sysroot has folder of bluetooth in /usr/include directory.
                              and about Qt Connectivity yes I did make this module from scratch.
                              may be after making Qtconnectivity bluetooth folder was created in sysroot.

                              P Offline
                              P Offline
                              Pablo J. Rogina
                              wrote on 3 Oct 2019, 14:38 last edited by
                              #15

                              @vishbynature said in Installing new module:

                              about sysroot no I did not update it, i just follow plain steps to make RPi only.

                              Please check step #8:
                              Using rsync we can properly keep things synchronized in the future as well

                              so whenever you install libraries/headers in your device, you need to keep it in sync in the sysroot folder in your host

                              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

                              V 1 Reply Last reply 3 Oct 2019, 19:30
                              1
                              • P Pablo J. Rogina
                                3 Oct 2019, 14:38

                                @vishbynature said in Installing new module:

                                about sysroot no I did not update it, i just follow plain steps to make RPi only.

                                Please check step #8:
                                Using rsync we can properly keep things synchronized in the future as well

                                so whenever you install libraries/headers in your device, you need to keep it in sync in the sysroot folder in your host

                                V Offline
                                V Offline
                                vishbynature
                                wrote on 3 Oct 2019, 19:30 last edited by
                                #16

                                @Pablo-J-Rogina
                                ok for start
                                you need to keep it in sync in the sysroot folder in your host.
                                how is this achieved?
                                what i follow is I make creator and Rpi and for another RPi i will follow the procedure of its make. Now if in between we want to install and add new feaures like use of Qbluetooth i will make Qtconnectivity. now what sould I do to keep sysroot in sync?
                                and what to do to make this work on my RPi?

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 3 Oct 2019, 20:06 last edited by
                                  #17

                                  @Pablo-J-Rogina already provided the answer in italic: rsync.

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

                                  V 1 Reply Last reply 4 Oct 2019, 08:32
                                  0
                                  • S SGaist
                                    3 Oct 2019, 20:06

                                    @Pablo-J-Rogina already provided the answer in italic: rsync.

                                    V Offline
                                    V Offline
                                    vishbynature
                                    wrote on 4 Oct 2019, 08:32 last edited by
                                    #18

                                    @SGaist @Pablo-J-Rogina
                                    I am following the steps properly
                                    which include:
                                    rsync -avz pi@raspberrypi.local:/lib sysroot
                                    rsync -avz pi@raspberrypi.local:/usr/include sysroot/usr
                                    rsync -avz pi@raspberrypi.local:/usr/lib sysroot/usr
                                    rsync -avz pi@raspberrypi.local:/opt/vc sysroot/opt
                                    of step 8.

                                    V 1 Reply Last reply 5 Oct 2019, 11:59
                                    0
                                    • V vishbynature
                                      4 Oct 2019, 08:32

                                      @SGaist @Pablo-J-Rogina
                                      I am following the steps properly
                                      which include:
                                      rsync -avz pi@raspberrypi.local:/lib sysroot
                                      rsync -avz pi@raspberrypi.local:/usr/include sysroot/usr
                                      rsync -avz pi@raspberrypi.local:/usr/lib sysroot/usr
                                      rsync -avz pi@raspberrypi.local:/opt/vc sysroot/opt
                                      of step 8.

                                      V Offline
                                      V Offline
                                      vishbynature
                                      wrote on 5 Oct 2019, 11:59 last edited by
                                      #19

                                      I have installed these libraries on Rpi before rsync steps
                                      libqt5bluetooth5 and qtconnectivity5-dev
                                      libbluetooth-dev bluetooth blueman bluez libusb-dev libdbus-1-dev bluez-hcidump bluez-tools python-bluez.
                                      @Pablo-J-Rogina @SGaist .

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on 5 Oct 2019, 18:55 last edited by
                                        #20

                                        Did you check the detection logs when building the module ?

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

                                        V 1 Reply Last reply 7 Oct 2019, 05:39
                                        0
                                        • S SGaist
                                          5 Oct 2019, 18:55

                                          Did you check the detection logs when building the module ?

                                          V Offline
                                          V Offline
                                          vishbynature
                                          wrote on 7 Oct 2019, 05:39 last edited by
                                          #21

                                          @SGaist
                                          I checked the process again.
                                          on my ubuntu 16.04 host machine:
                                          ~/raspi/qt-everywhere-opensource-src-5.9.1/qtconnectivity$ ~/raspi/qt5/bin/qmake

                                          Running configuration tests...
                                          Done running configuration tests.

                                          Configure summary:

                                          Qt Bluetooth:
                                          BlueZ .................................. no
                                          BlueZ Low Energy ....................... no
                                          Linux Crypto API ....................... no

                                          Qt is now configured for building. Just run 'make'.
                                          Once everything is built, Qt is installed.
                                          You should NOT run 'make install'.
                                          Note that this build cannot be deployed to other machines or devices.

                                          Prior to reconfiguration, make sure you remove any leftovers from
                                          the previous build.

                                          "Note that this build cannot be deployed to other machines or devices."
                                          well that's a bummer if its true.

                                          jsulmJ 1 Reply Last reply 7 Oct 2019, 05:44
                                          0

                                          11/26

                                          1 Oct 2019, 18:42

                                          • Login

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