-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·70 lines (63 loc) · 1.31 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
#!/usr/bin/env bash
apt-get update
# install folly dependencies
apt-get install -y \
wget \
git \
g++ \
cmake \
libboost-all-dev \
libevent-dev \
libdouble-conversion-dev \
libgoogle-glog-dev \
libgflags-dev \
libiberty-dev \
liblz4-dev \
liblzma-dev \
libsnappy-dev \
make \
zlib1g-dev \
binutils-dev \
libjemalloc-dev \
libssl-dev \
pkg-config \
libunwind-dev \
libunwind8-dev \
libelf-dev \
libdwarf-dev
# install fmt
git clone https://github.com/fmtlib/fmt.git && \
cd fmt && \
mkdir _build && cd _build && \
cmake .. && \
make -j "$(nproc)" && \
make install && \
cd ../..
# install googletest
wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz && \
tar zxf release-1.8.0.tar.gz && \
rm -f release-1.8.0.tar.gz && \
cd googletest-release-1.8.0 && \
mkdir _build && cd _build && \
cmake .. && \
make -j "$(nproc)" && \
make install && \
cd ../..
# install folly
git clone https://github.com/facebook/folly && \
cd folly && \
mkdir _build && cd _build && \
cmake .. && \
make -j "$(nproc)" && \
make install && \
cd .. && \
./build.sh
# install Qt
apt-get install -y \
qt5-default \
qtmultimedia5-dev \
libqt5multimedia5-plugins
# install boost & ZMQ
apt-get install -y \
libboost-all-dev \
libzmq3-dev