forked from aymara/lima
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_qt5.sh
executable file
·91 lines (82 loc) · 1.97 KB
/
build_qt5.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# -*- sh-basic-offset: 4 -*-
set -exuo pipefail
BUILD_TARGET=/build
SRC=/src
QT_BRANCH="5.15.2"
MAKE_CORES="$(expr $(nproc) + 2)"
mkdir -p "$BUILD_TARGET"
echo "Building QT version $QT_BRANCH."
# This build process is inspired by
# https://www.tal.org/tutorials/building-qt-512-raspberry-pi
SRC_DIR="/src/qt-everywhere-src-5.15.2"
pushd $BUILD_TARGET
# @TODO: Add in the `-opengl es2` flag for Pi 1 - Pi 3.
# Currently this breaks the QTWebEngine process.
"${SRC_DIR}"/configure \
"${BUILD_ARGS[@]}" \
-platform "linux-g++" \
-confirm-license \
-dbus-linked \
-no-eglfs \
-no-evdev \
-force-pkg-config \
-no-glib \
-make libs \
-no-compile-examples \
-no-cups \
-no-gbm \
-no-gtk \
-no-pch \
-no-use-gold-linker \
-no-xcb \
-no-xcb-xlib \
-nomake examples \
-nomake tests \
-opensource \
-prefix /opt/qt5 \
-qpa eglfs \
-qt-pcre \
-reduce-exports \
-release \
-skip qt3d \
-skip qtactiveqt \
-skip qtandroidextras \
-skip qtcanvas3d \
-skip qtcharts \
-skip qtdatavis3d \
-skip qtgamepad \
-skip qtgraphicaleffects \
-skip qtlocation \
-skip qtlottie \
-skip qtmacextras \
-skip qtpurchasing \
-skip qtquick3d \
-skip qtquickcontrols \
-skip qtquickcontrols2 \
-skip qtquicktimeline \
-skip qtscript \
-skip qtscxml \
-skip qtsensors \
-skip qtserialbus \
-skip qtserialport \
-skip qtspeech \
-skip qttools \
-skip qttranslations \
-skip qtvirtualkeyboard \
-skip qtwayland \
-skip qtwebview \
-skip qtwebengine \
-skip qtwinextras \
-skip qtx11extras \
-skip wayland \
-no-ssl \
-system-freetype \
-system-libjpeg \
-system-libpng \
-system-zlib
# The RAM consumption is proportional to the amount of cores.
# On an 8 core box, the build process will require ~16GB of RAM.
make -j"$MAKE_CORES"
make install