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. I need a qmake for the BeagleBone Black
Forum Updated to NodeBB v4.3 + New Features

I need a qmake for the BeagleBone Black

Scheduled Pinned Locked Moved Solved Installation and Deployment
26 Posts 9 Posters 10.7k Views 4 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by mzimmers
    #13

    With a lot of help from SGaist, I was able to successfully build Qt for the BBB, thereby getting the qmake that I needed. Here's a little information on how we got this working:

    • the build command that finally worked is this:
    ~/Qt/5.8/Src/qtbase/configure -platform linux-g++ -xplatform linux-arm-gnueabi-g++ -release -device linux-beagleboard-g++ \
      -sysroot /opt/arm-toolchain/sysroot-glibc-linaro-2.23-2016.11-arm-linux-gnueabihf/ \
     -prefix ~/QtForBBB \
    -device-option CROSS_COMPILE=/opt/arm-toolchain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \
     -qt-xcb \
     -nomake tests -nomake examples -no-opengl 
    
    • I needed to download the sysroot as well as the toolchain. This wasn't explicit from the directions. Make sure that the two downloads are for the same platform.

    • it's a good idea to run the configure on an empty directory.

    • when the configure runs successfully to completion, it will tell you to run make but not make install. My experience was that I had to run make, then run make install, in order to get everything I needed.

    • I never did find out why that trailing dash ("-") is needed on the pathname for CROSS_COMPILE, but it is indeed necessary.

    • after you get Qt configured and made, you'll go into Creator (assuming you're using Creator) and create new entries for the compilers (C and C++) and debugger. You'll then use these new entries for a new kit you'll make for the BBB.

    Hopefully, this information will help other people who are doing this as their first build. Feel free to ask questions, as I'm sure I missed some things. Thanks again to everyone who assisted.

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

      That's because the CROSS_COMPILE value will be used as prefix to call all tools.

      Something a bit like:

      CC = $${CROSS_COMPILE}gcc

      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
      0
      • S Offline
        S Offline
        Sajeevan K
        wrote on last edited by
        #15

        Hi all,

        I am new to both Qt and Beaglebone Black.
        I am trying to make qmake for Beaglebone black.

        Mzimmers wrote here: "I needed to download the sysroot as well as toolchain"

        Can anybody tell me where from I can download the sysroot.
        I have downloaded and installed the the linaro toolchain

        Thanks in advance for the help.

        Sajeevan.K

        1 Reply Last reply
        0
        • mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #16

          Hi, Sajeevan -

          Where did you get your cross-development toolchain? If possible, it's probably a good idea to get them from the same location. As the code in my command indicates, I got both from Linaro's site.

          Linaro

          The toolchain is the 2nd item from the bottom in the list.

          D 1 Reply Last reply
          2
          • S Offline
            S Offline
            Sajeevan K
            wrote on last edited by
            #17

            Hi Mzimmers,

            Thank You very much. I have been searching for sysroot everywhere except in Linaro sight!!

            Sajeevan.K

            1 Reply Last reply
            1
            • mzimmersM mzimmers

              Hi, Sajeevan -

              Where did you get your cross-development toolchain? If possible, it's probably a good idea to get them from the same location. As the code in my command indicates, I got both from Linaro's site.

              Linaro

              The toolchain is the 2nd item from the bottom in the list.

              D Offline
              D Offline
              Dario
              wrote on last edited by
              #18

              @mzimmers
              Hi, maybe can you send me the procedure that you follow to set-up it?

              regards

              1 Reply Last reply
              0
              • mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on last edited by
                #19

                Hi, Dario -

                What exactly are you looking for? Post 14 in this topic outlines the steps to get a qmake you can use with the Beaglebone. Let me know if you need more detail on a particular step.

                D 1 Reply Last reply
                1
                • mzimmersM mzimmers

                  Hi, Dario -

                  What exactly are you looking for? Post 14 in this topic outlines the steps to get a qmake you can use with the Beaglebone. Let me know if you need more detail on a particular step.

                  D Offline
                  D Offline
                  Dario
                  wrote on last edited by
                  #20

                  @mzimmers I am really new in this.
                  I trying to configure Qt to use with the Beaglebone by Cross-compile
                  I followed some step from several tutorials, but some links are down or are so old, and I get some errors.
                  I want to compile QT 5.8 because I need to use the Modbus library, But I dont know how to start to set up
                  1.- I have a computer where I have installed Ubuntu 16.04 on a virtual machine using virtualbox.
                  2.- I downloaded the lasted toolchain and the sysroot from linaro
                  What are the next step in detail?
                  My Beaglebone has the lasted image from the oficial page Debian 8.7 2017-03-19 4GB SD LXQT

                  I'm sorry for my English, I'm a Spanish speaker.

                  1 Reply Last reply
                  0
                  • mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by
                    #21

                    Hi, Dario -

                    Unfortunately, I had to rebuild my system this weekend, so I don't have an active BBB configuration right now. If you have the toolchain and sysroot, the next step is to build qmake for BBB. Use the configure command I listed in post #13 in this thread, and then make and make install.

                    When I get to rebuilding my BBB configuration, I'll be happy to help you more, but it's not a high priority, so it may take me some time.

                    S 1 Reply Last reply
                    0
                    • mzimmersM mzimmers

                      Hi, Dario -

                      Unfortunately, I had to rebuild my system this weekend, so I don't have an active BBB configuration right now. If you have the toolchain and sysroot, the next step is to build qmake for BBB. Use the configure command I listed in post #13 in this thread, and then make and make install.

                      When I get to rebuilding my BBB configuration, I'll be happy to help you more, but it's not a high priority, so it may take me some time.

                      S Offline
                      S Offline
                      sxr3455
                      wrote on last edited by
                      #22

                      @mzimmers Hi, would you be able to share the changes you made to qmake.conf? I'm trying to build 5.8 using your instructions above.

                      mzimmersM 1 Reply Last reply
                      0
                      • S sxr3455

                        @mzimmers Hi, would you be able to share the changes you made to qmake.conf? I'm trying to build 5.8 using your instructions above.

                        mzimmersM Offline
                        mzimmersM Offline
                        mzimmers
                        wrote on last edited by mzimmers
                        #23

                        @sxr3455 I'd like to help, but I haven't touched my BBB in over 3 years, and I can't even find my old work, so I'm afraid I can't help much.

                        Did you look at this page?

                        It's out of date, but I recall it being helpful. Good luck.

                        S 1 Reply Last reply
                        0
                        • mzimmersM mzimmers

                          @sxr3455 I'd like to help, but I haven't touched my BBB in over 3 years, and I can't even find my old work, so I'm afraid I can't help much.

                          Did you look at this page?

                          It's out of date, but I recall it being helpful. Good luck.

                          S Offline
                          S Offline
                          sxr3455
                          wrote on last edited by
                          #24

                          @mzimmers I am not able to access the link. Do you have a proper working link?

                          jsulmJ 1 Reply Last reply
                          0
                          • S sxr3455

                            @mzimmers I am not able to access the link. Do you have a proper working link?

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

                            @sxr3455 If you take a closer look at the link @mzimmers posted you will see that there is a typo. Here is correct and working link:
                            https://sites.google.com/site/timpicuc/Downhome/beaglebone-black/setting-up-qt-for-bbb-with-debian

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

                            mzimmersM 1 Reply Last reply
                            2
                            • jsulmJ jsulm

                              @sxr3455 If you take a closer look at the link @mzimmers posted you will see that there is a typo. Here is correct and working link:
                              https://sites.google.com/site/timpicuc/Downhome/beaglebone-black/setting-up-qt-for-bbb-with-debian

                              mzimmersM Offline
                              mzimmersM Offline
                              mzimmers
                              wrote on last edited by
                              #26

                              @jsulm doh...that's what happens when I'm rushing. Link is fixed in my post; thanks for catching it, jsulm.

                              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