forked from hasherezade/pe-bear
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_qt5.sh
More file actions
executable file
·43 lines (36 loc) · 774 Bytes
/
Copy pathbuild_qt5.sh
File metadata and controls
executable file
·43 lines (36 loc) · 774 Bytes
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
#!/bin/bash
echo "Trying to build PE-bear..."
#QT check
QT_VER=$(qmake -v)
str="$QT_VER"
substr="Qt version 5"
echo $QT_VER
if [[ $str == *"$substr"* ]]; then
echo "[+] Qt5 found!"
else
str2=$(whereis qt5)
substr2="/qt5"
if [[ $str2 == *"$substr2"* ]]; then
echo "[+] Qt5 found!"
else
echo "Install Qt5 SDK first"
exit -1
fi
fi
CMAKE_VER=$(cmake --version)
CMAKEV="cmake version"
if echo "$CMAKE_VER" | grep -q "$CMAKEV"; then
echo "[+] CMake found!"
else
echo "[-] CMake NOT found!"
echo "Install cmake first"
exit -1
fi
echo $CMAKE_VER
mkdir build_qt5
echo "[+] build directory created"
cd build_qt5
cmake -DUSE_QT5=ON -DCMAKE_INSTALL_PREFIX:PATH=$(pwd) ..
cmake --build . --target install
make
cd ..