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

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.
  • M Offline
    M Offline
    Milav
    wrote on 14 Nov 2016, 06:10 last edited by
    #13

    @jsulm ..Hello,

    I found inbuilt Fonts Directory of Qt5.7.0, but the result of that find is null.
    than I download the fontconfig library (fontconfig-2.12.1)from external sources.
    Than compile that library, and than it shows the fonts lib. in /usr/share/fonts .
    and than copy this folder to target device in /usr/local/Qt5.7.0/lib/ path..
    after doing this the above error was removed..but still i can not see the font in application.
    what is the problem?

    J 1 Reply Last reply 14 Nov 2016, 06:13
    0
    • M Milav
      14 Nov 2016, 06:10

      @jsulm ..Hello,

      I found inbuilt Fonts Directory of Qt5.7.0, but the result of that find is null.
      than I download the fontconfig library (fontconfig-2.12.1)from external sources.
      Than compile that library, and than it shows the fonts lib. in /usr/share/fonts .
      and than copy this folder to target device in /usr/local/Qt5.7.0/lib/ path..
      after doing this the above error was removed..but still i can not see the font in application.
      what is the problem?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 14 Nov 2016, 06:13 last edited by
      #14

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

      i can not see the font in application

      What do you mean? You cannot see any text in your application? Or you cannot select one of the fonts?

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Milav
        wrote on 14 Nov 2016, 06:16 last edited by
        #15

        @jsulm
        i cannot see any text in my application.....

        J 1 Reply Last reply 14 Nov 2016, 06:18
        0
        • M Milav
          14 Nov 2016, 06:16

          @jsulm
          i cannot see any text in my application.....

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 14 Nov 2016, 06:18 last edited by
          #16

          @Milav Which font does your application use? Is this font in /usr/local/Qt5.7.0/lib ?

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

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Milav
            wrote on 14 Nov 2016, 06:28 last edited by
            #17

            @jsulm
            I use "DejaVu Sans" font use in application.

            and these fonts is available in this path:-
            /usr/local/Qt-5.7.0/lib/fonts/truetype/ttf-dejavu

            in that directroy ,
            DejaVuSans-Bold.ttf DejaVuSansMono-Bold.ttf DejaVuSansMono.ttf DejaVuSans.ttf DejaVuSerif-Bold.ttf DejaVuSerif.ttf

            files are stored.

            J 1 Reply Last reply 14 Nov 2016, 06:31
            0
            • M Milav
              14 Nov 2016, 06:28

              @jsulm
              I use "DejaVu Sans" font use in application.

              and these fonts is available in this path:-
              /usr/local/Qt-5.7.0/lib/fonts/truetype/ttf-dejavu

              in that directroy ,
              DejaVuSans-Bold.ttf DejaVuSansMono-Bold.ttf DejaVuSansMono.ttf DejaVuSans.ttf DejaVuSerif-Bold.ttf DejaVuSerif.ttf

              files are stored.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 14 Nov 2016, 06:31 last edited by
              #18

              @Milav Try to print the content of the list returned by http://doc.qt.io/qt-5/qfontdatabase.html#applicationFontFamilies to the standard output and see what you get.

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

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Milav
                wrote on 16 Nov 2016, 10:38 last edited by
                #19

                @jsulm
                i will try http://doc.qt.io/qt-5/qfontdatabase.html#applicationFontFamilies , but still i can not see the text in qt application on Beaglebone black gui window...

                still i miss some package of fonts in Beaglebone black.

                can anyone suggest me for this package.?

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Milav
                  wrote on 16 Nov 2016, 11:59 last edited by
                  #20

                  Hello @jsulm

                  I just found that when i write the following command in build directory that enable the fontconfig , and XCB package....

                  #./configure -prefix /usr/local/qt_install

                  but when i use following command in build directory that disable the fontconfig and xcb package.

                  #./configure -prefix /usr/local/qt_install -xplatform linux-arm-gnueabihf -device linux-beagleboard-g++ -device-option CROSS_COMPILE=/opt/gcc-arm-linux/bin/arm-linux-gnueabihf-

                  so where is the problem?

                  J 1 Reply Last reply 16 Nov 2016, 12:17
                  0
                  • M Milav
                    16 Nov 2016, 11:59

                    Hello @jsulm

                    I just found that when i write the following command in build directory that enable the fontconfig , and XCB package....

                    #./configure -prefix /usr/local/qt_install

                    but when i use following command in build directory that disable the fontconfig and xcb package.

                    #./configure -prefix /usr/local/qt_install -xplatform linux-arm-gnueabihf -device linux-beagleboard-g++ -device-option CROSS_COMPILE=/opt/gcc-arm-linux/bin/arm-linux-gnueabihf-

                    so where is the problem?

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 16 Nov 2016, 12:17 last edited by
                    #21

                    @Milav Most probably your sysroot does not contain header files and libraries for fontconfig and xcb. You can see what is missing by adding -v parameter to configure.

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

                    1 Reply Last reply
                    1
                    • M Offline
                      M Offline
                      Milav
                      wrote on 23 Nov 2016, 14:04 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
                      • M Offline
                        M Offline
                        Milav
                        wrote on 24 Nov 2016, 04:41 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?

                        J 1 Reply Last reply 24 Nov 2016, 05:12
                        0
                        • M Milav
                          24 Nov 2016, 04:41

                          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?

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 24 Nov 2016, 05:12 last edited by
                          #24

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

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

                          M 1 Reply Last reply 24 Nov 2016, 07:47
                          0
                          • A Offline
                            A Offline
                            Andrey Shmelew
                            wrote on 24 Nov 2016, 06:09 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

                            M J 2 Replies Last reply 24 Nov 2016, 07:37
                            0
                            • A Andrey Shmelew
                              24 Nov 2016, 06:09

                              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

                              M Offline
                              M Offline
                              Milav
                              wrote on 24 Nov 2016, 07:37 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 24 Nov 2016, 08:03
                              0
                              • J jsulm
                                24 Nov 2016, 05:12

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

                                M Offline
                                M Offline
                                Milav
                                wrote on 24 Nov 2016, 07:47 last edited by
                                #27

                                @jsulm

                                i dont know...

                                the LCD cape is connected on the BeagleBone black.

                                is this run on X-server?

                                J 1 Reply Last reply 24 Nov 2016, 07:54
                                0
                                • A Andrey Shmelew
                                  24 Nov 2016, 06:09

                                  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

                                  J Offline
                                  J Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on 24 Nov 2016, 07:52 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
                                  • M Milav
                                    24 Nov 2016, 07:47

                                    @jsulm

                                    i dont know...

                                    the LCD cape is connected on the BeagleBone black.

                                    is this run on X-server?

                                    J Offline
                                    J Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 24 Nov 2016, 07:54 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

                                    M 1 Reply Last reply 24 Nov 2016, 09:46
                                    0
                                    • M Milav
                                      24 Nov 2016, 07:37

                                      @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 24 Nov 2016, 08:03 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.

                                      M 1 Reply Last reply 24 Nov 2016, 10:14
                                      0
                                      • J jsulm
                                        24 Nov 2016, 07:54

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

                                        M Offline
                                        M Offline
                                        Milav
                                        wrote on 24 Nov 2016, 09:46 last edited by
                                        #31

                                        @jsulm

                                        on target device it installed Debian 7.11 Version.

                                        J 1 Reply Last reply 24 Nov 2016, 09:49
                                        0
                                        • M Milav
                                          24 Nov 2016, 09:46

                                          @jsulm

                                          on target device it installed Debian 7.11 Version.

                                          J Offline
                                          J Offline
                                          jsulm
                                          Lifetime Qt Champion
                                          wrote on 24 Nov 2016, 09:49 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

                                          M 1 Reply Last reply 24 Nov 2016, 10:04
                                          0

                                          • Login

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