Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt for Raspberry pi + cross compiling

    Mobile and Embedded
    2
    4
    322
    Loading More Posts
    • 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.
    • S
      sylvanoMTL last edited by

      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

      Pablo J. Rogina 1 Reply Last reply Reply Quote 0
      • Pablo J. Rogina
        Pablo J. Rogina @sylvanoMTL last edited by Pablo J. Rogina

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

        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

        S 1 Reply Last reply Reply Quote 1
        • S
          sylvanoMTL @Pablo J. Rogina last edited by

          @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

          Pablo J. Rogina 1 Reply Last reply Reply Quote 0
          • Pablo J. Rogina
            Pablo J. Rogina @sylvanoMTL last edited by

            @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

            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 Reply Quote 0
            • First post
              Last post