@@ -21,7 +21,7 @@ if [ "$1" == "breakpad" ]; then
21
21
fi
22
22
23
23
if [ " $os_VENDOR " == " Ubuntu" ]; then
24
- ubuntu_ver=${os_RELEASE: 0: 2}
24
+ ubuntu_ver=${os_RELEASE: 0: 2}
25
25
print_title " Build RDM on Ubuntu: $ubuntu_ver "
26
26
27
27
if [ " $ubuntu_ver " == " 12" ]; then
@@ -62,23 +62,29 @@ if [ "$os_VENDOR" == "Ubuntu" ]; then
62
62
dh-make diffutils patch gnupg fakeroot lintian pbuilder git python perl -y
63
63
sudo apt-get build-dep qt5-default -y
64
64
fi
65
-
65
+
66
66
print_title " Check deps"
67
67
sudo apt-get install automake libtool libssl-dev \
68
68
libssh2-1-dev g++ libgl1-mesa-dev -y
69
69
70
70
build_breakpad
71
71
72
72
print_title " Run: source /opt/qt${RDM_QT_VERSION: 0: 2} /bin/qt${RDM_QT_VERSION: 0: 2} -env.sh && qmake && make "
73
- elif [ " $os_VENDOR " == " Fedora" ]; then
74
- print_title " Build RDM on Fedora : $os_RELEASE "
73
+ elif [ " $os_VENDOR " == " Fedora" ] || [[ " $os_VENDOR " == " CentOS " && " $os_RELEASE " -ge " 7 " ]] ; then
74
+ print_title " Build RDM on $os_VENDOR : $os_RELEASE "
75
75
76
76
print_title " Check deps"
77
77
sudo yum install libssh2 libssh2-devel qt5-qtbase qt5-qtsvg-devel \
78
78
qt5-qtdeclarative-devel qt5-qtgraphicaleffects qt5-qtquickcontrols \
79
79
qt5-qttools gcc gcc-c++ libstdc++-static git rsync \
80
80
redhat-rpm-config -y
81
81
82
+ if [[ $? == 1 && " $os_VENDOR " == " CentOS" ]]; then
83
+ # Some of the deps might need to come from Epel, so output a nice message
84
+ print_title " Not all dependencies were found. Ensure you have the epel repo installed and enabled."
85
+ exit
86
+ fi
87
+
82
88
build_breakpad
83
89
84
90
print_title " Run: qmake-qt5 && make "
0 commit comments