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. Deploy on BBB: cannot execute binary file: Exec format error

Deploy on BBB: cannot execute binary file: Exec format error

Scheduled Pinned Locked Moved Solved Installation and Deployment
21 Posts 4 Posters 8.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.
  • V Offline
    V Offline
    VRonin
    wrote on 24 Nov 2016, 09:02 last edited by
    #2

    Image upload did not work, please use an external service, see https://forum.qt.io/topic/62615/how-to-insert-image-on-this-forum

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    A 1 Reply Last reply 24 Nov 2016, 09:17
    0
    • V VRonin
      24 Nov 2016, 09:02

      Image upload did not work, please use an external service, see https://forum.qt.io/topic/62615/how-to-insert-image-on-this-forum

      A Offline
      A Offline
      Andrey Shmelew
      wrote on 24 Nov 2016, 09:17 last edited by
      #3

      @VRonin is it better now?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 24 Nov 2016, 23:03 last edited by
        #4

        Hi,

        Something's not clear from your description, did you cross-compile Qt for your BBB ?

        From what you wrote it looks like you first tried to run the x86 version of your application on your BBB and then you tried to compile your application with an ARM toolchain but still using your desktop 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

        A 1 Reply Last reply 25 Nov 2016, 03:24
        1
        • S SGaist
          24 Nov 2016, 23:03

          Hi,

          Something's not clear from your description, did you cross-compile Qt for your BBB ?

          From what you wrote it looks like you first tried to run the x86 version of your application on your BBB and then you tried to compile your application with an ARM toolchain but still using your desktop version of Qt.

          A Offline
          A Offline
          Andrey Shmelew
          wrote on 25 Nov 2016, 03:24 last edited by Andrey Shmelew
          #5

          @SGaist

          Hi,

          Yes, i tried to crosscompile QT for my BBB,

          First I tried to run the x86 version of my application on my BBB and then i tried to compile application with an ARM toolchain but still using my desktop version of Qt, and it naturally did not work. So i tried to configure my QT opensource 5.5.1 on host ubuntu for BBB, and when i selected arm-linux-gnueabi-gcc, an error appeared: "Compiler "Compiler BBB" (arm-linux-generic-elf-32bit) cannot produce code for profile QT "QT 5.5.1 GCC 32bit" (x86-linux-generic-elf-32bit)". By the way, BBB Device responded normally, i can see list of processes.

          P.S. There is qt creator 4 installed on BBB, but i want develop project only on PC

          A 1 Reply Last reply 25 Nov 2016, 05:25
          0
          • A Andrey Shmelew
            25 Nov 2016, 03:24

            @SGaist

            Hi,

            Yes, i tried to crosscompile QT for my BBB,

            First I tried to run the x86 version of my application on my BBB and then i tried to compile application with an ARM toolchain but still using my desktop version of Qt, and it naturally did not work. So i tried to configure my QT opensource 5.5.1 on host ubuntu for BBB, and when i selected arm-linux-gnueabi-gcc, an error appeared: "Compiler "Compiler BBB" (arm-linux-generic-elf-32bit) cannot produce code for profile QT "QT 5.5.1 GCC 32bit" (x86-linux-generic-elf-32bit)". By the way, BBB Device responded normally, i can see list of processes.

            P.S. There is qt creator 4 installed on BBB, but i want develop project only on PC

            A Offline
            A Offline
            Andrey Shmelew
            wrote on 25 Nov 2016, 05:25 last edited by
            #6

            i suppose i need to change qt profile from x86 to arm, but i can not find qmake file for arm

            J 1 Reply Last reply 25 Nov 2016, 05:39
            0
            • A Andrey Shmelew
              25 Nov 2016, 05:25

              i suppose i need to change qt profile from x86 to arm, but i can not find qmake file for arm

              J Online
              J Online
              jsulm
              Lifetime Qt Champion
              wrote on 25 Nov 2016, 05:39 last edited by
              #7

              @Andrey-Shmelew How did you call configure?

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

              A 1 Reply Last reply 25 Nov 2016, 06:09
              0
              • J jsulm
                25 Nov 2016, 05:39

                @Andrey-Shmelew How did you call configure?

                A Offline
                A Offline
                Andrey Shmelew
                wrote on 25 Nov 2016, 06:09 last edited by Andrey Shmelew
                #8

                @jsulm

                after qt 5 install :
                1 - added new kit
                2 - added device type (generic Linux Device)
                3 - added a device (linux device), ip address 192.168.7.2, port 22
                4 - added GCC compiler, armv8l-linux-gnueabi-g

                this step i can not do because can't find qmake file:
                5 - added QT version with qmake file for arm

                J 1 Reply Last reply 25 Nov 2016, 06:22
                0
                • A Andrey Shmelew
                  25 Nov 2016, 06:09

                  @jsulm

                  after qt 5 install :
                  1 - added new kit
                  2 - added device type (generic Linux Device)
                  3 - added a device (linux device), ip address 192.168.7.2, port 22
                  4 - added GCC compiler, armv8l-linux-gnueabi-g

                  this step i can not do because can't find qmake file:
                  5 - added QT version with qmake file for arm

                  J Online
                  J Online
                  jsulm
                  Lifetime Qt Champion
                  wrote on 25 Nov 2016, 06:22 last edited by
                  #9

                  @Andrey-Shmelew said in Deploy on BBB: cannot execute binary file: Exec format error:

                  added QT version with qmake file for arm

                  Well, you need Qt built for ARM. That means you need to download Qt source code, call configure with correct parameters and then make;make install. qmake will be built during compilation. When you have Qt build for ARM then you can build your app for ARM.

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

                  A 1 Reply Last reply 25 Nov 2016, 06:43
                  2
                  • J jsulm
                    25 Nov 2016, 06:22

                    @Andrey-Shmelew said in Deploy on BBB: cannot execute binary file: Exec format error:

                    added QT version with qmake file for arm

                    Well, you need Qt built for ARM. That means you need to download Qt source code, call configure with correct parameters and then make;make install. qmake will be built during compilation. When you have Qt build for ARM then you can build your app for ARM.

                    A Offline
                    A Offline
                    Andrey Shmelew
                    wrote on 25 Nov 2016, 06:43 last edited by Andrey Shmelew
                    #10

                    @jsulm
                    thanks,
                    but i have never compiled QT From source code, so will you provide me a good tutorial?
                    by the way, on this video https://youtu.be/eLr35wUrz6Q?t=248 the author just points qmake file

                    alternate text

                    J 1 Reply Last reply 25 Nov 2016, 06:45
                    0
                    • A Andrey Shmelew
                      25 Nov 2016, 06:43

                      @jsulm
                      thanks,
                      but i have never compiled QT From source code, so will you provide me a good tutorial?
                      by the way, on this video https://youtu.be/eLr35wUrz6Q?t=248 the author just points qmake file

                      alternate text

                      J Online
                      J Online
                      jsulm
                      Lifetime Qt Champion
                      wrote on 25 Nov 2016, 06:45 last edited by
                      #11

                      @Andrey-Shmelew Apparently the author already has an ARM build.
                      Cross compilation is not an easy task. I don't have any tutorial.
                      But you can search on internet, here is one for RaspberryPi: https://wiki.qt.io/RaspberryPi_Beginners_Guide

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

                      A 1 Reply Last reply 25 Nov 2016, 07:47
                      1
                      • J jsulm
                        25 Nov 2016, 06:45

                        @Andrey-Shmelew Apparently the author already has an ARM build.
                        Cross compilation is not an easy task. I don't have any tutorial.
                        But you can search on internet, here is one for RaspberryPi: https://wiki.qt.io/RaspberryPi_Beginners_Guide

                        A Offline
                        A Offline
                        Andrey Shmelew
                        wrote on 25 Nov 2016, 07:47 last edited by Andrey Shmelew
                        #12
                        This post is deleted!
                        A 1 Reply Last reply 28 Nov 2016, 08:19
                        0
                        • A Andrey Shmelew
                          25 Nov 2016, 07:47

                          This post is deleted!

                          A Offline
                          A Offline
                          Andrey Shmelew
                          wrote on 28 Nov 2016, 08:19 last edited by
                          #13

                          @Andrey-Shmelew

                          i have built qt for BBB as described in the link i posted in previous post and it finally works! I can deploy my QT project now. WOW!!! But not all projects. (sad)
                          Because of some reason apps that are built with qtquick does not start!
                          But there are a lot of videos with QtQuick running on BBB (for ex. https://www.youtube.com/watch?v=eDrBCzNSWaQ)
                          i think it happens because of absent of necessary drivers.
                          how can i start qtquick app on BBB,
                          could anybody help me with this problem?

                          J 1 Reply Last reply 28 Nov 2016, 08:48
                          0
                          • A Andrey Shmelew
                            28 Nov 2016, 08:19

                            @Andrey-Shmelew

                            i have built qt for BBB as described in the link i posted in previous post and it finally works! I can deploy my QT project now. WOW!!! But not all projects. (sad)
                            Because of some reason apps that are built with qtquick does not start!
                            But there are a lot of videos with QtQuick running on BBB (for ex. https://www.youtube.com/watch?v=eDrBCzNSWaQ)
                            i think it happens because of absent of necessary drivers.
                            how can i start qtquick app on BBB,
                            could anybody help me with this problem?

                            J Online
                            J Online
                            jsulm
                            Lifetime Qt Champion
                            wrote on 28 Nov 2016, 08:48 last edited by
                            #14

                            @Andrey-Shmelew As far as I know QtQuick requires OpenGL?

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

                            A 1 Reply Last reply 28 Nov 2016, 09:04
                            0
                            • J jsulm
                              28 Nov 2016, 08:48

                              @Andrey-Shmelew As far as I know QtQuick requires OpenGL?

                              A Offline
                              A Offline
                              Andrey Shmelew
                              wrote on 28 Nov 2016, 09:04 last edited by
                              #15

                              @jsulm
                              Right! And as far as i know BBB does not have GPU.
                              But if you look at the video u can see working qtquick. (who knows maybe it is a cheating).
                              is it possible to make QtQuick without openGL using?
                              Thanks!

                              J 1 Reply Last reply 28 Nov 2016, 09:07
                              0
                              • A Andrey Shmelew
                                28 Nov 2016, 09:04

                                @jsulm
                                Right! And as far as i know BBB does not have GPU.
                                But if you look at the video u can see working qtquick. (who knows maybe it is a cheating).
                                is it possible to make QtQuick without openGL using?
                                Thanks!

                                J Online
                                J Online
                                jsulm
                                Lifetime Qt Champion
                                wrote on 28 Nov 2016, 09:07 last edited by
                                #16

                                @Andrey-Shmelew Probably software rendering. But I don't know how to activate it. Maybe anybody else knows?

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

                                A 1 Reply Last reply 28 Nov 2016, 10:18
                                1
                                • J jsulm
                                  28 Nov 2016, 09:07

                                  @Andrey-Shmelew Probably software rendering. But I don't know how to activate it. Maybe anybody else knows?

                                  A Offline
                                  A Offline
                                  Andrey Shmelew
                                  wrote on 28 Nov 2016, 10:18 last edited by
                                  #17

                                  @jsulm
                                  there is a Qt Quick 2D Renderer, that works instead OpnGL ES 2 on boards without GPU like BBB, seems to be good for me.
                                  As described, i should use :
                                  export QMLSCENE_DEVICE=softwarecontext
                                  but i have no idea what does this string mean.
                                  Any thoughts?

                                  J 1 Reply Last reply 28 Nov 2016, 11:58
                                  0
                                  • A Andrey Shmelew
                                    28 Nov 2016, 10:18

                                    @jsulm
                                    there is a Qt Quick 2D Renderer, that works instead OpnGL ES 2 on boards without GPU like BBB, seems to be good for me.
                                    As described, i should use :
                                    export QMLSCENE_DEVICE=softwarecontext
                                    but i have no idea what does this string mean.
                                    Any thoughts?

                                    J Online
                                    J Online
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 28 Nov 2016, 11:58 last edited by
                                    #18

                                    @Andrey-Shmelew It defines environment variable QMLSCENE_DEVICE and assigns it "softwarecontext" as value. I guess QtQuick checks that variable and activates software rendering if it is set to "softwarecontext".
                                    So, you first set this variable and then (in the same console) you start your application.

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

                                    A 1 Reply Last reply 30 Nov 2016, 06:36
                                    1
                                    • J jsulm
                                      28 Nov 2016, 11:58

                                      @Andrey-Shmelew It defines environment variable QMLSCENE_DEVICE and assigns it "softwarecontext" as value. I guess QtQuick checks that variable and activates software rendering if it is set to "softwarecontext".
                                      So, you first set this variable and then (in the same console) you start your application.

                                      A Offline
                                      A Offline
                                      Andrey Shmelew
                                      wrote on 30 Nov 2016, 06:36 last edited by
                                      #19

                                      mark as solved, please

                                      J 1 Reply Last reply 30 Nov 2016, 08:20
                                      0
                                      • A Andrey Shmelew
                                        30 Nov 2016, 06:36

                                        mark as solved, please

                                        J Online
                                        J Online
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on 30 Nov 2016, 08:20 last edited by
                                        #20

                                        @Andrey-Shmelew Sorry, it's your thread you should mark it as solved.

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

                                        A 1 Reply Last reply 30 Nov 2016, 10:59
                                        0
                                        • J jsulm
                                          30 Nov 2016, 08:20

                                          @Andrey-Shmelew Sorry, it's your thread you should mark it as solved.

                                          A Offline
                                          A Offline
                                          Andrey Shmelew
                                          wrote on 30 Nov 2016, 10:59 last edited by Andrey Shmelew
                                          #21

                                          An another issue,
                                          i want to use Charts in my application.
                                          When i compile app for Windows,its okay, but when i compile it for Linux, it can not find charts module (Unknown module(s) in QT: charts), even if there is 'QT += charts' inside myproject.pro file. As i understand, i need to rebuild qt creator for linux with charts module, right?

                                          1 Reply Last reply
                                          0

                                          11/21

                                          25 Nov 2016, 06:45

                                          • Login

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