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. Not Able to run Qt Application in BeagleBone Black with Qt 5.7
Forum Updated to NodeBB v4.3 + New Features

Not Able to run Qt Application in BeagleBone Black with Qt 5.7

Scheduled Pinned Locked Moved Solved Installation and Deployment
41 Posts 4 Posters 22.5k 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.
  • MilavM Offline
    MilavM Offline
    Milav
    wrote on last edited by
    #22

    Hello ,

    I added -sysroot in configuration command so that all header and libraries are to be added.

    I used external SD card as a sysroot path. In SD card i use same image version as in target device image.

    but this give me a following error...

    Project ERROR: No module claims plugin type 'scenegraph'
    make[4]: *** [sub-softwarecontext-make_first] Error 3
    make[4]: Leaving directory /root/qt_build_23nov/qtdeclarative-render2d/src/plugins/scenegraph' make[3]: *** [sub-scenegraph-make_first] Error 2 make[3]: Leaving directory /root/qt_build_23nov/qtdeclarative-render2d/src/plugins'
    make[2]: *** [sub-plugins-make_first] Error 2
    make[2]: Leaving directory /root/qt_build_23nov/qtdeclarative-render2d/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory /root/qt_build_23nov/qtdeclarative-render2d'
    make: *** [module-qtdeclarative-render2d-make_first] Error 2

    so where is the problem?

    1 Reply Last reply
    0
    • MilavM Offline
      MilavM Offline
      Milav
      wrote on last edited by
      #23

      Hello @jsulm ,

      I resolved the above error by adding the -opengl option in configure option.

      Now I build the Qt 5.7.0 for BeagleBone Black.

      but when I run the application for BBB, qt gives following error..

      stdin: is not a tty
      No protocol specified
      QXcbConnection: Could not connect to display :0.0
      bash: line 1: 1853 Aborted DISPLAY=':0.0' QWS_MOUSE_PROTO='LinuxInput:/dev/input/event1' /home/debian/QTapp -qws
      Application finished with exit code 134.

      so where is the problem?

      jsulmJ 1 Reply Last reply
      0
      • MilavM Milav

        Hello @jsulm ,

        I resolved the above error by adding the -opengl option in configure option.

        Now I build the Qt 5.7.0 for BeagleBone Black.

        but when I run the application for BBB, qt gives following error..

        stdin: is not a tty
        No protocol specified
        QXcbConnection: Could not connect to display :0.0
        bash: line 1: 1853 Aborted DISPLAY=':0.0' QWS_MOUSE_PROTO='LinuxInput:/dev/input/event1' /home/debian/QTapp -qws
        Application finished with exit code 134.

        so where is the problem?

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

        @Milav Are you running a X server on your device?

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

        MilavM 1 Reply Last reply
        0
        • A Offline
          A Offline
          Andrey Shmelew
          wrote on last edited by
          #25

          Hello to all!
          I have exactly the same problem as above.
          Host machine: VirtualBox Ubuntu 14.04 32 bit with Qt 5.5.1 installed on it
          Device: BeagleBone Black with debian 8.4 on it.

          So when i compile my Application for Desktop QT 5.5.1, it goes good,
          but when i tried to upload my application on the Board, qt says:
          stdin: is not a tty
          bash: /home/root/coding: cannot execute binary file: Exec format error
          Application ended with error code 126 (Приложение завершилось с кодом 126).
          i used for this gcc (x86 32bit) compiler. i know that it's wrong compiler.

          alt text

          When i choose right (in my mind) compiler arm-linux-gnueabi-gcc, an error "ompiler cannot produce code"

          alt text

          Please see screenshots (sorry for cyrillic)

          I am tying to crosscompile my app for beaglebone black for a weeks, please help me

          MilavM jsulmJ 2 Replies Last reply
          0
          • A Andrey Shmelew

            Hello to all!
            I have exactly the same problem as above.
            Host machine: VirtualBox Ubuntu 14.04 32 bit with Qt 5.5.1 installed on it
            Device: BeagleBone Black with debian 8.4 on it.

            So when i compile my Application for Desktop QT 5.5.1, it goes good,
            but when i tried to upload my application on the Board, qt says:
            stdin: is not a tty
            bash: /home/root/coding: cannot execute binary file: Exec format error
            Application ended with error code 126 (Приложение завершилось с кодом 126).
            i used for this gcc (x86 32bit) compiler. i know that it's wrong compiler.

            alt text

            When i choose right (in my mind) compiler arm-linux-gnueabi-gcc, an error "ompiler cannot produce code"

            alt text

            Please see screenshots (sorry for cyrillic)

            I am tying to crosscompile my app for beaglebone black for a weeks, please help me

            MilavM Offline
            MilavM Offline
            Milav
            wrote on last edited by
            #26

            @Andrey-Shmelew

            you may be use wrong complier for the beagle bone black...

            The host and Target specification are different from your specification.

            I have 64 BIT bit Ubuntu on VMware and qt 5.7.0 is installed on that pc.
            and i have Beagle Bone Black with debian 7.11 on it.

            But i think cross-compiler toolchain is same for both of us...
            so you can try with gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz version.

            and please check that you installed the sources at the time of installation.

            Let me know if any progress occur..

            A 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Milav Are you running a X server on your device?

              MilavM Offline
              MilavM Offline
              Milav
              wrote on last edited by
              #27

              @jsulm

              i dont know...

              the LCD cape is connected on the BeagleBone black.

              is this run on X-server?

              jsulmJ 1 Reply Last reply
              0
              • A Andrey Shmelew

                Hello to all!
                I have exactly the same problem as above.
                Host machine: VirtualBox Ubuntu 14.04 32 bit with Qt 5.5.1 installed on it
                Device: BeagleBone Black with debian 8.4 on it.

                So when i compile my Application for Desktop QT 5.5.1, it goes good,
                but when i tried to upload my application on the Board, qt says:
                stdin: is not a tty
                bash: /home/root/coding: cannot execute binary file: Exec format error
                Application ended with error code 126 (Приложение завершилось с кодом 126).
                i used for this gcc (x86 32bit) compiler. i know that it's wrong compiler.

                alt text

                When i choose right (in my mind) compiler arm-linux-gnueabi-gcc, an error "ompiler cannot produce code"

                alt text

                Please see screenshots (sorry for cyrillic)

                I am tying to crosscompile my app for beaglebone black for a weeks, please help me

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

                @Andrey-Shmelew said in Not Able to run Qt Application in BeagleBone Black with Qt 5.7:

                bash: /home/root/coding: cannot execute binary file: Exec format error

                Sorry, your problem is completely different"!
                Please open a new thread.

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

                1 Reply Last reply
                0
                • MilavM Milav

                  @jsulm

                  i dont know...

                  the LCD cape is connected on the BeagleBone black.

                  is this run on X-server?

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

                  @Milav What system is running on your device? I never used BeagleBone Black, so I don't know what it uses.

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

                  MilavM 1 Reply Last reply
                  0
                  • MilavM Milav

                    @Andrey-Shmelew

                    you may be use wrong complier for the beagle bone black...

                    The host and Target specification are different from your specification.

                    I have 64 BIT bit Ubuntu on VMware and qt 5.7.0 is installed on that pc.
                    and i have Beagle Bone Black with debian 7.11 on it.

                    But i think cross-compiler toolchain is same for both of us...
                    so you can try with gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz version.

                    and please check that you installed the sources at the time of installation.

                    Let me know if any progress occur..

                    A Offline
                    A Offline
                    Andrey Shmelew
                    wrote on last edited by Andrey Shmelew
                    #30

                    @Milav said in Not Able to run Qt Application in BeagleBone Black with Qt 5.7:

                    Thanks for answer!
                    i have no idea how to install cross compiler gcc-linaro-arm-linux-gnueabihf-4.8 and how to use it.
                    I suppose it should be installed on my Ubuntu on virtual box?
                    it should be installed by "sudo apt-get install gcc-linaro-arm-linux-gnueabihf " or something like this?

                    to jslim: on BBB i have Debian 8 Image 2016-05-13

                    I am very appreciate for help because have a very tight time period for complete deploy my QT project on BBB.

                    MilavM 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @Milav What system is running on your device? I never used BeagleBone Black, so I don't know what it uses.

                      MilavM Offline
                      MilavM Offline
                      Milav
                      wrote on last edited by
                      #31

                      @jsulm

                      on target device it installed Debian 7.11 Version.

                      jsulmJ 1 Reply Last reply
                      0
                      • MilavM Milav

                        @jsulm

                        on target device it installed Debian 7.11 Version.

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

                        @Milav How is it configured? Do you have graphics there? Did you test any GUI applications?

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

                        MilavM 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Milav How is it configured? Do you have graphics there? Did you test any GUI applications?

                          MilavM Offline
                          MilavM Offline
                          Milav
                          wrote on last edited by
                          #33

                          @jsulm

                          yes , tried gui application on BBB. it running fine....

                          this Version is by default arrive when i purchase BBB.

                          jsulmJ 1 Reply Last reply
                          0
                          • A Andrey Shmelew

                            @Milav said in Not Able to run Qt Application in BeagleBone Black with Qt 5.7:

                            Thanks for answer!
                            i have no idea how to install cross compiler gcc-linaro-arm-linux-gnueabihf-4.8 and how to use it.
                            I suppose it should be installed on my Ubuntu on virtual box?
                            it should be installed by "sudo apt-get install gcc-linaro-arm-linux-gnueabihf " or something like this?

                            to jslim: on BBB i have Debian 8 Image 2016-05-13

                            I am very appreciate for help because have a very tight time period for complete deploy my QT project on BBB.

                            MilavM Offline
                            MilavM Offline
                            Milav
                            wrote on last edited by
                            #34

                            @Andrey-Shmelew

                            you can download this version tool chain from linaro site.
                            just download that tool chain and extract it in known path.(like...in /opt/...) folder.

                            this is used when you set the complier path at time of qt creator configure..

                            A 1 Reply Last reply
                            1
                            • MilavM Milav

                              @jsulm

                              yes , tried gui application on BBB. it running fine....

                              this Version is by default arrive when i purchase BBB.

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

                              @Milav What does

                              ps ax | grep Xorg
                              

                              print out on your device?

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

                              MilavM 1 Reply Last reply
                              0
                              • jsulmJ jsulm

                                @Milav What does

                                ps ax | grep Xorg
                                

                                print out on your device?

                                MilavM Offline
                                MilavM Offline
                                Milav
                                wrote on last edited by
                                #36

                                @jsulm said in Not Able to run Qt Application in BeagleBone Black with Qt 5.7:

                                ps ax | grep Xorg

                                the output is....
                                17946 pts/1 S+ 0:00 grep Xorg

                                jsulmJ 1 Reply Last reply
                                0
                                • MilavM Milav

                                  @jsulm said in Not Able to run Qt Application in BeagleBone Black with Qt 5.7:

                                  ps ax | grep Xorg

                                  the output is....
                                  17946 pts/1 S+ 0:00 grep Xorg

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

                                  @Milav Looks like there is no X server. You should check the documentation to find out what is used: wayland, frame buffer, ...?

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

                                  MilavM 1 Reply Last reply
                                  0
                                  • MilavM Milav

                                    @Andrey-Shmelew

                                    you can download this version tool chain from linaro site.
                                    just download that tool chain and extract it in known path.(like...in /opt/...) folder.

                                    this is used when you set the complier path at time of qt creator configure..

                                    A Offline
                                    A Offline
                                    Andrey Shmelew
                                    wrote on last edited by
                                    #38

                                    @Milav
                                    sorry but i can not find gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz, could you please give me a download link.

                                    MilavM 1 Reply Last reply
                                    0
                                    • A Andrey Shmelew

                                      @Milav
                                      sorry but i can not find gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz, could you please give me a download link.

                                      MilavM Offline
                                      MilavM Offline
                                      Milav
                                      wrote on last edited by
                                      #39

                                      @Andrey-Shmelew

                                      you can download the tool chain from this...
                                      https://releases.linaro.org/components/toolchain/binaries/

                                      1 Reply Last reply
                                      0
                                      • jsulmJ jsulm

                                        @Milav Looks like there is no X server. You should check the documentation to find out what is used: wayland, frame buffer, ...?

                                        MilavM Offline
                                        MilavM Offline
                                        Milav
                                        wrote on last edited by
                                        #40

                                        @jsulm

                                        Thanks man...for support

                                        The application is run with the -platform linuxfb option.

                                        Thank You Very much.

                                        1 Reply Last reply
                                        0
                                        • sabraS Offline
                                          sabraS Offline
                                          sabra
                                          wrote on last edited by
                                          #41

                                          to solve below error :
                                          QFontDatabase: Cannot find font directory /usr/local/qt5pi/lib/fonts.
                                          Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.
                                          QFontDatabase: Cannot find font directory /usr/local/qt5pi/lib/fonts.
                                          Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.
                                          QFontDatabase: Cannot find font directory /usr/local/qt5pi/lib/fonts.
                                          Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.
                                          QFontDatabase: Cannot find font directory /usr/local/qt5pi/lib/fonts.
                                          Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.

                                          just find fonts directory on your target and copy them without subdirectory in this /usr/local/qt5pi/lib/fonts for example i copied dejavu fonts file in this directory

                                          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