forked from hasherezade/pe-bear
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_qt4.sh
More file actions
executable file
·39 lines (34 loc) · 754 Bytes
/
Copy pathbuild_qt4.sh
File metadata and controls
executable file
·39 lines (34 loc) · 754 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
#!/bin/bash
echo "Trying to build PE-bear..."
#QT check
QT_VER=$(qmake -v)
QTV="version"
if echo "$QT_VER" | grep -q "$QTV"; then
QT4_FOUND=$(whereis qt4)
if echo "$QT4_FOUND" | grep -q "lib"; then
echo "[+] Qt4 found!"
else
echo "Install Qt4 SDK first"
exit -2
fi
else
echo "Install Qt4 SDK first"
exit -1
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_qt4
echo "[+] build directory created"
cd build_qt4
cmake -DUSE_QT4=ON -DCMAKE_INSTALL_PREFIX:PATH=$(pwd) ..
cmake --build . --target install
make
cd ..