Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. cross compiled qt for BBB
Forum Updated to NodeBB v4.3 + New Features

cross compiled qt for BBB

Scheduled Pinned Locked Moved Unsolved General and Desktop
47 Posts 4 Posters 9.6k Views 2 Watching
  • 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.
  • A Asha

    @SGaist

    the running OS is debian.

    i cross compiled qt ,i am running the executable in my laptop through board,i installed vnc software in my laptop ,in this vnc server i am able to see the output..but while connecting the display i am getting that error..

    can i install vnc software in my beaglebone board,and after that executing that exe file ,can i get the output in display?

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

    @Asha said in cross compiled qt for BBB:

    can i install vnc software in my beaglebone board

    There is no need to do this if you want your app running on directly connected display! VNC is for REMOTE access.

    "how to run that or how to enable that server on my board?" - simply install a desktop environment like XFCE/Gnome/... or at least a window manager, it will install X11 as well. But I'm wondering how you plan to use your device if you do not even know what is actually running there and what you actually want to use on the device?

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

    A 1 Reply Last reply
    1
    • jsulmJ jsulm

      @Asha said in cross compiled qt for BBB:

      can i install vnc software in my beaglebone board

      There is no need to do this if you want your app running on directly connected display! VNC is for REMOTE access.

      "how to run that or how to enable that server on my board?" - simply install a desktop environment like XFCE/Gnome/... or at least a window manager, it will install X11 as well. But I'm wondering how you plan to use your device if you do not even know what is actually running there and what you actually want to use on the device?

      A Offline
      A Offline
      Asha
      wrote on last edited by
      #12

      @jsulm said in cross compiled qt for BBB:

      desktop environment like XFCE/Gnome/

      I have debian desktop on my display(beagleboneboard),

      when I boot the sdcard,i am able to see debian os on my display screen(even two to three folders also i am able to see)but while executing this qt exe file only i am getting that error..

      Pablo J. RoginaP jsulmJ 2 Replies Last reply
      0
      • A Asha

        @jsulm said in cross compiled qt for BBB:

        desktop environment like XFCE/Gnome/

        I have debian desktop on my display(beagleboneboard),

        when I boot the sdcard,i am able to see debian os on my display screen(even two to three folders also i am able to see)but while executing this qt exe file only i am getting that error..

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #13

        @Asha said in cross compiled qt for BBB:

        i am able to see debian os on my display screen(even two to three folders also i am able to see)

        Please post an screenshot or picture of that display, and state if such display is attached to the board OR if the display of your laptop you connect to your device.

        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

        1 Reply Last reply
        0
        • A Asha

          @jsulm said in cross compiled qt for BBB:

          desktop environment like XFCE/Gnome/

          I have debian desktop on my display(beagleboneboard),

          when I boot the sdcard,i am able to see debian os on my display screen(even two to three folders also i am able to see)but while executing this qt exe file only i am getting that error..

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

          @Asha said in cross compiled qt for BBB:

          debian desktop

          There is no such thing. Debian is a Linux distribution and can be used with many different desktops and window manager.
          What does

          ps -e | grep X 
          
          

          output?

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

          A 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Asha said in cross compiled qt for BBB:

            debian desktop

            There is no such thing. Debian is a Linux distribution and can be used with many different desktops and window manager.
            What does

            ps -e | grep X 
            
            

            output?

            A Offline
            A Offline
            Asha
            wrote on last edited by
            #15

            @jsulm

            I need to run this on my host machine right...
            I am running this command in my beagle user..
            I got the output

            945 tty1 00:00:00 Xwayland
            1064 tty2 00:00:08 Xorg

            while running that command in beagleboneboard(via ssh) not getting anything..

            jsulmJ 1 Reply Last reply
            0
            • A Asha

              @jsulm

              I need to run this on my host machine right...
              I am running this command in my beagle user..
              I got the output

              945 tty1 00:00:00 Xwayland
              1064 tty2 00:00:08 Xorg

              while running that command in beagleboneboard(via ssh) not getting anything..

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

              @Asha said in cross compiled qt for BBB:

              while running that command in beagleboneboard(via ssh) not getting anything..

              when there is no XServer running. Just to be sure: you're running this command when the graphical desktop is shown?
              You need to find out what is used on your device. Could be directfb for example.

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

              A 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Asha said in cross compiled qt for BBB:

                while running that command in beagleboneboard(via ssh) not getting anything..

                when there is no XServer running. Just to be sure: you're running this command when the graphical desktop is shown?
                You need to find out what is used on your device. Could be directfb for example.

                A Offline
                A Offline
                Asha
                wrote on last edited by
                #17

                @jsulm said in cross compiled qt for BBB:

                you're running this command when the graphical desktop is shown?

                no,
                I run that command without the connecting display..
                ps -e | grep X

                this command displays all process status which are running right..

                one more thing I want to clear,

                "I put sdcard in my board,and executing the qt application without connecting the display, then getting the same error Qxcb"

                but

                "without sdcard, I am executing the qt application ,then its asking

                Qvnc server created on port 5900"

                when I execute the VNC software in my host machine, I am able to see the output..

                jsulmJ 1 Reply Last reply
                0
                • A Asha

                  @jsulm said in cross compiled qt for BBB:

                  you're running this command when the graphical desktop is shown?

                  no,
                  I run that command without the connecting display..
                  ps -e | grep X

                  this command displays all process status which are running right..

                  one more thing I want to clear,

                  "I put sdcard in my board,and executing the qt application without connecting the display, then getting the same error Qxcb"

                  but

                  "without sdcard, I am executing the qt application ,then its asking

                  Qvnc server created on port 5900"

                  when I execute the VNC software in my host machine, I am able to see the output..

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

                  @Asha said in cross compiled qt for BBB:

                  no,

                  Then make sure your display is connected and you can see graphical desktop and then run the command...

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

                  A 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @Asha said in cross compiled qt for BBB:

                    no,

                    Then make sure your display is connected and you can see graphical desktop and then run the command...

                    A Offline
                    A Offline
                    Asha
                    wrote on last edited by
                    #19

                    @jsulm

                    I connected my board with display,

                    And,I am able to see the graphical desktop on my display,

                    while giving this command

                    ps -e | grep X

                    I got the result:

                    1199 tty7 00:00:02 Xorg

                    so what it means?

                    jsulmJ 1 Reply Last reply
                    0
                    • A Asha

                      @jsulm

                      I connected my board with display,

                      And,I am able to see the graphical desktop on my display,

                      while giving this command

                      ps -e | grep X

                      I got the result:

                      1199 tty7 00:00:02 Xorg

                      so what it means?

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

                      @Asha said in cross compiled qt for BBB:

                      so what it means?

                      So, now X server is running. But your app doesn't start, right?
                      You get "Qxcb connection:could not connect to the display"?
                      Do you start your app as root or normal user?

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

                      Pablo J. RoginaP A 2 Replies Last reply
                      0
                      • jsulmJ jsulm

                        @Asha said in cross compiled qt for BBB:

                        so what it means?

                        So, now X server is running. But your app doesn't start, right?
                        You get "Qxcb connection:could not connect to the display"?
                        Do you start your app as root or normal user?

                        Pablo J. RoginaP Offline
                        Pablo J. RoginaP Offline
                        Pablo J. Rogina
                        wrote on last edited by
                        #21

                        @Asha in addition to @jsulm question,

                        Do you start your app as root or normal user?

                        How are you starting your application:
                        Do you have a physical keyboard attached to the board?
                        Or do you connect to the board from PC with a SSH session?

                        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

                        1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Asha said in cross compiled qt for BBB:

                          so what it means?

                          So, now X server is running. But your app doesn't start, right?
                          You get "Qxcb connection:could not connect to the display"?
                          Do you start your app as root or normal user?

                          A Offline
                          A Offline
                          Asha
                          wrote on last edited by
                          #22

                          @jsulm said in cross compiled qt for BBB:

                          You get "Qxcb connection:could not connect to the display"?

                          yes

                          Do you start your app as a root

                          this means ,first i need to do

                          ssh debian@192.168.7.2
                          after this sudo su

                          root@beaglebone:

                          now I need to run the application right?

                          but what about that normal user?
                          I need to run it on my Desktop machine?
                          without ssh?

                          jsulmJ Pablo J. RoginaP 2 Replies Last reply
                          0
                          • A Asha

                            @jsulm said in cross compiled qt for BBB:

                            You get "Qxcb connection:could not connect to the display"?

                            yes

                            Do you start your app as a root

                            this means ,first i need to do

                            ssh debian@192.168.7.2
                            after this sudo su

                            root@beaglebone:

                            now I need to run the application right?

                            but what about that normal user?
                            I need to run it on my Desktop machine?
                            without ssh?

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

                            @Asha said in cross compiled qt for BBB:

                            after this sudo su

                            NO! You should not start it as root.

                            Can you connect a keyboard to your device and start directly there without SSH.

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

                            1 Reply Last reply
                            0
                            • A Asha

                              @jsulm said in cross compiled qt for BBB:

                              You get "Qxcb connection:could not connect to the display"?

                              yes

                              Do you start your app as a root

                              this means ,first i need to do

                              ssh debian@192.168.7.2
                              after this sudo su

                              root@beaglebone:

                              now I need to run the application right?

                              but what about that normal user?
                              I need to run it on my Desktop machine?
                              without ssh?

                              Pablo J. RoginaP Offline
                              Pablo J. RoginaP Offline
                              Pablo J. Rogina
                              wrote on last edited by
                              #24

                              @Asha said in cross compiled qt for BBB:

                              ssh debian@192.168.7.2

                              Ok, after millions of posts we finally reach the point where you stated how you're starting the application in the board...

                              It looks like you're NOT forwarding the X display. Please try connecting to the board this way:

                              ssh -X debian@192.168.7.2
                              

                              and then proceed as you've been doing to start the Qt app

                              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
                              0
                              • Pablo J. RoginaP Pablo J. Rogina

                                @Asha said in cross compiled qt for BBB:

                                ssh debian@192.168.7.2

                                Ok, after millions of posts we finally reach the point where you stated how you're starting the application in the board...

                                It looks like you're NOT forwarding the X display. Please try connecting to the board this way:

                                ssh -X debian@192.168.7.2
                                

                                and then proceed as you've been doing to start the Qt app

                                A Offline
                                A Offline
                                Asha
                                wrote on last edited by
                                #25

                                @Pablo-J-Rogina

                                while connecting as you said above ,

                                getting the result

                                s
                                libEGL warning: DRI3: failed to query the version
                                libEGL warning: DRI2: failed to authenticate
                                ./animatedtiles: relocation error: ./animatedtiles: symbol _ZN18QRandomGenerator646globalEv, version Qt_5 not defined in file libQt5Core.so.5 with link time reference

                                jsulmJ 1 Reply Last reply
                                0
                                • A Asha

                                  @Pablo-J-Rogina

                                  while connecting as you said above ,

                                  getting the result

                                  s
                                  libEGL warning: DRI3: failed to query the version
                                  libEGL warning: DRI2: failed to authenticate
                                  ./animatedtiles: relocation error: ./animatedtiles: symbol _ZN18QRandomGenerator646globalEv, version Qt_5 not defined in file libQt5Core.so.5 with link time reference

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

                                  @Asha Deploy your app correctly (include your cross compiled Qt libraries). Looks like you have different Qt version on your device than the one you cross compiled.

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

                                  A 1 Reply Last reply
                                  1
                                  • jsulmJ jsulm

                                    @Asha Deploy your app correctly (include your cross compiled Qt libraries). Looks like you have different Qt version on your device than the one you cross compiled.

                                    A Offline
                                    A Offline
                                    Asha
                                    wrote on last edited by
                                    #27

                                    @jsulm

                                    I have those libraries in usr lib directory

                                    root@beaglebone:find / -name libGLESv2* -type f
                                    /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0
                                    root@beaglebone: find / -name libEGL* -type f
                                    /usr/lib/arm-linux-gnueabihf/libEGL_mesa.so.0.0.0
                                    /usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0

                                    @jsulm said in cross compiled qt for BBB:

                                    Looks like you have different Qt version on your device than the one you cross compiled.

                                    how do I found,which version qt is running on my device?

                                    jsulmJ 1 Reply Last reply
                                    0
                                    • A Asha

                                      @jsulm

                                      I have those libraries in usr lib directory

                                      root@beaglebone:find / -name libGLESv2* -type f
                                      /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0
                                      root@beaglebone: find / -name libEGL* -type f
                                      /usr/lib/arm-linux-gnueabihf/libEGL_mesa.so.0.0.0
                                      /usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0

                                      @jsulm said in cross compiled qt for BBB:

                                      Looks like you have different Qt version on your device than the one you cross compiled.

                                      how do I found,which version qt is running on my device?

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

                                      @Asha Do

                                      ldd YOUR_EXECUTABLE
                                      

                                      on your device and see which Qt libs linker finds.

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

                                      A 1 Reply Last reply
                                      0
                                      • jsulmJ jsulm

                                        @Asha Do

                                        ldd YOUR_EXECUTABLE
                                        

                                        on your device and see which Qt libs linker finds.

                                        A Offline
                                        A Offline
                                        Asha
                                        wrote on last edited by
                                        #29

                                        @jsulm

                                        this is the result:

                                        debian@beaglebone:~/Qt5/examples/widgets/animation/animatedtiles$ ldd ./animatedtiles
                                        linux-vdso.so.1 (0xbeffe000)
                                        libQt5Widgets.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Widgets.so.5 (0xb6b07000)
                                        libQt5Gui.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Gui.so.5 (0xb67dd000)
                                        libQt5Core.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5 (0xb6469000)
                                        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6445000)
                                        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb642f000)
                                        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb641c000)
                                        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6310000)
                                        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6298000)
                                        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb626f000)
                                        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6181000)
                                        libGLESv2.so.2 => /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 (0xb6163000)
                                        /lib/ld-linux-armhf.so.3 (0xb6f44000)
                                        libharfbuzz.so.0 => /usr/lib/arm-linux-gnueabihf/libharfbuzz.so.0 (0xb60e7000)
                                        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb60c5000)
                                        libpng16.so.16 => /usr/lib/arm-linux-gnueabihf/libpng16.so.16 (0xb6095000)
                                        libicui18n.so.57 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.57 (0xb5ee8000)
                                        libicuuc.so.57 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.57 (0xb5dbf000)
                                        libpcre16.so.3 => /usr/lib/arm-linux-gnueabihf/libpcre16.so.3 (0xb5d67000)
                                        libdouble-conversion.so.1 => /usr/lib/arm-linux-gnueabihf/libdouble-conversion.so.1 (0xb5d49000)
                                        libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb5c6e000)
                                        libGLdispatch.so.0 => /usr/lib/arm-linux-gnueabihf/libGLdispatch.so.0 (0xb5bf0000)
                                        libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0xb5b77000)
                                        libgraphite2.so.3 => /usr/lib/arm-linux-gnueabihf/libgraphite2.so.3 (0xb5b4c000)
                                        libicudata.so.57 => /usr/lib/arm-linux-gnueabihf/libicudata.so.57 (0xb42bf000)
                                        libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb4260000)

                                        In this libEGL library missing ,how do I solve this ?

                                        jsulmJ 1 Reply Last reply
                                        0
                                        • A Asha

                                          @jsulm

                                          this is the result:

                                          debian@beaglebone:~/Qt5/examples/widgets/animation/animatedtiles$ ldd ./animatedtiles
                                          linux-vdso.so.1 (0xbeffe000)
                                          libQt5Widgets.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Widgets.so.5 (0xb6b07000)
                                          libQt5Gui.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Gui.so.5 (0xb67dd000)
                                          libQt5Core.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5 (0xb6469000)
                                          libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6445000)
                                          librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb642f000)
                                          libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb641c000)
                                          libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6310000)
                                          libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6298000)
                                          libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb626f000)
                                          libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6181000)
                                          libGLESv2.so.2 => /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 (0xb6163000)
                                          /lib/ld-linux-armhf.so.3 (0xb6f44000)
                                          libharfbuzz.so.0 => /usr/lib/arm-linux-gnueabihf/libharfbuzz.so.0 (0xb60e7000)
                                          libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb60c5000)
                                          libpng16.so.16 => /usr/lib/arm-linux-gnueabihf/libpng16.so.16 (0xb6095000)
                                          libicui18n.so.57 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.57 (0xb5ee8000)
                                          libicuuc.so.57 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.57 (0xb5dbf000)
                                          libpcre16.so.3 => /usr/lib/arm-linux-gnueabihf/libpcre16.so.3 (0xb5d67000)
                                          libdouble-conversion.so.1 => /usr/lib/arm-linux-gnueabihf/libdouble-conversion.so.1 (0xb5d49000)
                                          libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb5c6e000)
                                          libGLdispatch.so.0 => /usr/lib/arm-linux-gnueabihf/libGLdispatch.so.0 (0xb5bf0000)
                                          libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0xb5b77000)
                                          libgraphite2.so.3 => /usr/lib/arm-linux-gnueabihf/libgraphite2.so.3 (0xb5b4c000)
                                          libicudata.so.57 => /usr/lib/arm-linux-gnueabihf/libicudata.so.57 (0xb42bf000)
                                          libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb4260000)

                                          In this libEGL library missing ,how do I solve this ?

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

                                          @Asha Your current problem is not libEGL.
                                          The problem is here: ./animatedtiles: relocation error: ./animatedtiles: symbol _ZN18QRandomGenerator646globalEv, version Qt_5 not defined in file libQt5Core.so.5 with link time reference

                                          Are these Qt libs the libs you cross compiled and exact same version you're using on your host to cross compile your app?

                                          libQt5Widgets.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Widgets.so.5 (0xb6b07000)
                                          libQt5Gui.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Gui.so.5 (0xb67dd000)
                                          libQt5Core.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5 (0xb6469000)
                                          

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

                                          A 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