- #INSTALL PYQT5 5.12 INSTALL UPDATE#
- #INSTALL PYQT5 5.12 INSTALL ARCHIVE#
- #INSTALL PYQT5 5.12 INSTALL FULL#
- #INSTALL PYQT5 5.12 INSTALL DOWNLOAD#
You can of course start installation of the build dependecies while you wait. If you are on a Pi 4, then we highly recommend using fast USB 3 storage (HDD or SSD) for both sources and building. This will take around 7-13 minutes on a Raspberry Pi 3+, depending on SD card speed, and even more on an older model, so go grab of coffe again.
#INSTALL PYQT5 5.12 INSTALL ARCHIVE#
Un-tar the source archive in a suitable location, with enough free space ( ~2.8GB).
#INSTALL PYQT5 5.12 INSTALL DOWNLOAD#
Just to make sure the download was succesfull and is what it should be, check the MD5 hash of the archive with: md5sum qt-everywhere-src-5.12.10.tar.xz The package is relatively large, 486MB, so depending on your bandwidth it might take some time to download, grab a coffe or continue with the dependecies while the Qt source archive is downloading. Build Qt for Raspberry Pi Download the Qt 5.12.10 source archiveĭownload the single source tar file from download.qt.io, version 5.12.10. USB3 attached HDD or SSD is also highly recommended. On the new Raspberry Pi 4 models with 2GB or 4GB of memory, swap is not required.
It is highly recommened to enable at least 200MB of swap and also consider adjusting the Raspberry Pi CPU/GPU memory-split for the time of compilation, especially if parallel building or if you are using a model with limited amount of memory.
Some parts take even too much memory and we need to disable building of them. Qt build storage space requirements Itemĭepends on configuration options and enabled featuresĮnable swap and adjust CPU/GPU memory splitĬompiling Qt takes quite a lot of memory, especially if trying to do a parallel build. Running out of disk space after hours of compiling can be extremely annoying, trust me. USB3 attached HDD or SDD is highly recommended on Pi 4 as it speeds up compiling. A minimum of 8GB SD card is highly recommended.
#INSTALL PYQT5 5.12 INSTALL FULL#
The unpacked full Qt sources itself takes around 2.8GB, the build result around 625MB and the installation 155MB. Make sure you have enough disk space free on your on your Pi as building Qt requires a lot of disk space. - Add missing required XCB/X11 packages.
#INSTALL PYQT5 5.12 INSTALL UPDATE#
- Reference to update version 5.12.10, use /opt/Qt/5.12.10 prefix.- Reference to update version 5.12.8, use apt, add section about building webengine.- Fix wrong version leftovers, add Pi 4 platform option.- Use Qt mkspecs for configuration as configure overrides, even if it should work, does not work as documented.Added example Pi model specific CFLAGS & CXXFLAGS. - Removed old fake cross compiled way.- Initial ( beta) version for Qt 5.12 published.Tutorial changelogĪs this tutorial evolves over time, changes are logged here. Anyway, it is also very easy to skip building of modules that you don't need. This tutorial is written for the full source of version 5.12.10, it is fully possible to build only parts using the split up Qt submodule sources packages, but this tutorial will not go into that at this time.
In short it consist of the following steps: You can optionally add X11 and/or Wayland support by installing the required development packages, they are described in the Optional features table below.īuilding Qt on the Raspberry Pi is pretty straightforward, there is one Pi specific configuration that needs to be made. These instructions will build version of Qt that uses the eglfs interface by default and therefore runs applications fullscreen. Note: A Qt 5.15.2 specific tutorial is available here and is highly recommended. Afaik there are no up-to-date backports so the only way to get an up to date version of Qt with board specific features enabled for running on your Raspberry Pi is to build it yourself.Įven if this tutorial concentrates on the Qt 5.12.10 LTS, the Long Time Support release, the guide is tested to work on 5.14 and 5.15 too. Raspberry Pi OS (aka Raspbian), based on Debian Buster, comes with an old version of Qt 5.11 that is already outdated.