Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Error configuring Qt on VirtualBox running Ubuntu. Target BeagleBone Black
Forum Updated to NodeBB v4.3 + New Features

Error configuring Qt on VirtualBox running Ubuntu. Target BeagleBone Black

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 4 Posters 2.9k Views 3 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.
  • L Offline
    L Offline
    Leonardo
    wrote on last edited by
    #2

    Hi. Despite targeting an arm machine, all Qt tools (qmake,moc,etc) will be built as native applications for the host platform (Ubuntu, in your case). That's why you need both g++ and arm-linux-gnueabihf-g++.

    If you're developing on Windows, I would suggest you to compile it using Windows. So you can integrate your build to Qt Creator and then easily compile and deploy your application. I have done it for a Cubieboard2 I have. You can setup an environment using MinGW, MSYS and the Linaro toolchain. It's a little bit painful, but once everything is settled, the hard work will pay off.

    J 1 Reply Last reply
    0
    • L Leonardo

      Hi. Despite targeting an arm machine, all Qt tools (qmake,moc,etc) will be built as native applications for the host platform (Ubuntu, in your case). That's why you need both g++ and arm-linux-gnueabihf-g++.

      If you're developing on Windows, I would suggest you to compile it using Windows. So you can integrate your build to Qt Creator and then easily compile and deploy your application. I have done it for a Cubieboard2 I have. You can setup an environment using MinGW, MSYS and the Linaro toolchain. It's a little bit painful, but once everything is settled, the hard work will pay off.

      J Offline
      J Offline
      josegua94
      wrote on last edited by
      #3

      @Leonardo
      Hello and thank you for replying,

      I have found out that I don't have "g++" installed on my virtual machine and due to the fact that I don't have internet connection, I can't get the installation with "apt-get" (at least not until now). However I do think that it would be better if I could cross-compile directly from Windows.
      Do you know of any link with a tutorial on how to do it? Honestly, I am pretty new at this and sometimes I have no idea of what I am doing, so without a tutorial to follow it would be pretty impossible for me.

      I found this tutorial http://c2143.blogspot.de/?view=classic but I can't seem to download this "Jom" thing. Apparently because of a firewall since I am using the network of my office. Would you recommend me another one?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Leonardo
        wrote on last edited by
        #4

        Hi. I don't know any tutorial. I'm sorry. There are really few resources about cross compilation on Windows. It took me one week to get it all working, but that link you posted seems like a good starting point. I don't know Qt 4, but I can tell you don't need Jom for Qt 5, whether you're using Visual Studio or MinGW. You can skip it.

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

          Hi,

          Jom is provided with Qt Creator.

          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
          • J Offline
            J Offline
            josegua94
            wrote on last edited by
            #6

            Hi Leonardo and SGaist,

            again thanks for answering and sorry for taking so long to get back at you but I was kinda busy.

            Just now I retook this problem of deploying Qt applications on my BeagleBone Black trough Windows. I stopped following the above tutorial because it uses a "Qt 4.8 source git checkout from gitorious" and apart from now knowing what that is, I couldn't download it. I saw a video of a guy that deploys applications setting up a new Kit in Qt creator. In "Tools->Options..." Then he added the corresponding GCC Compiler, Debugger and the qmake file that were in his toolchain.

            Since I am using a BeagleBone Black running Debian, I downloaded this toolchain: "gcc-linaro-arm-linux-gnueabihf-4.8-2013.06_win32.zip" from the website https://releases.linaro.org/13.06/components/toolchain/binaries
            My problem is that in this toolchain I cannot find the file or executable that the guy from the video uses in "Qt versions". He uses a "qmake2" that is in the "bin" file of his toolchain, but in this toolchain that I use I cannot find such a file. Could you tell me if this is the right way to deploy Qt applications on BeagleBone Black and if I am using the right toolchain and possibly point me in the right direction? Thanks in advance for any kind of help.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Leonardo
              wrote on last edited by
              #7

              Hi. I don't know the video you are referring to, but there's no qmake2 in the toolchain. That's right. You know, I've been willing to write an article on Qt's wiki about cross-compilation on Windows, but it's been some time since I've been through this process, so I don't remember all the details. I think many Windows developers would benefit from it. Now that you're going through the same path, would you consider helping me writing this article? I could give you the main steps and you would fill in the details. What do you think about it?

              J 1 Reply Last reply
              0
              • L Leonardo

                Hi. I don't know the video you are referring to, but there's no qmake2 in the toolchain. That's right. You know, I've been willing to write an article on Qt's wiki about cross-compilation on Windows, but it's been some time since I've been through this process, so I don't remember all the details. I think many Windows developers would benefit from it. Now that you're going through the same path, would you consider helping me writing this article? I could give you the main steps and you would fill in the details. What do you think about it?

                J Offline
                J Offline
                josegua94
                wrote on last edited by
                #8

                @Leonardo
                No problem by me. I must tell you though, I am no developer nor am I an expert in any sense of the word. But I had already thought that if I can make this work soon, I would do a video or a page with the steps on how to do it. Anyway, if it works for me I wouldn't have any problem in writing something down to help other people with it. But first I have to make it work for me and know what am I doing I believe.

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  josegua94
                  wrote on last edited by
                  #9

                  I just wanted to let you guys know that I will be making a new Topic since I believe that the title of the actual one is a little misleading.

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

                    You can also just rephrase the title if the topic is still the same

                    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
                    • R Offline
                      R Offline
                      ranshalit
                      wrote on last edited by
                      #11

                      Hello all,

                      The idea of writing some article with steps on how to build application in Qt for ARM linux is great.
                      It is very much required.
                      I already have working target with Ubuntu as development, but I need to give the capabilty to build a Qt application from windows. I got into trouble with it.

                      Regards,
                      Ran

                      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