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

Post installing Qmake for new devices



  • Hello, my first post here.
    I am wondering if it is possible to somehow add a Qmake to my existing QTcreator setup on a Ubuntu Desktop, for a raspberry pi device?

    I can compile for desktop and Android, but now I wish to cross-compile using my desktop and deploying to my raspberry pi using SSH.

    I have everything setup without errors except for Qmake.
    Kits, debuggers, SSH, all working.

    My raspberry pi has QTcreator setup correctly and I can compile on it but it takes many hours.

    Is it possible to somehow copy the Qmake I have built from raspberry pi to my desktop? Or do I have to compile a new QT on desktop to include armhf?

    My setup is:
    Desktop Ubuntu 16.04 64bit
    QTcreator 5.13
    Raspberry pi2 using Raspbian Buster
    Qt creator 5.11

    Thanks, I hope I made some logic


  • Moderators

    @Yalimyulad said in Post installing Qmake for new devices:

    Is it possible to somehow copy the Qmake I have built from raspberry pi to my desktop?

    Nothing is physically stopping you, but it won't work.

    qmake is created and specific to the Qt FrameWork/Compiler used for that framework.
    The compiler on your pi is not the same as the one you would use for cross compiling

    If you want to really cross compile for the Pi , you will have to jump through some loops.
    There are some guides out there for example this wiki entries

    https://wiki.qt.io/Raspberry_Pi_Beginners_Guide
    https://wiki.qt.io/RaspberryPi2EGLFS