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.7k 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.
  • jsulmJ jsulm

    @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)
    
    A Offline
    A Offline
    Asha
    wrote on last edited by
    #31

    @jsulm

    my configure command is exactly as shown in below ,please go through this

    ./configure -platform linux-g++ release -device linux-beagleboard-g++ -sysroot /home/beagle/BBB/sysroot -prefix /home/debian/Qt5 -hostprefix ~/Qt5 -device option
    CROSS_COMPILE = /home/beagle/BBB/gcc-linaro......gnuabihf- -nomake tests -nomake examples -no-opengl -opensource -confirm-license -reduce-exports -make libs -no-egl -no-eglfs -qt-zlib -qt-libpng -no-use-gold-linker-linuxfb -qt-libjpeg -no-opengl -no-cups -no-glib -no-iconv -nomake examples -nomake tools -nomake tests -no-pkg-config -skip qtdeclarative -skip qtlocation -skip qtpurchasing -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwebglplugin -skip qtandroisextras -skip qtgamepad -skip qtmacextras -skip qtwinextras -skip qtsensors -skip qtconnectivity -recheck-all -v

    any mistakes in this configuration then please let me know..(if any mistakes then what configuration I need to give ,for my X server, beagleboneboard,just i want to run a simple qt application in my board and display the output in my display screen)...

    jsulmJ 1 Reply Last reply
    0
    • A Asha

      @jsulm

      my configure command is exactly as shown in below ,please go through this

      ./configure -platform linux-g++ release -device linux-beagleboard-g++ -sysroot /home/beagle/BBB/sysroot -prefix /home/debian/Qt5 -hostprefix ~/Qt5 -device option
      CROSS_COMPILE = /home/beagle/BBB/gcc-linaro......gnuabihf- -nomake tests -nomake examples -no-opengl -opensource -confirm-license -reduce-exports -make libs -no-egl -no-eglfs -qt-zlib -qt-libpng -no-use-gold-linker-linuxfb -qt-libjpeg -no-opengl -no-cups -no-glib -no-iconv -nomake examples -nomake tools -nomake tests -no-pkg-config -skip qtdeclarative -skip qtlocation -skip qtpurchasing -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwebglplugin -skip qtandroisextras -skip qtgamepad -skip qtmacextras -skip qtwinextras -skip qtsensors -skip qtconnectivity -recheck-all -v

      any mistakes in this configuration then please let me know..(if any mistakes then what configuration I need to give ,for my X server, beagleboneboard,just i want to run a simple qt application in my board and display the output in my display screen)...

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

      @Asha You did not answer my question.
      Where did you put your cross compiled Qt on the device?

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

      A 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Asha You did not answer my question.
        Where did you put your cross compiled Qt on the device?

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

        @jsulm

        I copied my cross compiled qt in my board via

        scp Qt5 debian@192.168.7.2:Qt5

        means directly in my device only,not in any directory(where i need to copy that one)..

        jsulmJ 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #34

          So you did not copy the libraries at the exact same place on your device ?

          Your system installed Qt is picked before the one you copied.

          So one solution is to call: LD_LIBRARY_PATH=/path/to/your/cross-compiled_qt/lib ./YOUR_EXECUTABLE_NAME.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • A Asha

            @jsulm

            I copied my cross compiled qt in my board via

            scp Qt5 debian@192.168.7.2:Qt5

            means directly in my device only,not in any directory(where i need to copy that one)..

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

            @Asha said in cross compiled qt for BBB:

            means directly in my device only

            Your app definitely uses wrong Qt libs.
            You have to copy the Qt libs into same directory you specified in -prefix. In your case /home/debian/Qt5.
            If this is the case then try following to start your app on device:

            cd DIR_WHERE_YOUR_APP_IS
            export LD_LIBRARY_PATH=/home/debian/Qt5
            ./YOUR_APP
            

            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:

              means directly in my device only

              Your app definitely uses wrong Qt libs.
              You have to copy the Qt libs into same directory you specified in -prefix. In your case /home/debian/Qt5.
              If this is the case then try following to start your app on device:

              cd DIR_WHERE_YOUR_APP_IS
              export LD_LIBRARY_PATH=/home/debian/Qt5
              ./YOUR_APP
              
              A Offline
              A Offline
              Asha
              wrote on last edited by
              #36

              @jsulm

              now at present I don't have my display,

              but while giving this

              @jsulm said in cross compiled qt for BBB:

              cd DIR_WHERE_YOUR_APP_IS
              export LD_LIBRARY_PATH=/home/debian/Qt5
              ./YOUR_APP

              I am getting the output in my laptop,it just blinking for a second..

              If I connect my display, and then I execute as you told,then can I get the result in my display?

              jsulmJ 1 Reply Last reply
              0
              • A Asha

                @jsulm

                now at present I don't have my display,

                but while giving this

                @jsulm said in cross compiled qt for BBB:

                cd DIR_WHERE_YOUR_APP_IS
                export LD_LIBRARY_PATH=/home/debian/Qt5
                ./YOUR_APP

                I am getting the output in my laptop,it just blinking for a second..

                If I connect my display, and then I execute as you told,then can I get the result in my display?

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

                @Asha said in cross compiled qt for BBB:

                If I connect my display, and then I execute as you told,then can I get the result in my display?

                If nothing else is wrong then yes

                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:

                  If I connect my display, and then I execute as you told,then can I get the result in my display?

                  If nothing else is wrong then yes

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

                  @jsulm

                  Hi,

                  now i connected my device to the display ,and i followed as you said..
                  but i am not getting the output in display screen,getting output in my laptop...

                  jsulmJ 1 Reply Last reply
                  0
                  • A Asha

                    @jsulm

                    Hi,

                    now i connected my device to the display ,and i followed as you said..
                    but i am not getting the output in display screen,getting output in my laptop...

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

                    @Asha said in cross compiled qt for BBB:

                    getting output in my laptop

                    Did you redirect the output as @Pablo-J-Rogina suggested before?
                    If so then do not redirect, just make sure you see graphical desktop on the display.

                    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:

                      getting output in my laptop

                      Did you redirect the output as @Pablo-J-Rogina suggested before?
                      If so then do not redirect, just make sure you see graphical desktop on the display.

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

                      @jsulm said in cross compiled qt for BBB:

                      Did you redirect the output as @Pablo-J-Rogina suggested before?

                      i am not understand this one,what your trying to ask?

                      i burned new image in my sdcard,and i put that sdcard into the BBB after that trying to execute this qt applications,

                      while trying with

                      ssh debian@192.168.7.2
                      getting Qxcb error

                      And trying with

                      ssh -X debian@192.168.7.2

                      getting this with displaying the output in laptop

                      libEGL warning: DRI3: failed to query the version
                      libEGL warning: DRI2: failed to authenticate
                      QXcbConnection: XCB error: 1 (BadRequest), sequence: 405, resource id: 220, major code: 154 (Unknown), minor code: 1

                      jsulmJ 1 Reply Last reply
                      0
                      • A Asha

                        @jsulm said in cross compiled qt for BBB:

                        Did you redirect the output as @Pablo-J-Rogina suggested before?

                        i am not understand this one,what your trying to ask?

                        i burned new image in my sdcard,and i put that sdcard into the BBB after that trying to execute this qt applications,

                        while trying with

                        ssh debian@192.168.7.2
                        getting Qxcb error

                        And trying with

                        ssh -X debian@192.168.7.2

                        getting this with displaying the output in laptop

                        libEGL warning: DRI3: failed to query the version
                        libEGL warning: DRI2: failed to authenticate
                        QXcbConnection: XCB error: 1 (BadRequest), sequence: 405, resource id: 220, major code: 154 (Unknown), minor code: 1

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

                        @Asha Can you connect a keyboard to your device and start your app directly on the device without SSH?

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

                        A 2 Replies Last reply
                        0
                        • jsulmJ jsulm

                          @Asha Can you connect a keyboard to your device and start your app directly on the device without SSH?

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

                          @jsulm through keyboard I am able to display the output on my display screen...

                          but why not getting by the laptop(via ssh)?

                          how do I execute it by laptop?

                          Pablo J. RoginaP 1 Reply Last reply
                          0
                          • jsulmJ jsulm

                            @Asha Can you connect a keyboard to your device and start your app directly on the device without SSH?

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

                            @jsulm Thankyou so much Sir,for the help..
                            Thanks to everyone how guided me..

                            1 Reply Last reply
                            1
                            • A Asha

                              @jsulm through keyboard I am able to display the output on my display screen...

                              but why not getting by the laptop(via ssh)?

                              how do I execute it by laptop?

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

                              @Asha said in cross compiled qt for BBB:

                              but why not getting by the laptop(via ssh)?

                              Because you seem not to forward the X display through the SSH connection.

                              how do I execute it by laptop?

                              I've already told you, see one of my previous posts.
                              In addition, you may want to read more about X forwarding, there's plenty of articles, for instance here. I won't post anymore about this issue remote display.

                              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

                              jsulmJ 1 Reply Last reply
                              0
                              • Pablo J. RoginaP Pablo J. Rogina

                                @Asha said in cross compiled qt for BBB:

                                but why not getting by the laptop(via ssh)?

                                Because you seem not to forward the X display through the SSH connection.

                                how do I execute it by laptop?

                                I've already told you, see one of my previous posts.
                                In addition, you may want to read more about X forwarding, there's plenty of articles, for instance here. I won't post anymore about this issue remote display.

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

                                @Pablo-J-Rogina said in cross compiled qt for BBB:

                                I've already told you, see one of my previous posts

                                I told him to not to do so because he wants to see the application on display connected to the device, not on the host.

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

                                Pablo J. RoginaP 1 Reply Last reply
                                0
                                • jsulmJ jsulm

                                  @Pablo-J-Rogina said in cross compiled qt for BBB:

                                  I've already told you, see one of my previous posts

                                  I told him to not to do so because he wants to see the application on display connected to the device, not on the host.

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

                                  @jsulm see:

                                  @Asha said

                                  through keyboard I am able to display the output on my display screen...

                                  So it seems he's finally able to run the Qt app from the device. But he still insists as:

                                  but why not getting by the laptop(via ssh)?

                                  so indeed he's driving us crazy as he doesn't know what his requirements are... and we're trying our best to help him. Anyway.

                                  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

                                    @jsulm see:

                                    @Asha said

                                    through keyboard I am able to display the output on my display screen...

                                    So it seems he's finally able to run the Qt app from the device. But he still insists as:

                                    but why not getting by the laptop(via ssh)?

                                    so indeed he's driving us crazy as he doesn't know what his requirements are... and we're trying our best to help him. Anyway.

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

                                    @Pablo-J-Rogina said in cross compiled qt for BBB:

                                    he's driving us crazy

                                    no sir,not like that..I am very new to this..so I have doubts..

                                    I am not getting how to execute qt application via laptop,so I asked..

                                    Thanyou so much for you help..

                                    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