| 1 |
# qmake configuration for the Raspberry Pi 3 (32-bit) using the |
| 2 |
# *experimental* VC4 driver for Mesa and DRM. |
| 3 |
# |
| 4 |
# This should allow accelerated EGL and OpenGL with eglfs via |
| 5 |
# KMS/DRM/GBM (instead of the Broadcom-specific backend), under X11 |
| 6 |
# with xcb, and also enables (Qt)Wayland via the standard wayland-egl |
| 7 |
# path. See https://dri.freedesktop.org/wiki/VC4 |
| 8 |
# |
| 9 |
# Note that this is not the same as the default, Broadcom proprietary |
| 10 |
# driver. Some functionality and extensions may therefore be missing, |
| 11 |
# in particular when it comes to accelerated multimedia (video, |
| 12 |
# camera). |
| 13 |
# |
| 14 |
# At the time of writing Raspbian has to be switched explicitly to the |
| 15 |
# experimental VC4 driver. To do this, run raspi-config and enable it |
| 16 |
# in Advanced Options -> GL Driver. |
| 17 |
# |
| 18 |
# Example configure command below. We disable using the GNU gold |
| 19 |
# linker as it apparently has issues with ARMv8. In the configure |
| 20 |
# output check that "EGLFS GBM .......... yes" is present, otherwise |
| 21 |
# eglfs will not be functional. |
| 22 |
# |
| 23 |
# ./configure -release -opengl es2 -device linux-rasp-pi3-vc4-g++ \ |
| 24 |
# -device-option CROSS_COMPILE=~/raspbian/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- \ |
| 25 |
# -sysroot ~/raspbian/sysroot \ |
| 26 |
# -prefix /usr/local/qt5pi -extprefix ~/raspbian/qt5pi -hostprefix ~/raspbian/qt5 \ |
| 27 |
# -v -nomake examples -nomake tests -no-use-gold-linker |
| 28 |
|
| 29 |
include(../common/linux_device_pre.conf) |
| 30 |
|
| 31 |
QMAKE_LIBS_EGL += -lEGL |
| 32 |
QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL |
| 33 |
|
| 34 |
QMAKE_CFLAGS = -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 |
| 35 |
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS |
| 36 |
|
| 37 |
DISTRO_OPTS += hard-float |
| 38 |
DISTRO_OPTS += deb-multi-arch |
| 39 |
|
| 40 |
EGLFS_DEVICE_INTEGRATION = eglfs_kms |
| 41 |
|
| 42 |
include(../common/linux_arm_device_post.conf) |
| 43 |
|
| 44 |
load(qt_config) |