summaryrefslogtreecommitdiffstats
path: root/mkspecs/devices/linux-rasp-pi4-aarch64/qmake.conf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/devices/linux-rasp-pi4-aarch64/qmake.conf')
-rw-r--r--mkspecs/devices/linux-rasp-pi4-aarch64/qmake.conf25
1 files changed, 25 insertions, 0 deletions
diff --git a/mkspecs/devices/linux-rasp-pi4-aarch64/qmake.conf b/mkspecs/devices/linux-rasp-pi4-aarch64/qmake.conf
new file mode 100644
index 0000000000..9903775883
--- /dev/null
+++ b/mkspecs/devices/linux-rasp-pi4-aarch64/qmake.conf
@@ -0,0 +1,25 @@
+#
+# Generic qmake configuration for building with g++ on Raspberry Pi 4 (64-bit).
+#
+# Tested with Raspberry Pi OS 64-bit and aarch64 gcc compiler from Debian package repository
+#
+# A minimal configure line could look something like this:
+# ./configure -release -opengl es2 -device linux-rasp-pi4-aarch64 -device-option CROSS_COMPILE=aarch64-linux-gnu- -sysroot ~/rpi-sysroot -prefix /usr/local/qt6 -extprefix $HOME/qt-raspi
+
+DISTRO_OPTS += deb-multi-arch
+
+include(../common/linux_device_pre.conf)
+
+QMAKE_LIBS_EGL += -lEGL
+QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL
+
+QMAKE_CFLAGS += -march=armv8-a
+QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
+
+EGLFS_DEVICE_INTEGRATION = eglfs_kms
+
+LINKER_FLAGS += -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
+
+include(../common/linux_device_post.conf)
+
+load(qt_config)