├── Makefile ├── README.md ├── build └── build-mkspecs-linux-rpi-g++.sh ├── common └── raspberrypi.conf ├── linux-rpi-g++ ├── qmake.conf └── qplatformdefs.h ├── linux-rpi-vc4-g++ ├── qmake.conf └── qplatformdefs.h ├── linux-rpi2-g++ ├── qmake.conf └── qplatformdefs.h ├── linux-rpi2-vc4-g++ ├── qmake.conf └── qplatformdefs.h ├── linux-rpi3-g++ ├── qmake.conf └── qplatformdefs.h ├── linux-rpi4-v3d-g++ ├── qmake.conf └── qplatformdefs.h └── linux-rpi64-vc4-g++ ├── qmake.conf └── qplatformdefs.h /Makefile: -------------------------------------------------------------------------------- 1 | QTVERSION=5.15.17 2 | PREFIX=/opt/Qt/$(QTVERSION) 3 | DESTDIR=../qt-everywhere-src-$(QTVERSION) 4 | MKSPECS=qtbase/mkspecs 5 | 6 | XCB=0 7 | GTK=0 8 | QTWAYLAND=0 9 | QTWEBENGINE=0 10 | QTSCRIPT=0 11 | MAPBOXGL=0 12 | SCTP=0 13 | 14 | PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig 15 | export PKG_CONFIG_LIBDIR 16 | 17 | QT_CONFIG_COMMON:=-v \ 18 | -prefix $(PREFIX) \ 19 | -opengl es2 -eglfs \ 20 | -opensource -confirm-license -release \ 21 | -reduce-exports \ 22 | -force-pkg-config \ 23 | -nomake examples -no-compile-examples -nomake tests \ 24 | -skip qtscript \ 25 | -no-pch \ 26 | -no-feature-geoservices_mapboxgl \ 27 | -qt-pcre \ 28 | -ssl \ 29 | -evdev \ 30 | -system-freetype \ 31 | -fontconfig \ 32 | -glib \ 33 | -recheck \ 34 | -qpa eglfs 35 | 36 | ifeq ($(XCB), 1) 37 | QT_CONFIG_COMMON+=-xcb -xcb-xlib 38 | else 39 | QT_CONFIG_COMMON+=-no-xcb 40 | endif 41 | 42 | ifeq ($(SCTP), 1) 43 | QT_CONFIG_COMMON+=-sctp 44 | endif 45 | 46 | ifeq ($(GTK), 1) 47 | QT_CONFIG_COMMON+=-gtk 48 | else 49 | QT_CONFIG_COMMON+=-no-gtk 50 | endif 51 | 52 | ifneq ($(QTWAYLAND), 1) 53 | QT_CONFIG_COMMON+=-skip qtwayland 54 | endif 55 | 56 | ifneq ($(QTWEBENGINE), 1) 57 | QT_CONFIG_COMMON+=-skip qtwebengine 58 | endif 59 | 60 | ifneq ($(QTSCRIPT), 1) 61 | QT_CONFIG_COMMON+=-skip qtscript 62 | endif 63 | 64 | QT_CONFIG_ARMV6:=-platform linux-rpi-g++ $(QT_CONFIG_COMMON) 65 | 66 | QT_CONFIG_ARMV7:=-platform linux-rpi2-g++ $(QT_CONFIG_COMMON) 67 | 68 | QT_CONFIG_ARMV8:=-platform linux-rpi3-g++ $(QT_CONFIG_COMMON) 69 | 70 | QT_CONFIG_ARMV7_VC4:=-platform linux-rpi2-vc4-g++ $(QT_CONFIG_COMMON) -feature kms 71 | 72 | QT_CONFIG_ARMV8_VC4:=-platform linux-rpi4-v3d-g++ $(QT_CONFIG_COMMON) -feature kms 73 | 74 | QT_CONFIG_ARMV8_64:=-platform linux-rpi64-vc4-g++ $(QT_CONFIG_COMMON) -feature-kms 75 | 76 | all: 77 | @echo "Run: make install DESTDIR=qt-source-root" 78 | @echo "DESTDIR defaults to: [$(DESTDIR)]" 79 | 80 | install: mkspecs 81 | 82 | mkspecs: 83 | install -m 644 common/raspberrypi.conf $(DESTDIR)/$(MKSPECS)/common 84 | cp -a linux-rpi2-g++ linux-rpi3-g++ linux-rpi-g++ linux-rpi2-vc4-g++ linux-rpi4-v3d-g++ linux-rpi64-vc4-g++ $(DESTDIR)/$(MKSPECS)/ 85 | 86 | diff: diff-common diff-linux-rpi-g++ diff-linux-rpi2-g++ diff-linux-rpi3-g++ diff-linux-rpi4-v3d-g++ 87 | 88 | diff-common: 89 | diff -u common/raspberrypi.conf $(DESTDIR)/qtbase/mkspecs/common/raspberrypi.conf 90 | 91 | diff-%: 92 | diff -u -r $* $(DESTDIR)/qtbase/mkspecs/$* 93 | 94 | configure-rpi: configure-armv6 95 | 96 | configure-rpi1: configure-armv6 97 | 98 | configure-rpi2: configure-armv7 99 | 100 | configure-rpi2-vc4: configure-armv7-vc4 101 | 102 | configure-rpi3: configure-armv8 103 | 104 | configure-rpi4: configure-armv8-vc4 105 | 106 | configure-rpi4-vc4: configure-armv8-vc4 107 | 108 | configure-rpi64: configure-armv8-64 109 | 110 | configure-armv6: mkspecs 111 | mkdir -p ../build-qt-armv6 && cd ../build-qt-armv6 && $(DESTDIR)/configure $(QT_CONFIG_ARMV6) 112 | 113 | configure-armv7: mkspecs 114 | mkdir -p ../build-qt-armv7 && cd ../build-qt-armv7 && $(DESTDIR)/configure $(QT_CONFIG_ARMV7) 115 | 116 | configure-armv7-vc4: mkspecs 117 | mkdir -p ../build-qt-armv7-vc4 && cd ../build-qt-armv7-vc4 && $(DESTDIR)/configure $(QT_CONFIG_ARMV7_VC4) 118 | 119 | configure-armv8: mkspecs 120 | mkdir -p ../build-qt-armv8 && cd ../build-qt-armv8 && $(DESTDIR)/configure $(QT_CONFIG_ARMV8) 121 | 122 | configure-armv8-vc4: mkspecs 123 | mkdir -p ../build-qt-armv8-vc4 && cd ../build-qt-armv8-vc4 && $(DESTDIR)/configure $(QT_CONFIG_ARMV8_VC4) 124 | 125 | configure-armv8-64: mkspecs 126 | mkdir -p ../build-qt-armv8-64 && cd ../build-qt-armv8-64 && $(DESTDIR)/configure $(QT_CONFIG_ARMV8_64) 127 | 128 | build-armv6: configure-armv6 129 | make -C ../build-qt-armv6 -j4 130 | 131 | build-armv7: configure-armv7 132 | make -C ../build-qt-armv7 -j4 133 | 134 | build-armv7-vc4: configure-armv7-vc4 135 | make -C ../build-qt-armv7-vc4 -j4 136 | 137 | build-armv8: configure-armv8 138 | make -C ../build-qt-armv8 -j4 139 | 140 | build-armv8-vc4: configure-armv8-vc4 141 | make -C ../build-qt-armv8-vc4 -j4 142 | 143 | build-armv8-64: configure-armv8-64 144 | make -C ../build-qt-armv8-64 -j4 145 | 146 | install-all-depends: install-base-depends install-alsa-depends install-x11-depends install-wayland-depends install-vc4-depends install-pulseaudio-depends install-gstreamer-depends 147 | 148 | install-base-depends: 149 | apt install build-essential libfontconfig1-dev libdbus-1-dev libfreetype6-dev libicu-dev libinput-dev libxkbcommon-dev libsqlite3-dev libssl-dev libpng-dev libwebp-dev libjpeg-dev libglib2.0-dev libraspberrypi-dev -y 150 | 151 | install-alsa-depends: 152 | apt install libasound2-dev -y 153 | 154 | install-x11-depends: 155 | apt install libx11-dev libxcb1-dev libxext-dev libxi-dev libxcomposite-dev libxcursor-dev libxtst-dev libxrandr-dev libfontconfig1-dev libfreetype6-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-util0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev -y 156 | 157 | install-wayland-depends: 158 | apt install libwayland-dev -y 159 | 160 | install-vc4-depends: 161 | apt install libgles2-mesa-dev libgbm-dev -y 162 | 163 | install-db-depends: 164 | apt install libpq-dev libmariadbclient-dev -y 165 | 166 | install-pulseaudio-depends: 167 | apt install pulseaudio libpulse-dev -y 168 | 169 | install-gstreamer-depends: 170 | apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-dev gstreamer1.0-pulseaudio gstreamer1.0-tools gstreamer1.0-alsa 171 | 172 | install-vc4-depends: 173 | apt install libgles2-mesa-dev libgbm-dev -y 174 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Qt 5.15.17 mkspecs configuration files for building Qt 5.15 on a Raspberry Pi. 2 | 3 | * Common GL library configuration is in common/raspberrypi.conf 4 | * Model specific CFLAGS are set in linux-rpi2-g++, linux-rpi3-g++ and linux-rpi-g++ 5 | * Configuration helpers for armv6, armv7 and armv8 configurations 6 | 7 | Select a suitable configuration with -platform parameter to Qt configure. 8 | For detailed instructions on how to build Qt 5.15.17 for a Raspberry Pi see 9 | 10 | * https://www.tal.org/tutorials/building-qt-515-raspberry-pi 11 | 12 | You can download Qt 5.15.17 sources from: 13 | 14 | * https://download.qt.io/official_releases/qt/5.15/5.15.17/single/ 15 | -------------------------------------------------------------------------------- /build/build-mkspecs-linux-rpi-g++.sh: -------------------------------------------------------------------------------- 1 | PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \ 2 | ../qt-everywhere-src-5.12.10/configure \ 3 | -platform linux-rpi-g++ \ 4 | -v -optimized-tools \ 5 | -opengl es2 -eglfs \ 6 | -no-gtk \ 7 | -opensource -confirm-license -release \ 8 | -reduce-exports \ 9 | -force-pkg-config \ 10 | -nomake examples -no-compile-examples \ 11 | -skip qtwayland \ 12 | -skip qtwebengine \ 13 | -skip qtscript \ 14 | -no-feature-geoservices_mapboxgl \ 15 | -qt-pcre \ 16 | -no-pch \ 17 | -ssl \ 18 | -evdev \ 19 | -system-freetype \ 20 | -fontconfig \ 21 | -glib \ 22 | -sctp \ 23 | -prefix /opt/Qt5.12 \ 24 | -recheck-all \ 25 | -qpa eglfs 26 | -------------------------------------------------------------------------------- /common/raspberrypi.conf: -------------------------------------------------------------------------------- 1 | # 2 | # GL configuration common to all Raspberry Pi 3 | # 4 | 5 | include(../linux-g++/qmake.conf) 6 | 7 | QMAKE_LIBDIR_OPENGL_ES2 = /opt/vc/lib 8 | QMAKE_LIBDIR_EGL = $$QMAKE_LIBDIR_OPENGL_ES2 9 | QMAKE_LIBDIR_OPENVG = $$QMAKE_LIBDIR_OPENGL_ES2 10 | QMAKE_LIBDIR_BCM_HOST = $$QMAKE_LIBDIR_OPENGL_ES2 11 | 12 | QMAKE_INCDIR_EGL = /opt/vc/include \ 13 | /opt/vc/include/interface/vcos/pthreads \ 14 | /opt/vc/include/interface/vmcs_host/linux 15 | QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL} 16 | QMAKE_INCDIR_OPENVG = $${QMAKE_INCDIR_EGL} 17 | QMAKE_INCDIR_BCM_HOST = /opt/vc/include 18 | 19 | QMAKE_LIBS_EGL = -lbrcmEGL -lbrcmGLESv2 20 | QMAKE_LIBS_OPENVG = -lbrcmEGL -lbrcmOpenVG -lbrcmGLESv2 21 | QMAKE_LIBS_OPENGL_ES2 = -lbrcmGLESv2 -lbrcmEGL 22 | QMAKE_LIBS_BCM_HOST = -lbcm_host 23 | 24 | EGLFS_DEVICE_INTEGRATION = eglfs_brcm 25 | -------------------------------------------------------------------------------- /linux-rpi-g++/qmake.conf: -------------------------------------------------------------------------------- 1 | include(../common/raspberrypi.conf) 2 | 3 | QMAKE_CFLAGS += -mfloat-abi=hard -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk 4 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS 5 | 6 | load(qt_config) 7 | -------------------------------------------------------------------------------- /linux-rpi-g++/qplatformdefs.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2016 The Qt Company Ltd. 4 | ** Contact: https://www.qt.io/licensing/ 5 | ** 6 | ** This file is part of the qmake spec of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:LGPL$ 9 | ** Commercial License Usage 10 | ** Licensees holding valid commercial Qt licenses may use this file in 11 | ** accordance with the commercial license agreement provided with the 12 | ** Software or, alternatively, in accordance with the terms contained in 13 | ** a written agreement between you and The Qt Company. For licensing terms 14 | ** and conditions see https://www.qt.io/terms-conditions. For further 15 | ** information use the contact form at https://www.qt.io/contact-us. 16 | ** 17 | ** GNU Lesser General Public License Usage 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser 19 | ** General Public License version 3 as published by the Free Software 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the 21 | ** packaging of this file. Please review the following information to 22 | ** ensure the GNU Lesser General Public License version 3 requirements 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 24 | ** 25 | ** GNU General Public License Usage 26 | ** Alternatively, this file may be used under the terms of the GNU 27 | ** General Public License version 2.0 or (at your option) the GNU General 28 | ** Public license version 3 or any later version approved by the KDE Free 29 | ** Qt Foundation. The licenses are as published by the Free Software 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 31 | ** included in the packaging of this file. Please review the following 32 | ** information to ensure the GNU General Public License requirements will 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. 35 | ** 36 | ** $QT_END_LICENSE$ 37 | ** 38 | ****************************************************************************/ 39 | 40 | #include "../linux-g++/qplatformdefs.h" 41 | -------------------------------------------------------------------------------- /linux-rpi-vc4-g++/qmake.conf: -------------------------------------------------------------------------------- 1 | # qmake configuration for the Raspberry Pi (32-bit) using the 2 | # *experimental* VC4 driver for Mesa and DRM. 3 | # 4 | # Adapted for native build from device mkspecs 5 | # 6 | 7 | include(../linux-g++/qmake.conf) 8 | 9 | QMAKE_LIBS_EGL += -lEGL 10 | QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL 11 | 12 | QMAKE_CFLAGS += -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk 13 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS 14 | 15 | EGLFS_DEVICE_INTEGRATION = eglfs_kms 16 | 17 | load(qt_config) 18 | -------------------------------------------------------------------------------- /linux-rpi-vc4-g++/qplatformdefs.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2017 The Qt Company Ltd. 4 | ** Contact: https://www.qt.io/licensing/ 5 | ** 6 | ** This file is part of the qmake spec of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:LGPL$ 9 | ** Commercial License Usage 10 | ** Licensees holding valid commercial Qt licenses may use this file in 11 | ** accordance with the commercial license agreement provided with the 12 | ** Software or, alternatively, in accordance with the terms contained in 13 | ** a written agreement between you and The Qt Company. For licensing terms 14 | ** and conditions see https://www.qt.io/terms-conditions. For further 15 | ** information use the contact form at https://www.qt.io/contact-us. 16 | ** 17 | ** GNU Lesser General Public License Usage 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser 19 | ** General Public License version 3 as published by the Free Software 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the 21 | ** packaging of this file. Please review the following information to 22 | ** ensure the GNU Lesser General Public License version 3 requirements 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 24 | ** 25 | ** GNU General Public License Usage 26 | ** Alternatively, this file may be used under the terms of the GNU 27 | ** General Public License version 2.0 or (at your option) the GNU General 28 | ** Public license version 3 or any later version approved by the KDE Free 29 | ** Qt Foundation. The licenses are as published by the Free Software 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 31 | ** included in the packaging of this file. Please review the following 32 | ** information to ensure the GNU General Public License requirements will 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. 35 | ** 36 | ** $QT_END_LICENSE$ 37 | ** 38 | ****************************************************************************/ 39 | 40 | #include "../linux-g++/qplatformdefs.h" 41 | -------------------------------------------------------------------------------- /linux-rpi2-g++/qmake.conf: -------------------------------------------------------------------------------- 1 | include(../common/raspberrypi.conf) 2 | 3 | QMAKE_CFLAGS += -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 4 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS 5 | 6 | load(qt_config) 7 | -------------------------------------------------------------------------------- /linux-rpi2-g++/qplatformdefs.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2016 The Qt Company Ltd. 4 | ** Contact: https://www.qt.io/licensing/ 5 | ** 6 | ** This file is part of the qmake spec of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:LGPL$ 9 | ** Commercial License Usage 10 | ** Licensees holding valid commercial Qt licenses may use this file in 11 | ** accordance with the commercial license agreement provided with the 12 | ** Software or, alternatively, in accordance with the terms contained in 13 | ** a written agreement between you and The Qt Company. For licensing terms 14 | ** and conditions see https://www.qt.io/terms-conditions. For further 15 | ** information use the contact form at https://www.qt.io/contact-us. 16 | ** 17 | ** GNU Lesser General Public License Usage 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser 19 | ** General Public License version 3 as published by the Free Software 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the 21 | ** packaging of this file. Please review the following information to 22 | ** ensure the GNU Lesser General Public License version 3 requirements 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 24 | ** 25 | ** GNU General Public License Usage 26 | ** Alternatively, this file may be used under the terms of the GNU 27 | ** General Public License version 2.0 or (at your option) the GNU General 28 | ** Public license version 3 or any later version approved by the KDE Free 29 | ** Qt Foundation. The licenses are as published by the Free Software 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 31 | ** included in the packaging of this file. Please review the following 32 | ** information to ensure the GNU General Public License requirements will 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. 35 | ** 36 | ** $QT_END_LICENSE$ 37 | ** 38 | ****************************************************************************/ 39 | 40 | #include "../linux-g++/qplatformdefs.h" 41 | -------------------------------------------------------------------------------- /linux-rpi2-vc4-g++/qmake.conf: -------------------------------------------------------------------------------- 1 | # qmake configuration for the Raspberry Pi 3 (32-bit) using the 2 | # *experimental* VC4 driver for Mesa and DRM. 3 | # 4 | # Adapted for native build from device mkspecs 5 | # 6 | 7 | include(../linux-g++/qmake.conf) 8 | 9 | QMAKE_LIBS_EGL += -lEGL 10 | QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL 11 | 12 | QMAKE_CFLAGS += -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 13 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS 14 | 15 | EGLFS_DEVICE_INTEGRATION = eglfs_kms 16 | 17 | load(qt_config) 18 | -------------------------------------------------------------------------------- /linux-rpi2-vc4-g++/qplatformdefs.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2017 The Qt Company Ltd. 4 | ** Contact: https://www.qt.io/licensing/ 5 | ** 6 | ** This file is part of the qmake spec of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:LGPL$ 9 | ** Commercial License Usage 10 | ** Licensees holding valid commercial Qt licenses may use this file in 11 | ** accordance with the commercial license agreement provided with the 12 | ** Software or, alternatively, in accordance with the terms contained in 13 | ** a written agreement between you and The Qt Company. For licensing terms 14 | ** and conditions see https://www.qt.io/terms-conditions. For further 15 | ** information use the contact form at https://www.qt.io/contact-us. 16 | ** 17 | ** GNU Lesser General Public License Usage 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser 19 | ** General Public License version 3 as published by the Free Software 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the 21 | ** packaging of this file. Please review the following information to 22 | ** ensure the GNU Lesser General Public License version 3 requirements 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 24 | ** 25 | ** GNU General Public License Usage 26 | ** Alternatively, this file may be used under the terms of the GNU 27 | ** General Public License version 2.0 or (at your option) the GNU General 28 | ** Public license version 3 or any later version approved by the KDE Free 29 | ** Qt Foundation. The licenses are as published by the Free Software 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 31 | ** included in the packaging of this file. Please review the following 32 | ** information to ensure the GNU General Public License requirements will 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. 35 | ** 36 | ** $QT_END_LICENSE$ 37 | ** 38 | ****************************************************************************/ 39 | 40 | #include "../linux-g++/qplatformdefs.h" 41 | -------------------------------------------------------------------------------- /linux-rpi3-g++/qmake.conf: -------------------------------------------------------------------------------- 1 | include(../common/raspberrypi.conf) 2 | 3 | QMAKE_CFLAGS += -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 4 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS 5 | 6 | load(qt_config) 7 | -------------------------------------------------------------------------------- /linux-rpi3-g++/qplatformdefs.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2016 The Qt Company Ltd. 4 | ** Contact: https://www.qt.io/licensing/ 5 | ** 6 | ** This file is part of the qmake spec of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:LGPL$ 9 | ** Commercial License Usage 10 | ** Licensees holding valid commercial Qt licenses may use this file in 11 | ** accordance with the commercial license agreement provided with the 12 | ** Software or, alternatively, in accordance with the terms contained in 13 | ** a written agreement between you and The Qt Company. For licensing terms 14 | ** and conditions see https://www.qt.io/terms-conditions. For further 15 | ** information use the contact form at https://www.qt.io/contact-us. 16 | ** 17 | ** GNU Lesser General Public License Usage 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser 19 | ** General Public License version 3 as published by the Free Software 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the 21 | ** packaging of this file. Please review the following information to 22 | ** ensure the GNU Lesser General Public License version 3 requirements 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 24 | ** 25 | ** GNU General Public License Usage 26 | ** Alternatively, this file may be used under the terms of the GNU 27 | ** General Public License version 2.0 or (at your option) the GNU General 28 | ** Public license version 3 or any later version approved by the KDE Free 29 | ** Qt Foundation. The licenses are as published by the Free Software 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 31 | ** included in the packaging of this file. Please review the following 32 | ** information to ensure the GNU General Public License requirements will 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. 35 | ** 36 | ** $QT_END_LICENSE$ 37 | ** 38 | ****************************************************************************/ 39 | 40 | #include "../linux-g++/qplatformdefs.h" 41 | -------------------------------------------------------------------------------- /linux-rpi4-v3d-g++/qmake.conf: -------------------------------------------------------------------------------- 1 | # qmake configuration for the Raspberry Pi 4 (32-bit) using the 2 | # Mesa and DRM stack. 3 | # 4 | # Adapted for native build from device mkspecs 5 | # 6 | 7 | include(../linux-g++/qmake.conf) 8 | 9 | QMAKE_LIBS_EGL += -lEGL 10 | QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL 11 | 12 | # QMAKE_CFLAGS = -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 13 | QMAKE_CFLAGS += -march=armv8-a -mtune=cortex-a72 -mfpu=crypto-neon-fp-armv8 14 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS 15 | 16 | EGLFS_DEVICE_INTEGRATION = eglfs_kms 17 | 18 | load(qt_config) 19 | -------------------------------------------------------------------------------- /linux-rpi4-v3d-g++/qplatformdefs.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2017 The Qt Company Ltd. 4 | ** Contact: https://www.qt.io/licensing/ 5 | ** 6 | ** This file is part of the qmake spec of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:LGPL$ 9 | ** Commercial License Usage 10 | ** Licensees holding valid commercial Qt licenses may use this file in 11 | ** accordance with the commercial license agreement provided with the 12 | ** Software or, alternatively, in accordance with the terms contained in 13 | ** a written agreement between you and The Qt Company. For licensing terms 14 | ** and conditions see https://www.qt.io/terms-conditions. For further 15 | ** information use the contact form at https://www.qt.io/contact-us. 16 | ** 17 | ** GNU Lesser General Public License Usage 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser 19 | ** General Public License version 3 as published by the Free Software 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the 21 | ** packaging of this file. Please review the following information to 22 | ** ensure the GNU Lesser General Public License version 3 requirements 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 24 | ** 25 | ** GNU General Public License Usage 26 | ** Alternatively, this file may be used under the terms of the GNU 27 | ** General Public License version 2.0 or (at your option) the GNU General 28 | ** Public license version 3 or any later version approved by the KDE Free 29 | ** Qt Foundation. The licenses are as published by the Free Software 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 31 | ** included in the packaging of this file. Please review the following 32 | ** information to ensure the GNU General Public License requirements will 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. 35 | ** 36 | ** $QT_END_LICENSE$ 37 | ** 38 | ****************************************************************************/ 39 | 40 | #include "../linux-g++/qplatformdefs.h" 41 | -------------------------------------------------------------------------------- /linux-rpi64-vc4-g++/qmake.conf: -------------------------------------------------------------------------------- 1 | # qmake configuration for the Raspberry Pi 4 (64-bit) using the Mesa and DRM stack. 2 | # 3 | # Adapted for native build from device mkspecs 4 | # 5 | 6 | include(../linux-g++/qmake.conf) 7 | 8 | QMAKE_LIBS_EGL += -lEGL 9 | QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL 10 | 11 | QMAKE_CFLAGS += -march=armv8-a -mtune=cortex-a72 12 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS 13 | 14 | EGLFS_DEVICE_INTEGRATION = eglfs_kms 15 | 16 | load(qt_config) 17 | -------------------------------------------------------------------------------- /linux-rpi64-vc4-g++/qplatformdefs.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2017 The Qt Company Ltd. 4 | ** Contact: https://www.qt.io/licensing/ 5 | ** 6 | ** This file is part of the qmake spec of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:LGPL$ 9 | ** Commercial License Usage 10 | ** Licensees holding valid commercial Qt licenses may use this file in 11 | ** accordance with the commercial license agreement provided with the 12 | ** Software or, alternatively, in accordance with the terms contained in 13 | ** a written agreement between you and The Qt Company. For licensing terms 14 | ** and conditions see https://www.qt.io/terms-conditions. For further 15 | ** information use the contact form at https://www.qt.io/contact-us. 16 | ** 17 | ** GNU Lesser General Public License Usage 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser 19 | ** General Public License version 3 as published by the Free Software 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the 21 | ** packaging of this file. Please review the following information to 22 | ** ensure the GNU Lesser General Public License version 3 requirements 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 24 | ** 25 | ** GNU General Public License Usage 26 | ** Alternatively, this file may be used under the terms of the GNU 27 | ** General Public License version 2.0 or (at your option) the GNU General 28 | ** Public license version 3 or any later version approved by the KDE Free 29 | ** Qt Foundation. The licenses are as published by the Free Software 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 31 | ** included in the packaging of this file. Please review the following 32 | ** information to ensure the GNU General Public License requirements will 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. 35 | ** 36 | ** $QT_END_LICENSE$ 37 | ** 38 | ****************************************************************************/ 39 | 40 | #include "../linux-g++/qplatformdefs.h" 41 | --------------------------------------------------------------------------------