This repository has been archived by the owner on Mar 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake-qt5.sh
executable file
·75 lines (64 loc) · 1.96 KB
/
make-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
#!/bin/bash
set -e
wget --quiet https://download.qt.io/archive/qt/5.9/5.9.0/single/qt-everywhere-opensource-src-5.9.0.tar.xz -O /tmp/qt-everywhere-opensource-src-5.9.0.tar.xz
tar -xf /tmp/qt-everywhere-opensource-src-5.9.0.tar.xz -C /tmp
# ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=$TOOLCHAIN/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot $ROOTFS -prefix /usr/local/qt5
cd /tmp/qt-everywhere-opensource-src-5.9.0
# ./configure \
# -device linux-jetson-tx1-g++ \
# -device-option CROSS_COMPILE=aarch64-linux-gnu-
# -sysroot $SYSROOT \
# -nomake examples \
# -nomake tests \
# -nomake demos \
# -shared \
# -strip \
# -prefix / \
# -opensource \
# -extprefix $HOME/tx1/qt5 \
# -hostprefix $HOME/tx1/qt5-host \
# -opengl es2
# ./configure -opensource -release --confirm-license -device linux-jetson-tx1-g++ -device-option CROSS_COMPILE=aarch64-linux-gnu- -sysroot $SYSROOT -nomake examples -nomake tests -prefix /usr/local/qt5
# -hostprefix /usr -opengl es2 -L /usr/lib/aarch64-linux-gnu -skip webkit -skip webview -skip webkit-examples
# -extprefix //home/<USERNAME>/64_TX2/qt5
./configure -opensource \
-release \
--confirm-license \
-prefix /usr \
-device linux-jetson-tx1-g++ \
-device-option CROSS_COMPILE=${TRIPLET}- \
-sysroot $SYSROOT \
-no-tslib \
-no-sql-sqlite \
-no-d3d12 \
-qt-libpng \
-qt-libjpeg \
-qt-zlib \
-qt-freetype \
-qt-xkbcommon-x11 \
-qt-xcb \
-qt-freetype \
-qt-pcre \
-qt-harfbuzz \
-make libs \
-skip multimedia \
-skip wayland \
-skip winextras \
-skip webchannel \
-skip webengine \
-skip websockets \
-skip webkit \
-skip webview \
-skip webkit-examples \
-skip location \
-skip sensors \
-skip qt3d \
-skip gamepad \
-skip qtconnectivity \
-nomake examples \
-nomake tests \
-nomake tools
make -j$(nproc)
make install
cd /
rm -rf /tmp/*