跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • Get Qt Extensions
  • Unsolved
Collapse
品牌標誌
  1. 首頁
  2. Qt Development
  3. Installation and Deployment
  4. Compile QT 5.8 to cross-compile Beaglebone
Forum Updated to NodeBB v4.3 + New Features

Compile QT 5.8 to cross-compile Beaglebone

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

    Someone can explain me how can I compile Qt 5.8 for Beaglebone with the lasted image (Debian 8.7)?

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

      Hi,

      Please search the forum a bit. There have been several post about that subject in the last months. e.g. this thread

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

      1 條回覆 最後回覆
      2
      • D 離線
        D 離線
        Dario
        寫於 最後由 編輯
        #3

        @SGaist I've follow the post #13 of mzimmers, but i still cant develop an app using qt creator and qmake.
        I don't know what I am doing bad.
        Can you guide me how to setup?

        regards

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

          What exact error are you getting ?

          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
          • D 離線
            D 離線
            Dario
            寫於 最後由 編輯
            #5

            @SGaist I've do the next step based on http://blog.ventisei.eu/

            https://docs.google.com/document/d/1wZSRiB23o-LMRMv039al9q8_ga7I1V7XrCfaT84smkM/edit?usp=sharing

            The error that i get is:
            Creating qmake...
            ........................................................................................Done.
            Info: creating stash file /home/dario/Downloads/qt-everywhere-opensource-src-5.8.0/.qmake.stash
            Info: creating super cache file /home/dario/Downloads/qt-everywhere-opensource-src-5.8.0/.qmake.super

            Running configuration tests...
            Checking for gold linker... no
            Checking for valid makespec...
            ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.

            Check config.log for details.

            The config.log file is here
            https://drive.google.com/file/d/0B4dS_vNgkiYAVVlidlVrTHo1NXM/view?usp=sharing

            Can you help me?

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

              Please add the -v option to have more details about what is happening.

              Also, you should do out of source build, so if something goes wrong you can just nuke the build folder and start anew.

              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
              • mzimmersM 離線
                mzimmersM 離線
                mzimmers
                寫於 最後由 編輯
                #7

                Hi, SGaist and Dario -

                I had to rebuild my Linux system from scratch recently, and am just now getting my cross-development tools working with the Beaglebone Black. I think I'm almost there...right now, when I attempt to debug, I get an error message from the target system: "Architecture rejected target-supplied description."

                I've gone over my notes, and it doesn't seem like I encountered this before. The binary I build for the BBB does run (it's just hello world), so I'm wondering if the error message refers to the debugger I'm invoking? SGaist: any suggestions?

                Once I have this working, I'll make an improved write-up of the necessary steps and post it in this thread.

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

                  You are maybe using the wrong GDB to connect to 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 條回覆 最後回覆
                  1
                  • mzimmersM 離線
                    mzimmersM 離線
                    mzimmers
                    寫於 最後由 mzimmers 編輯
                    #9

                    Indeed I was. I can now debug hello world, though I am getting this warning when I start:

                    Could not load shared library symbols for 7 libraries, e.g. /lib/arm-linux-gnueabihf/librt.so.1.
                    Use the "info sharedlibrary" command to see the complete listing.
                    Do you need "set solib-search-path" or "set sysroot"?
                    

                    It didn't affect this particular program, but I'd like to remedy this. Can you please remind me what needs to be done here? As I recall, it's something to do with sysroot, but I can't remember the details.

                    Thanks.

                    EDIT: I forgot to mention I also get this message at program startup:

                    stdin: is not a tty
                    

                    Is this because I haven't allocated a terminal for the output of the debug session?

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

                      I never got that one but I'd check the Kit for the sysroot related stuff.

                      That would make sense yes.

                      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
                      • mzimmersM 離線
                        mzimmersM 離線
                        mzimmers
                        寫於 最後由 編輯
                        #11

                        My BBB kit's sysroot is set to the one I downloaded from Linaro. Is there anything else I need to do? I don't copy it to the BBB, do I?

                        A 1 條回覆 最後回覆
                        0
                        • mzimmersM mzimmers

                          My BBB kit's sysroot is set to the one I downloaded from Linaro. Is there anything else I need to do? I don't copy it to the BBB, do I?

                          A 離線
                          A 離線
                          Andrey Shmelew
                          寫於 最後由 Andrey Shmelew 編輯
                          #12

                          @mzimmers

                          Hi! Once you have compiled qt-creator 5.8. did you get .so libraries for BBB?
                          A mean libQt5Gui.so.5.8.0, libQt5Serial.so.5.8.0 etc... for BBB debian images.
                          what versions of .so libraries are installed now on your beaglebone black board?

                          mzimmersM 1 條回覆 最後回覆
                          0
                          • A Andrey Shmelew

                            @mzimmers

                            Hi! Once you have compiled qt-creator 5.8. did you get .so libraries for BBB?
                            A mean libQt5Gui.so.5.8.0, libQt5Serial.so.5.8.0 etc... for BBB debian images.
                            what versions of .so libraries are installed now on your beaglebone black board?

                            mzimmersM 離線
                            mzimmersM 離線
                            mzimmers
                            寫於 最後由 編輯
                            #13

                            @Andrey-Shmelew Compiling qt-creator does not give you those libraries. To get them, I believe you need to do a full build of Q for the BBB.

                            1 條回覆 最後回覆
                            2
                            • A 離線
                              A 離線
                              Andrey Shmelew
                              寫於 最後由 編輯
                              #14

                              Ok!

                              Now i have on Windows host machine Qt creator 5.5.0, on BBB i have libraries *.so.5.3.2. How can I be sure that the application will work identiaclly on Windows Host machine and on Linux BeagleBone Board?

                              jsulmJ 1 條回覆 最後回覆
                              0
                              • A Andrey Shmelew

                                Ok!

                                Now i have on Windows host machine Qt creator 5.5.0, on BBB i have libraries *.so.5.3.2. How can I be sure that the application will work identiaclly on Windows Host machine and on Linux BeagleBone Board?

                                jsulmJ 離線
                                jsulmJ 離線
                                jsulm
                                Lifetime Qt Champion
                                寫於 最後由 編輯
                                #15

                                @Andrey-Shmelew said in Compile QT 5.8 to cross-compile Beaglebone:

                                How can I be sure that the application will work identiaclly on Windows Host machine and on Linux BeagleBone Board?

                                Do you want to use your app on Windows and BBB?
                                To be sure it behaves the same you need to test on both.
                                To develop on Windows for BBB you need the Qt libs built for BBB on your Windows machine as well + cross compiler + sysroot.

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

                                A 1 條回覆 最後回覆
                                0
                                • jsulmJ jsulm

                                  @Andrey-Shmelew said in Compile QT 5.8 to cross-compile Beaglebone:

                                  How can I be sure that the application will work identiaclly on Windows Host machine and on Linux BeagleBone Board?

                                  Do you want to use your app on Windows and BBB?
                                  To be sure it behaves the same you need to test on both.
                                  To develop on Windows for BBB you need the Qt libs built for BBB on your Windows machine as well + cross compiler + sysroot.

                                  A 離線
                                  A 離線
                                  Andrey Shmelew
                                  寫於 最後由 Andrey Shmelew 編輯
                                  #16

                                  @jsulm said in Compile QT 5.8 to cross-compile Beaglebone:

                                  Do you want to use your app on Windows and BBB?

                                  I want to use my application on BBB, but i want it develop and debug on Windows first.
                                  I plan to develop multithread stable secutiy system based on BBB/Qt/QML. I already have the Qt libs built for BBB on your Windows machine as well + cross compiler + sysroot. But Qt libs was prebuilt. Now i can develop app on Windows and deploy it on BBB, but i am not sure it is the best way.

                                  jsulmJ 1 條回覆 最後回覆
                                  0
                                  • A Andrey Shmelew

                                    @jsulm said in Compile QT 5.8 to cross-compile Beaglebone:

                                    Do you want to use your app on Windows and BBB?

                                    I want to use my application on BBB, but i want it develop and debug on Windows first.
                                    I plan to develop multithread stable secutiy system based on BBB/Qt/QML. I already have the Qt libs built for BBB on your Windows machine as well + cross compiler + sysroot. But Qt libs was prebuilt. Now i can develop app on Windows and deploy it on BBB, but i am not sure it is the best way.

                                    jsulmJ 離線
                                    jsulmJ 離線
                                    jsulm
                                    Lifetime Qt Champion
                                    寫於 最後由 編輯
                                    #17

                                    @Andrey-Shmelew said in Compile QT 5.8 to cross-compile Beaglebone:

                                    but i am not sure it is the best way

                                    Why not? It is the usual way to develop for other devices. Personally I would prefer Linux as development machine, but it is doable on Windows as well.

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

                                    A 1 條回覆 最後回覆
                                    0
                                    • jsulmJ jsulm

                                      @Andrey-Shmelew said in Compile QT 5.8 to cross-compile Beaglebone:

                                      but i am not sure it is the best way

                                      Why not? It is the usual way to develop for other devices. Personally I would prefer Linux as development machine, but it is doable on Windows as well.

                                      A 離線
                                      A 離線
                                      Andrey Shmelew
                                      寫於 最後由 Andrey Shmelew 編輯
                                      #18

                                      @jsulm

                                      You think i should ignore mismatches of libraries versions (*.so.5.3.2 against Qt creator 5.8.0) and keep going?

                                      jsulmJ 1 條回覆 最後回覆
                                      0
                                      • A Andrey Shmelew

                                        @jsulm

                                        You think i should ignore mismatches of libraries versions (*.so.5.3.2 against Qt creator 5.8.0) and keep going?

                                        jsulmJ 離線
                                        jsulmJ 離線
                                        jsulm
                                        Lifetime Qt Champion
                                        寫於 最後由 jsulm 編輯
                                        #19

                                        @Andrey-Shmelew There is no QtCreator 5.8 - current version is 4.2.2.
                                        QtCreator is not the same as Qt. QtCreator is an IDE, Qt is a C++ framework. You can use any Qt version with QtCreator. QtCreator version doesn't matter at all.
                                        Or do you mean you have Qt 5.8 built for BBB on your Windows machine?

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

                                        A 1 條回覆 最後回覆
                                        2
                                        • jsulmJ jsulm

                                          @Andrey-Shmelew There is no QtCreator 5.8 - current version is 4.2.2.
                                          QtCreator is not the same as Qt. QtCreator is an IDE, Qt is a C++ framework. You can use any Qt version with QtCreator. QtCreator version doesn't matter at all.
                                          Or do you mean you have Qt 5.8 built for BBB on your Windows machine?

                                          A 離線
                                          A 離線
                                          Andrey Shmelew
                                          寫於 最後由 Andrey Shmelew 編輯
                                          #20

                                          @jsulm
                                          i have
                                          on Host Windows 10:
                                          Qt Creator 4.1.0
                                          Based on Qt 5.7.0 (MSVC 2013, 32 bit)
                                          Qt Creator has a Kit for BBB

                                          on Host Windows 10:
                                          GNU toolchaon for BeagleBone, GCC version 4.9.2 (libs, compiler, gdb debugger, sysroot)

                                          A 1 條回覆 最後回覆
                                          0

                                          • 登入

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