跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • Get Qt Extensions
  • Unsolved
Collapse
品牌標誌
  1. 首頁
  2. Qt Development
  3. Mobile and Embedded
  4. Cross Compiling on BeagleBone Black
Forum Updated to NodeBB v4.3 + New Features

Cross Compiling on BeagleBone Black

已排程 已置頂 已鎖定 已移動 Mobile and Embedded
37 貼文 2 Posters 18.3k 瀏覽 1 Watching
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • S 離線
    S 離線
    SPRB
    寫於 最後由 編輯
    #1

    Hi all,

    Task is to port the Qt on to the Beaglebone Black.

    I have downloaded the Toolchain for beaglebone black i.e "angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3"

    I have also cross checked the Toolchain and I found that it is working fine.

    I tried to configure the Qt source i.e "qt-everywhere-opensource-src-5.3.0", following this link https://qt-project.org/wiki/Building_Qt_for_Embedded_Linux using toolchain.
    It showed me a warning stating Dbus missing.
    But I continued to make it, then it popped up an error message "Incompatible LibQt5Dbus.so when searching for -lQt5Dbus", "Cannot find -lOt5Dbus".

    Can I know what is the reason for this?

    I am stuck here and I am unable to move further. Any help is appreciated.

    Thank you.

    1 條回覆 最後回覆
    0
    • SGaistS 離線
      SGaistS 離線
      SGaist
      Lifetime Qt Champion
      寫於 最後由 編輯
      #2

      Hi,

      The dbus library for ARM could not be found so the lQt5Dbus library has not been built but you system contains your x86 version that has been found.

      Either provide your tool chain with the dbus libraries for ARM or disable dbus when building Qt

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

      1 條回覆 最後回覆
      0
      • S 離線
        S 離線
        SPRB
        寫於 最後由 編輯
        #3

        Hi,
        Thank you for your reply.

        I tried to build disabling the dbus. That error got resolved but new error has been popped up stating:
        Cannot find lQt5PlatformSupport.

        How will I resolve this error?

        Thank you

        1 條回覆 最後回覆
        0
        • SGaistS 離線
          SGaistS 離線
          SGaist
          Lifetime Qt Champion
          寫於 最後由 編輯
          #4

          Did you cleanup before modifying the configuration and starting the build ?

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

          1 條回覆 最後回覆
          0
          • S 離線
            S 離線
            SPRB
            寫於 最後由 編輯
            #5

            Yes I have made cleanup before i configure. Still the error is there.

            1 條回覆 最後回覆
            0
            • SGaistS 離線
              SGaistS 離線
              SGaist
              Lifetime Qt Champion
              寫於 最後由 編輯
              #6

              How did you do the cleanup ?

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

              1 條回覆 最後回覆
              0
              • S 離線
                S 離線
                SPRB
                寫於 最後由 編輯
                #7

                I cleaned by giving make confclean

                1 條回覆 最後回覆
                0
                • SGaistS 離線
                  SGaistS 離線
                  SGaist
                  Lifetime Qt Champion
                  寫於 最後由 編輯
                  #8

                  Did the configure run successfully ?

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

                  1 條回覆 最後回覆
                  0
                  • S 離線
                    S 離線
                    SPRB
                    寫於 最後由 編輯
                    #9

                    Yes, configure run successfully without any problem. make is exiting with an error.

                    1 條回覆 最後回覆
                    0
                    • SGaistS 離線
                      SGaistS 離線
                      SGaist
                      Lifetime Qt Champion
                      寫於 最後由 編輯
                      #10

                      Can you post the error content ?

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

                      1 條回覆 最後回覆
                      0
                      • S 離線
                        S 離線
                        SPRB
                        寫於 最後由 編輯
                        #11

                        Hi,
                        This is the error I am getting now,

                        /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib/crt1.o: In function _start': init.c:(.text+0x30): undefined reference to main'
                        collect2: ld returned 1 exit status
                        make[1]: *** [../../lib/libQtCore.so.4.8.6] Error 1
                        make[1]: Leaving directory `/home/raghu/Desktop/qt-everywhere-opensource-src-4.8.6/src/corelib'
                        make: *** [sub-corelib-make_default-ordered] Error 2

                        Please help me to get rid off this error.

                        1 條回覆 最後回覆
                        0
                        • SGaistS 離線
                          SGaistS 離線
                          SGaist
                          Lifetime Qt Champion
                          寫於 最後由 編輯
                          #12

                          You changed Qt's version in between ?

                          Did you update your cross-compiler also ?

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

                          1 條回覆 最後回覆
                          0
                          • S 離線
                            S 離線
                            SPRB
                            寫於 最後由 編輯
                            #13

                            Hi,

                            I successfully configured "qt-everywhere-opensource-src-4.8.6", also "make" and "make install" was successful.

                            I created a Qt application and compiled it. Even it compiled successfully.
                            I deployed it onto the beaglebone black.

                            But the binary is not running on the board,
                            I have even transferred all the libraries into board. Still the binary is not running.

                            It is stating an error “bash: ./Test: No such file or directory”.

                            Can you please help me with this as it's very urgent.

                            Thank you.

                            1 條回覆 最後回覆
                            0
                            • SGaistS 離線
                              SGaistS 離線
                              SGaist
                              Lifetime Qt Champion
                              寫於 最後由 編輯
                              #14

                              The message is pretty self-explanatory, Test doesn't exist

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

                              1 條回覆 最後回覆
                              0
                              • S 離線
                                S 離線
                                SPRB
                                寫於 最後由 編輯
                                #15

                                Hi,

                                When I give "ls -al" it is listing the "Test", So its confirmed that Test binary is present in the path.

                                1 條回覆 最後回覆
                                0
                                • S 離線
                                  S 離線
                                  SPRB
                                  寫於 最後由 編輯
                                  #16

                                  Hi,
                                  I some tried to link the libraries now I am getting this error when I execute the exe in the target system.
                                  "./Test : error while loading shared libraries: libEGL.so.1: cannot open shares object file: No such file or directory"

                                  1 條回覆 最後回覆
                                  0
                                  • SGaistS 離線
                                    SGaistS 離線
                                    SGaist
                                    Lifetime Qt Champion
                                    寫於 最後由 編輯
                                    #17

                                    You are missing some dependencies on your target

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

                                    1 條回覆 最後回覆
                                    0
                                    • S 離線
                                      S 離線
                                      SPRB
                                      寫於 最後由 編輯
                                      #18

                                      hi,

                                      The all the above issues where resolved.

                                      But currently I am facing a new issue. I deployed my application successfully into beaglebone black and even the application is running. But no texts are being displayed on the UI. I tried with linking the Qt directory path but i was not successful in that.

                                      Can I know what changes needs to be done to get the text displayed on the UI?

                                      1 條回覆 最後回覆
                                      0
                                      • SGaistS 離線
                                        SGaistS 離線
                                        SGaist
                                        Lifetime Qt Champion
                                        寫於 最後由 編輯
                                        #19

                                        Did you deploy the font files ?

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

                                        1 條回覆 最後回覆
                                        0
                                        • S 離線
                                          S 離線
                                          SPRB
                                          寫於 最後由 編輯
                                          #20

                                          Yes I have deployed the fonts and have also specified the QT_QWS_FONTDIR to that where the fonts are there.

                                          When I set the width and height by giving the following environmental variable: QWS_DISPLAY = LinuxFB:mmWidth=800:mmHeight=480, I could see some of the texts but it is not properly aligned and some texts are still missing.

                                          Can I know how can I resolve it?

                                          1 條回覆 最後回覆
                                          0

                                          • 登入

                                          • Login or register to search.
                                          • 第一個貼文
                                            最後的貼文
                                          0
                                          • 版面
                                          • 最新
                                          • 標籤
                                          • 熱門
                                          • 使用者
                                          • 群組
                                          • 搜尋
                                          • Get Qt Extensions
                                          • Unsolved