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

Qt for Raspberry pi + cross compiling



  • I am begining with Qt and before going to deep in my project I would like to know if Qt can be added to my actual Raspbian buster without modifying the system I have set in place already.
    In a nutshel I want to:

    1. try the cross-compiling
    2. avoid dismount/remount the SD card.
    3. keep on my mosquitto MQTT broker and other programs (node-red, node.js) on it, as well as my RTC configuration.
    4. Decide to boot directly on the Qt Application I have designed, or boot on the Raspbian OS.

    The project I am doing would host the MQTT broker on a RPi, use the Wifi as an access point, and use a RTC to keep the time.

    Thank you.
    Sylvano



  • @sylvanoMTL said in Qt for Raspberry pi + cross compiling:

    try the cross-compiling

    There are several guides to follow, just a few worth looking at:

    1. Cross-Compiling Qt 5.15.0 for Raspberry Pi 4 although referred to work with RPi3 devices
    2. RaspberryPi2EGLFS
    3. Blog post at Mechatronics

    avoid dismount/remount the SD card.

    Yes, you'll use rsync to have your sysroot folder in host PC

    keep on my mosquitto MQTT broker and other programs (node-red, node.js) on it, as well as my RTC configuration.

    yes, nothing to be changed there

    Decide to boot directly on the Qt Application I have designed, or boot on the Raspbian OS.

    yes, that's depend on the OS not strictly related to Qt framework

    You haven't stated if your Qt application will work as MQTT client, but if so, and if you plan to use the Qt MQTT support classes, keep in mind that you'll need to build it as a separate module (see step #16 from RaspberryPi2EGLFS guide as a reference)



  • @Pablo-J-Rogina
    Thank you Pablo, the machatronics bolog + RaspberryPiEGLFS seem very nice. Does the host PC need to run linux? Or can it run on Windows? At the moment I have windows 8.1.
    Do you think I can do the cross compiling via a virtual machine ?
    regards
    Sylvain



  • @sylvanoMTL said in Qt for Raspberry pi + cross compiling:

    Does the host PC need to run linux? Or can it run on Windows?

    No, host PC doesn't need Linux and it can run Windows. However, you'll find most of the guides, instructions and tools related to Linux; that is, your trip will be easier with Linux...

    Do you think I can do the cross compiling via a virtual machine ?

    Yes, you can


Log in to reply