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. Is there a way to copy the QT version from board?
Forum Updated to NodeBB v4.3 + New Features

Is there a way to copy the QT version from board?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 3 Posters 662 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.
  • C Offline
    C Offline
    closx
    wrote on last edited by
    #1

    Hello all,
    I am being busy with a board that is a little bit tricky to build a QT for.
    As I described in the header, is there a way to copy the QT version DIRECTLY from the board?
    Like installing the QT and all dependencies with "apt-get" commands to board, and copying all compilers and qmake from board to host linux?
    Sorry for another newbie question,
    Thanks!

    bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
    tag me (like @closx) if you are answering to me, so I can notice :D

    K Pablo J. RoginaP 2 Replies Last reply
    0
    • C closx

      Hello all,
      I am being busy with a board that is a little bit tricky to build a QT for.
      As I described in the header, is there a way to copy the QT version DIRECTLY from the board?
      Like installing the QT and all dependencies with "apt-get" commands to board, and copying all compilers and qmake from board to host linux?
      Sorry for another newbie question,
      Thanks!

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @closx

      You shold give more information about the board. Possibly someone knows more about it.

      In general you would need to have a cross-compiler toolchain on a desktop and do a cross-compilation. https://doc.qt.io/qt-5/embedded-linux.html

      Alternatively, you can install also the compiler and all libs doirectly on the board and do a compilation there.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      3
      • C Offline
        C Offline
        closx
        wrote on last edited by closx
        #3

        @koahnig said in Is there a way to copy the QT version from board?:

        @closx

        You shold give more information about the board. Possibly someone knows more about it.

        In general you would need to have a cross-compiler toolchain on a desktop and do a cross-compilation. https://doc.qt.io/qt-5/embedded-linux.html

        Alternatively, you can install also the compiler and all libs doirectly on the board and do a compilation there.

        Hey, thanks for your answer!
        Actually, the board is a kind of 'DragonBoard 410C' but qt can not build for it with the default documentation of DragonBoard. I do everything same as the guides say, the toolchain and compilers and everything is OK, but something is always wrong about configuration n stuff so I cannot build qt, NEVER, EVER! :D
        However, I was looking for some easy way to cross compile without building qt.

        bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
        tag me (like @closx) if you are answering to me, so I can notice :D

        1 Reply Last reply
        0
        • C closx

          Hello all,
          I am being busy with a board that is a little bit tricky to build a QT for.
          As I described in the header, is there a way to copy the QT version DIRECTLY from the board?
          Like installing the QT and all dependencies with "apt-get" commands to board, and copying all compilers and qmake from board to host linux?
          Sorry for another newbie question,
          Thanks!

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

          @closx said in Is there a way to copy the QT version from board?:

          copying all compilers and qmake from board to host linux?

          If the "host linux" is also for an ARM processor, yes.
          However I suspect you're planning to use some x86 processor-based machine for development, right? So in that case, no.

          You need to setup a cross-compiling environment, i.e. you need a sysroot folder (where header and library files from your target device are copied into) and a cross-compiler: a compiler that runs on host machine (i.e. x86) but creates object and executable files for target processor (i.e. ARM)

          it with the default documentation of DragonBoard. I do everything same as the guides say

          Could you please share links to documentation and those guides you mention?

          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

          1 Reply Last reply
          3
          • C Offline
            C Offline
            closx
            wrote on last edited by AndyS
            #5

            @koahnig

            @koahnig said in Is there a way to copy the QT version from board?:

            @closx

            [censored by @AndyS]

            In general you would need to have a cross-compiler toolchain on a desktop and do a cross-compilation. https://doc.qt.io/qt-5/embedded-linux.html

            Alternatively, you can install also the compiler and all libs doirectly on the board and do a compilation there.

            Hey! Thanks for your answer!
            You really made me understand something from that 'cross compiling' madness finally!
            But I think, I will continue tomorrow. There are storms in my brain right now :D
            Btw, documentation I mentioned,
            https://github.com/96boards/documentation/blob/master/consumer/dragonboard/dragonboard410c/guides/DragonBoard-Qt-Setup.md

            bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
            tag me (like @closx) if you are answering to me, so I can notice :D

            1 Reply Last reply
            0
            • C Offline
              C Offline
              closx
              wrote on last edited by
              #6

              All-right folks,
              To sum up, you basically can not simply copy compilers and libraries to your host PC and cross-compile. Your host PC and board MOST PROBABLY has different architecture.
              BUT, you still have a way to cross-compile (not exactly cross-compiling, just compiling for your board) your QT application.
              On your board, install QT and all the QT dependencies. (I even installed QT creator :P)

              sudo apt-get update && sudo apt-get upgrade
              sudo apt-get install build-essential qtcreator qt5-default mesa-common-dev libglu1-mesa-dev -y
              

              Copy all your source code files to somewhere inside the board.
              And run 'qmake' and 'make' for your main .pro file

              qmake /home/urname/somewhere/mysourcecodes/TheBestProjectOfTheWorld.pro
              make
              

              BOOM!
              It can be kind of very easy stuff to describe to other people, but hey, it took 2 months to understand for me! lmao!
              I believe there is someone like me :P
              XXX

              bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
              tag me (like @closx) if you are answering to me, so I can notice :D

              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