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. Qt for Raspberry pi + cross compiling

Qt for Raspberry pi + cross compiling

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 639 Views
  • 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 Offline
    S Offline
    sylvanoMTL
    wrote on last edited by
    #1

    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. RoginaP 1 Reply Last reply
    0
    • S sylvanoMTL

      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. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by Pablo J. Rogina
      #2

      @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
      1
      • Pablo J. RoginaP 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)

        S Offline
        S Offline
        sylvanoMTL
        wrote on last edited by
        #3

        @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. RoginaP 1 Reply Last reply
        0
        • S sylvanoMTL

          @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. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

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

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved