Qt on Raspberry Pi

  • 446

I have installed Qt on a Raspberry Pi by downloading the Qt source code and doing a complete build.

If anyone is interested in doing the same, I suggest using a 8GB Raspberry Pi 4. I used a 4GB RPi, and needed a few tweaks to make the installation process run smoothly. Here are my tips, in summary form.

  1. Add several GB of swap space.A 4GB RAM + 2GB swap file wasn’t enough so I jumped straight to 8 GB of swap file and that was fine.
  2. The 32 GB SD card filled up so I put the Qt build directory on an external 64 GB USB memory stick. (I think I tried 32GB and that wasn’t enough.)
  3. CMake. I needed to install this from the source code. The latest official RPi version was older than required by Qt.

The clock in the image above is compiled using my own Qt build, showing the compiler and Qt development environment are working fine.

I have installed Qt on a Raspberry Pi by downloading the Qt source code and doing a complete build. If anyone is interested in doing the same, I suggest using a 8GB Raspberry Pi 4. I used a 4GB RPi, and needed a few tweaks to make the installation process…

I have installed Qt on a Raspberry Pi by downloading the Qt source code and doing a complete build. If anyone is interested in doing the same, I suggest using a 8GB Raspberry Pi 4. I used a 4GB RPi, and needed a few tweaks to make the installation process…

Leave a Reply

Your email address will not be published.