-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathqt5-build.sh
More file actions
executable file
·42 lines (29 loc) · 1.05 KB
/
qt5-build.sh
File metadata and controls
executable file
·42 lines (29 loc) · 1.05 KB
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
#!/bin/bash
set -e
d=`dirname $0`
. $d/common.sh
x11r6_defined=$(echo $PATH | grep "X11R6" || true)
if [ -n "$x11r6_defined" ]; then
die "The path to /usr/X11R6/bin needs to be removed from your PATH"
fi
if [ $device_target = "armel" ]; then
extra_configure_flags="-platform linux-g++-maemo -force-pkg-config"
elif [ $device_target = "xarmel" ]; then
if [ -z "$SYSROOT_DIR" ]; then
die "Need sysroot dir to be set to build Qt with cross-arm target"
fi
extra_configure_flags="-xplatform linux-g++-maemo -force-pkg-config -arch arm -no-pch -sysroot $SYSROOT_DIR -release -separate-debug-info"
fi
cd $qt5_dir
if [ -n "${clean}" ]; then
echo "Cleaning Qt5 directory..."
git submodule foreach git clean -fdx
git clean -fdx
fi
echo "Building Qt5..."
./configure -fast -nomake demos -nomake examples -nomake tests -developer-build -opensource -confirm-license $extra_configure_flags
make $makeargs
cd $shared_dir
echo
echo "Build completed, run the following to use your new Qt build:"
echo "export PATH=$qt5_dir/qtbase/bin:\$PATH"