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.
  • MilavM Milav

    Hello,
    I have installed the latest version of QT 5.7 on Ubuntu 12.04 (64-bit) on PC.

    I have also installed the qt version (for qmake) 4.8.1 on Ubuntu PC.

    I have installed Cross-complier gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux on Ubuntu PC.

    But when i add upper specification on QT kits , qt gives following error.

    "The complier arm-linux-generic-elf-32bit can not produce a code for Qt Version 4.8.1(system) (x86-linux-generic-elf-64-bit)."

    can you help me to resove this issues?

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

    @Milav You need Qt built using your cross compiler. You cannot use Qt x86 build on ARM. Build Qt with your cross compiler and use it then.

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

    1 Reply Last reply
    2
    • MilavM Offline
      MilavM Offline
      Milav
      wrote on last edited by
      #3

      @jsulm how can i built Qt 5.7 using cross complier?

      can you please suggest me a steps, how to run application on BBB using qt5.7?

      i add path of complier,path of debugger, path of Qt Vesrion on build and run tab of options tool.

      jsulmJ 1 Reply Last reply
      0
      • MilavM Milav

        @jsulm how can i built Qt 5.7 using cross complier?

        can you please suggest me a steps, how to run application on BBB using qt5.7?

        i add path of complier,path of debugger, path of Qt Vesrion on build and run tab of options tool.

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

        @Milav I cannot suggest you a step-by step instructions as I never cross compiled Qt for BBB.
        But you can take a look at this: https://wiki.qt.io/RaspberryPi_Beginners_Guide
        It is for RaspberryPi but it will be similar for BBB.
        You could also check whether there is already a Qt build for BBB available somewhere.

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

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

          @jsulm , until now I am able to configure the QT 5.7.0.
          I cross compile the QT for BeagleBone Black. but when i run the simple application qt give following error..

          "stdin: is not a tty
          /home/debian/Helloworldapp: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
          Application finished with exit code 127."

          how can i solve this error?

          Am i do wrong configuration?

          Is there a any QT package download on Beagle Bone Black?

          please suggest me?

          jsulmJ 1 Reply Last reply
          0
          • MilavM Milav

            @jsulm , until now I am able to configure the QT 5.7.0.
            I cross compile the QT for BeagleBone Black. but when i run the simple application qt give following error..

            "stdin: is not a tty
            /home/debian/Helloworldapp: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
            Application finished with exit code 127."

            how can i solve this error?

            Am i do wrong configuration?

            Is there a any QT package download on Beagle Bone Black?

            please suggest me?

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

            @Milav Did you copied the Qt libs (like libQt5Widgets.so.5) together with your application to the target device?
            See here how to deploy a Qt application on Linux: http://doc.qt.io/qt-5/linux-deployment.html

            I don't know whether there is a Qt build for BBB, you should search a bit on the Internet.

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

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

              @jsulm I can not get you and this link: http://doc.qt.io/qt-5/linux-deployment.html
              please explore me more....
              can add some Lib path in my qt project file. or i add something more on configure option.
              is this issues related to LD_LIBRARY_PATH ?
              please suggest me...

              jsulmJ 1 Reply Last reply
              0
              • MilavM Milav

                @jsulm I can not get you and this link: http://doc.qt.io/qt-5/linux-deployment.html
                please explore me more....
                can add some Lib path in my qt project file. or i add something more on configure option.
                is this issues related to LD_LIBRARY_PATH ?
                please suggest me...

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

                @Milav Please read the "Creating the Application Package" part of the link I sent you.
                There is a script you can use to start your application:

                #!/bin/sh
                appname=`basename $0 | sed s,\.sh$,,`
                
                dirname=`dirname $0`
                tmp="${dirname#?}"
                
                if [ "${dirname%$tmp}" != "/" ]; then
                dirname=$PWD/$dirname
                fi
                LD_LIBRARY_PATH=$dirname
                export LD_LIBRARY_PATH
                $dirname/$appname "$@"
                

                Put all needed Qt libraries in the same directory as your executable. In addition you will need some plugins, so create a subdirectory "plugins" and put there needed plugins.

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

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

                  @jsulm hello,

                  The above error (error while loading shared libraries: libQt5Widgets.so.5) is solved. thanks a lot..
                  I just copy whole install directory (/usr/local/QT5.7.0) to Beagle Bone Black (/usr/local) path.

                  but when I again build the qt project, it will give following error.

                  stdin: is not a tty
                  This application failed to start because it could not find or load the Qt platform plugin "eglfs"
                  in "".

                  Available platform plugins are: linuxfb, minimal, offscreen.

                  Reinstalling the application may fix this problem.
                  bash: line 1: 2072 Aborted DISPLAY=':0.0' QWS_MOUSE_PROTO='LinuxInput:/dev/input/event1' /home/debian/Helloworldapp -qws
                  Application finished with exit code 134.

                  can you help me to resove this issues?

                  jsulmJ 1 Reply Last reply
                  0
                  • MilavM Milav

                    @jsulm hello,

                    The above error (error while loading shared libraries: libQt5Widgets.so.5) is solved. thanks a lot..
                    I just copy whole install directory (/usr/local/QT5.7.0) to Beagle Bone Black (/usr/local) path.

                    but when I again build the qt project, it will give following error.

                    stdin: is not a tty
                    This application failed to start because it could not find or load the Qt platform plugin "eglfs"
                    in "".

                    Available platform plugins are: linuxfb, minimal, offscreen.

                    Reinstalling the application may fix this problem.
                    bash: line 1: 2072 Aborted DISPLAY=':0.0' QWS_MOUSE_PROTO='LinuxInput:/dev/input/event1' /home/debian/Helloworldapp -qws
                    Application finished with exit code 134.

                    can you help me to resove this issues?

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

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

                    eglfs

                    Does your Qt build have the eglfs plug-in? Plug-ins are in plugin subdirectory.

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

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

                      @jsulm no, there is not eglfs.so library file in installation directory(/usr/local/Qt5.7.0/plugnis/platforms/) of qt.

                      when i run application manually with ./App - platform linuxfb it is run but it gives following error

                      QFontDatabase: Cannot find font directory /usr/local/Qt-5.7.0/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/Qt-5.7.0/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/Qt-5.7.0/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/Qt-5.7.0/lib/fonts.
                      Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.

                      which is needed platform for Beagle bone black debian Os? as per your knowledge?

                      what is the next step? to resolve this error?

                      jsulmJ 1 Reply Last reply
                      0
                      • MilavM Milav

                        @jsulm no, there is not eglfs.so library file in installation directory(/usr/local/Qt5.7.0/plugnis/platforms/) of qt.

                        when i run application manually with ./App - platform linuxfb it is run but it gives following error

                        QFontDatabase: Cannot find font directory /usr/local/Qt-5.7.0/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/Qt-5.7.0/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/Qt-5.7.0/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/Qt-5.7.0/lib/fonts.
                        Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.

                        which is needed platform for Beagle bone black debian Os? as per your knowledge?

                        what is the next step? to resolve this error?

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

                        @Milav It looks like you need to provide the fonts as well, they should be located in /usr/local/Qt-5.7.0/lib/fonts according the warning. So copy them from your host Qt to /usr/local/Qt-5.7.0/lib/fonts on your target device.

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

                        1 Reply Last reply
                        0
                        • MilavM Offline
                          MilavM Offline
                          Milav
                          wrote on 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?

                          jsulmJ 1 Reply Last reply
                          0
                          • MilavM Milav

                            @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?

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 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
                            • MilavM Offline
                              MilavM Offline
                              Milav
                              wrote on last edited by
                              #15

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

                              jsulmJ 1 Reply Last reply
                              0
                              • MilavM Milav

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

                                jsulmJ Offline
                                jsulmJ Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on 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
                                • MilavM Offline
                                  MilavM Offline
                                  Milav
                                  wrote on 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.

                                  jsulmJ 1 Reply Last reply
                                  0
                                  • MilavM Milav

                                    @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.

                                    jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 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
                                    • MilavM Offline
                                      MilavM Offline
                                      Milav
                                      wrote on 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
                                      • MilavM Offline
                                        MilavM Offline
                                        Milav
                                        wrote on 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?

                                        jsulmJ 1 Reply Last reply
                                        0
                                        • MilavM Milav

                                          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?

                                          jsulmJ Offline
                                          jsulmJ Offline
                                          jsulm
                                          Lifetime Qt Champion
                                          wrote on 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

                                          • Login

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