TalOrg brachte ein in meinen Augen sehr gutes Tutorial heraus, QT für Raspberry unter EGLFS zu erstellen, ich selbst setze derzeit QT 5.15.0 ein:
https://www.tal.org/tutorials/building-qt-512-raspberry-pi
Wichtig – folgende Installationen sind zusätzlich nötig zum Tutorial:
apt-get build-dep qt4-x11
apt-get build-dep libqt5gui5
apt-get install libudev-dev libinput-dev libts-dev libxcb-xinerama0-dev libxcb-xinerama0
Code für QT 5.15.1:wget http://download.qt.io/official_releases/qt/5.15/5.15.1/single/qt-everywhere-src-5.15.1.tar.xz
Konfiguration:
PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \
../qt-everywhere-src-5.15.1/configure -platform linux-rpi3-g++ \
-v \
-opengl es2 -eglfs \
-no-gtk \
-opensource -confirm-license -release \
-reduce-exports \
-force-pkg-config \
-nomake examples -no-compile-examples \
-skip qtwayland \
-skip qtwebengine \
-no-feature-geoservices_mapboxgl \
-qt-pcre \
-no-pch \
-ssl \
-evdev \
-system-freetype \
-fontconfig \
-glib \
-prefix /opt/Qt5.15 \
-qpa eglfs
Swap vergrößern:
Stop the swap
sudo dphys-swapfile swapoff
Modify the size of the swap
As root
, edit the file /etc/dphys-swapfile
and modify the variable CONF_SWAPSIZE
:
CONF_SWAPSIZE=1024
To modify the swap file, edit the variable CONF_SWAPFILE
, and run dphys-swapfile setup
which will create and initialize the file.
Start the swap
sudo dphys-swapfile swapon