Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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!



  • @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.



  • @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.



  • @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?



  • @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



  • 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


Log in to reply