-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.sh
executable file
·83 lines (42 loc) · 1.4 KB
/
build.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
76
77
78
79
80
81
82
83
# INSTALL QT5
sudo apt-get install build-essential
sudo apt-get install qt5-default
# SETUP ENVIRONMENT VARIABLES
echo "export PYTHON3_LIB_LOCATION=python3.8
export PYTHON3_INC_LOCATION=/usr/include/python3.8/
export ANTLR_LIB_LOCATION=ANTLR4runtime/run/usr/local/lib/libantlr4-runtime.so.4.8
export ANTLR_INC_LOCATION=ANTLR4runtime/run/usr/local/include/antlr4-runtime/
export QTERMWIDGET_LIB_LOCATION=qtermwidget/run/usr/local/lib/libqtermwidget5.so
export QTERMWIDGET_INC_LOCATION=qtermwidget/run/usr/local/include/qtermwidget5/" >> ~/.bashrc
. ~/.bashrc
# FETCH SUBMODULES
git submodule update --init --recursive
# SETUP ANTLR
sudo apt update
sudo apt install uuid-dev
cd ANTLR4runtime
rm -rf build && rm -rf run
mkdir build && mkdir run && cd build
cmake ..
DESTDIR=../run make install
# # SETUP LXQT-BUILD-TOOLS
sudo apt-get install libglib2.0-dev
cd ../../lxqt-build-tools
rm -rf build && rm -rf run
mkdir build && mkdir run && cd build
cmake ..
DESTDIR=../run make install
# SETUP QTERMWIDGET
sudo apt-get install qttools5-dev
cd ../../qtermwidget
sudo rm -rf build && sudo rm -rf run
mkdir build && mkdir run && cd build
cmake .. -DCMAKE_PREFIX_PATH=$PWD/../../lxqt-build-tools/run/usr/local/share/cmake/lxqt-build-tools
sudo DESTDIR=../run make install
# SETUP EXPRESSPYTHON
cd ../../
rm -rf build && rm -rf run
mkdir build && mkdir run && cd build
cmake ..
cmake --build .
cpack