Debian Codegraph @

mkspecs/devices/linux-rasp-pi4-v3d-g++/qmake.conf

raw
1 # qmake configuration for the Raspberry Pi 4 (32-bit) using the Mesa V3D
2 # graphics stack. (not the Broadcom stack)
3 #
4 # This supports accelerated OpenGL both for X11 and DRM/KMS. Perhaps
5 # Wayland too.
6 #
7 # Tested with a sysroot created from Raspbian Buster and a gcc 7.4
8 # toolchain from Linaro.
9 #
10 # Example configure command line, assuming installation to
11 # /usr/local/qt5pi on device and ~/rpi/qt5 on the host:
12 #
13 # ./configure -release -opengl es2 -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE=~/rpi/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \
14 # -sysroot ~/rpi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/rpi/qt5 -v
15 #
16 # Check the configure output carefully. EGLFS, EGLFS GBM, and EGL on X11
17 # should all be 'yes'. Otherwise something is wrong.
18 #
19 # If getting linker errors like "undefined reference to `_dl_stack_flags'" check the
20 # symlinks in the sysroot, they were probably not adjusted
21 # correctly. F.ex. sysroot/usr/lib/arm-linux-gnueabihf/libpthread.so must point to
22 # sysroot/lib/arm-linux-gnueabihf/libpthread.so.0. If it is a broken link instead, bad
23 # things will happen.
24
25 include(../common/linux_device_pre.conf)
26
27 QMAKE_LIBS_EGL += -lEGL
28 QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL
29
30 QMAKE_CFLAGS = -march=armv8-a -mtune=cortex-a72 -mfpu=crypto-neon-fp-armv8
31 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
32
33 DISTRO_OPTS += hard-float
34 DISTRO_OPTS += deb-multi-arch
35
36 EGLFS_DEVICE_INTEGRATION = eglfs_kms
37
38 include(../common/linux_arm_device_post.conf)
39
40 load(qt_config)