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. How to copy cross-compiled Qt binaries from one computer to another
QtWS25 Last Chance

How to copy cross-compiled Qt binaries from one computer to another

Scheduled Pinned Locked Moved Solved Mobile and Embedded
37 Posts 4 Posters 6.8k 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.
  • P Pablo J. Rogina
    16 Sept 2019, 19:32

    @ketank16 said in How to copy cross-compiled Qt binaries from one computer to another:

    my current laptop has cross compiled binaries for Qt5.13 with Beaglebone Black as target device

    Out of curiosity, and to help some other users fighting vigorously with such devices, did you follow any guide or instructions that you can share?
    Thanks in advance.

    K Offline
    K Offline
    Ketank16
    wrote on 17 Sept 2019, 11:03 last edited by
    #10

    @pablo-j-rogina I have read countless threads and posts on this forum. I've made my own little guide to help my colleagues. Its still a rough draft but I'll share it tonight. Keep in mind that I haven't been able to compile with EGLFS compatibility but yeah, nonetheless it will save time for you or the others.

    1 Reply Last reply
    2
    • P Pablo J. Rogina
      16 Sept 2019, 19:32

      @ketank16 said in How to copy cross-compiled Qt binaries from one computer to another:

      my current laptop has cross compiled binaries for Qt5.13 with Beaglebone Black as target device

      Out of curiosity, and to help some other users fighting vigorously with such devices, did you follow any guide or instructions that you can share?
      Thanks in advance.

      K Offline
      K Offline
      Ketank16
      wrote on 17 Sept 2019, 14:30 last edited by
      #11

      @pablo-j-rogina

      Here you can find the file that I've written. Make sure to suggest some changes too if you find something wrong.

      P A 2 Replies Last reply 17 Sept 2019, 14:52
      3
      • K Ketank16
        17 Sept 2019, 14:30

        @pablo-j-rogina

        Here you can find the file that I've written. Make sure to suggest some changes too if you find something wrong.

        P Offline
        P Offline
        Pablo J. Rogina
        wrote on 17 Sept 2019, 14:52 last edited by
        #12

        @ketank16 thank you very much for sharing your knowledge.
        I cannot test step by step since I don't have a BBB device, but it looks pretty much detailed and easy to follow.
        One picky addition if you will: I'd add the "location" (i.e. HOST or BBB) to every step so to be sure where the action/command needs to be run, something like:

        10. [HOST] Run following command in Qt directory:
        ...
        14. [BBB] (Open Beaglebone over SSH and follow this step)
        

        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

        K 1 Reply Last reply 17 Sept 2019, 15:27
        2
        • P Pablo J. Rogina
          17 Sept 2019, 14:52

          @ketank16 thank you very much for sharing your knowledge.
          I cannot test step by step since I don't have a BBB device, but it looks pretty much detailed and easy to follow.
          One picky addition if you will: I'd add the "location" (i.e. HOST or BBB) to every step so to be sure where the action/command needs to be run, something like:

          10. [HOST] Run following command in Qt directory:
          ...
          14. [BBB] (Open Beaglebone over SSH and follow this step)
          
          K Offline
          K Offline
          Ketank16
          wrote on 17 Sept 2019, 15:27 last edited by
          #13

          @pablo-j-rogina Thanks, already updated the file and completed the guide too. Hopefully people can find it useful from here.

          A 1 Reply Last reply 20 Sept 2019, 05:24
          2
          • K Ketank16
            17 Sept 2019, 14:30

            @pablo-j-rogina

            Here you can find the file that I've written. Make sure to suggest some changes too if you find something wrong.

            A Offline
            A Offline
            Asha
            wrote on 19 Sept 2019, 06:24 last edited by
            #14

            @ketank16

            Hi,

            as you said in your pdf file,the seventh step,

            How to download the sysroot-relativelinks.py,

            when I open the github it displaying the text file,there is no option for download purpose,

            K 1 Reply Last reply 20 Sept 2019, 08:21
            0
            • K Ketank16
              17 Sept 2019, 15:27

              @pablo-j-rogina Thanks, already updated the file and completed the guide too. Hopefully people can find it useful from here.

              A Offline
              A Offline
              Asha
              wrote on 20 Sept 2019, 05:24 last edited by
              #15

              @ketank16

              Hi,

              I am trying qt with beagleboneboard and I followed your document,

              step by step,

              After./configure(step 10),the result is

              0_1568956288265_build (1).png

              Step 11,make -j4 The result is :

              0_1568956436569_make-j4.png

              Step 12:make install, The result is

              0_1568956528353_makeinstall.png
              0_1568956560709_makeinstall1.png
              0_1568956576699_makeinstall2.png
              0_1568956594246_makeinstaller3.png

              Afer make installation I got the ~/BBB/sysroot/home/debian/Qt5ForBBB directory also,

              I downloaded the fonts and copied those on to Qt5ForBBB/lib/fonts, and finished with step 14 also,

              but I am not getting the qtcreator window,why I am not getting qt,please go through the screenshots and let me know if any mistakes is there,

              as you showed on step 15,

              How to launch the qt after step 14,please guide me...

              Thankyou..

              J K 2 Replies Last reply 20 Sept 2019, 05:36
              0
              • A Asha
                20 Sept 2019, 05:24

                @ketank16

                Hi,

                I am trying qt with beagleboneboard and I followed your document,

                step by step,

                After./configure(step 10),the result is

                0_1568956288265_build (1).png

                Step 11,make -j4 The result is :

                0_1568956436569_make-j4.png

                Step 12:make install, The result is

                0_1568956528353_makeinstall.png
                0_1568956560709_makeinstall1.png
                0_1568956576699_makeinstall2.png
                0_1568956594246_makeinstaller3.png

                Afer make installation I got the ~/BBB/sysroot/home/debian/Qt5ForBBB directory also,

                I downloaded the fonts and copied those on to Qt5ForBBB/lib/fonts, and finished with step 14 also,

                but I am not getting the qtcreator window,why I am not getting qt,please go through the screenshots and let me know if any mistakes is there,

                as you showed on step 15,

                How to launch the qt after step 14,please guide me...

                Thankyou..

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 20 Sept 2019, 05:36 last edited by
                #16

                @asha said in How to copy cross-compiled Qt binaries from one computer to another:

                but I am not getting the qtcreator window

                What do you mean by that?
                There is no need to cross compile QtCreator for the device unless you want to use it on your device. Simply install QtCreator via installer on your Ubuntu machine and create a Kit there with your cross compiled Qt.

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

                1 Reply Last reply
                1
                • A Asha
                  20 Sept 2019, 05:24

                  @ketank16

                  Hi,

                  I am trying qt with beagleboneboard and I followed your document,

                  step by step,

                  After./configure(step 10),the result is

                  0_1568956288265_build (1).png

                  Step 11,make -j4 The result is :

                  0_1568956436569_make-j4.png

                  Step 12:make install, The result is

                  0_1568956528353_makeinstall.png
                  0_1568956560709_makeinstall1.png
                  0_1568956576699_makeinstall2.png
                  0_1568956594246_makeinstaller3.png

                  Afer make installation I got the ~/BBB/sysroot/home/debian/Qt5ForBBB directory also,

                  I downloaded the fonts and copied those on to Qt5ForBBB/lib/fonts, and finished with step 14 also,

                  but I am not getting the qtcreator window,why I am not getting qt,please go through the screenshots and let me know if any mistakes is there,

                  as you showed on step 15,

                  How to launch the qt after step 14,please guide me...

                  Thankyou..

                  K Offline
                  K Offline
                  Ketank16
                  wrote on 20 Sept 2019, 08:19 last edited by
                  #17

                  @asha In your last screenshot, you can see udev errors. Apparently even after installing libudev on Beaglebone black and eventually copying it in sysroot doesn't solve the problem either. But a workaround is to make qmake look for udev in runtime rather than at compile time. The discussion and how-to is described in this thread here. You can follow it for current version of Qt as well. Let me know how the results come out for you.

                  1 Reply Last reply
                  1
                  • A Asha
                    19 Sept 2019, 06:24

                    @ketank16

                    Hi,

                    as you said in your pdf file,the seventh step,

                    How to download the sysroot-relativelinks.py,

                    when I open the github it displaying the text file,there is no option for download purpose,

                    K Offline
                    K Offline
                    Ketank16
                    wrote on 20 Sept 2019, 08:21 last edited by
                    #18

                    @asha Easiest way is make a file with that name on your computer and copy the contents from git file to your local file. Run sudo chmod a+rx Sysroot-relativelinks.py to make it executable and you're good to go.

                    A 2 Replies Last reply 23 Sept 2019, 10:03
                    1
                    • K Ketank16
                      20 Sept 2019, 08:21

                      @asha Easiest way is make a file with that name on your computer and copy the contents from git file to your local file. Run sudo chmod a+rx Sysroot-relativelinks.py to make it executable and you're good to go.

                      A Offline
                      A Offline
                      Asha
                      wrote on 23 Sept 2019, 10:03 last edited by
                      #19
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        Asha
                        wrote on 23 Sept 2019, 11:15 last edited by
                        #20
                        This post is deleted!
                        1 Reply Last reply
                        0
                        • K Ketank16
                          20 Sept 2019, 08:21

                          @asha Easiest way is make a file with that name on your computer and copy the contents from git file to your local file. Run sudo chmod a+rx Sysroot-relativelinks.py to make it executable and you're good to go.

                          A Offline
                          A Offline
                          Asha
                          wrote on 23 Sept 2019, 12:05 last edited by
                          #21

                          @Ketank16

                          Hi,

                          I followed the same as you said,when I am trying to run

                          ./Sysroot-relativelinks.py sysroot

                          getting Output:

                          /usr/bin/env: 'python': No such file or directory

                          while getting this can I processed next?

                          P 1 Reply Last reply 23 Sept 2019, 12:08
                          0
                          • A Asha
                            23 Sept 2019, 12:05

                            @Ketank16

                            Hi,

                            I followed the same as you said,when I am trying to run

                            ./Sysroot-relativelinks.py sysroot

                            getting Output:

                            /usr/bin/env: 'python': No such file or directory

                            while getting this can I processed next?

                            P Offline
                            P Offline
                            Pablo J. Rogina
                            wrote on 23 Sept 2019, 12:08 last edited by
                            #22

                            @Asha said in How to copy cross-compiled Qt binaries from one computer to another:

                            while getting this can I processed next?

                            No. Install python in your host PC and repeat the step. Only when it succeeds you can go on.

                            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

                            A 1 Reply Last reply 23 Sept 2019, 12:48
                            0
                            • P Pablo J. Rogina
                              23 Sept 2019, 12:08

                              @Asha said in How to copy cross-compiled Qt binaries from one computer to another:

                              while getting this can I processed next?

                              No. Install python in your host PC and repeat the step. Only when it succeeds you can go on.

                              A Offline
                              A Offline
                              Asha
                              wrote on 23 Sept 2019, 12:48 last edited by
                              #23

                              @Pablo-J-Rogina

                              Thankyou for the replay,

                              I installed python via

                              sudo apt-get install python3

                              when I am given the command like

                              python3

                              getting result Python 3.6.8

                              but after this,, executing the ./sysroot-relativelinks.py sysroot but getting the same result, No such file or directory....

                              K 1 Reply Last reply 23 Sept 2019, 15:35
                              0
                              • A Offline
                                A Offline
                                Asha
                                wrote on 23 Sept 2019, 13:24 last edited by
                                #24

                                Hi,

                                I seen where python3 is installed with the following command

                                which python3

                                the output is
                                /usr/bin/python3

                                so in sysroot-relativelinks.py file I edited the first line

                                #!/usr/bin/env python to #!/usr/bin/python3

                                After this again I executed the sysroot-relativelinks.py

                                now it is executed...what I did is it correct?...Thankyou...

                                1 Reply Last reply
                                0
                                • A Asha
                                  23 Sept 2019, 12:48

                                  @Pablo-J-Rogina

                                  Thankyou for the replay,

                                  I installed python via

                                  sudo apt-get install python3

                                  when I am given the command like

                                  python3

                                  getting result Python 3.6.8

                                  but after this,, executing the ./sysroot-relativelinks.py sysroot but getting the same result, No such file or directory....

                                  K Offline
                                  K Offline
                                  Ketank16
                                  wrote on 23 Sept 2019, 15:35 last edited by Ketank16
                                  #25

                                  @Asha You are supposed to have python2 (not python3) package. Ubuntu should automatically install python2 packages when you execute sudo apt install python.
                                  Anyways for such a small script, I don't think its gonna make a difference but please remeber python package is python2 in Ubuntu repos and python3 is well python3 itself.

                                  A 5 Replies Last reply 24 Sept 2019, 05:00
                                  0
                                  • K Ketank16
                                    23 Sept 2019, 15:35

                                    @Asha You are supposed to have python2 (not python3) package. Ubuntu should automatically install python2 packages when you execute sudo apt install python.
                                    Anyways for such a small script, I don't think its gonna make a difference but please remeber python package is python2 in Ubuntu repos and python3 is well python3 itself.

                                    A Offline
                                    A Offline
                                    Asha
                                    wrote on 24 Sept 2019, 05:00 last edited by
                                    #26

                                    @Ketank16

                                    Hi,

                                    While configuring I am getting this error,please go through this, here is the attachement

                                    conf.png

                                    How to proceed next..

                                    1 Reply Last reply
                                    0
                                    • A Offline
                                      A Offline
                                      Asha
                                      wrote on 24 Sept 2019, 05:30 last edited by
                                      #27

                                      Hi,

                                      Any suggestions...please

                                      1 Reply Last reply
                                      0
                                      • K Ketank16
                                        23 Sept 2019, 15:35

                                        @Asha You are supposed to have python2 (not python3) package. Ubuntu should automatically install python2 packages when you execute sudo apt install python.
                                        Anyways for such a small script, I don't think its gonna make a difference but please remeber python package is python2 in Ubuntu repos and python3 is well python3 itself.

                                        A Offline
                                        A Offline
                                        Asha
                                        wrote on 24 Sept 2019, 06:39 last edited by
                                        #28

                                        @Ketank16

                                        Hi,

                                        Please guide me,what mistake I am doing?...

                                        1 Reply Last reply
                                        0
                                        • A Offline
                                          A Offline
                                          Asha
                                          wrote on 24 Sept 2019, 07:19 last edited by
                                          #29

                                          I gone through some websites,
                                          about this error

                                          You dont seem to have make or gmake in your path.

                                          I export MAKE=/usr/bin/make

                                          after this tried for configuration,getting

                                          qmake.png

                                          guys,please suggest me ho w to proceed next...thankyou

                                          J 1 Reply Last reply 25 Sept 2019, 05:54
                                          0

                                          19/37

                                          23 Sept 2019, 10:03

                                          • Login

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