-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_ubuntu.sh
executable file
·67 lines (61 loc) · 1.08 KB
/
install_ubuntu.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
#!/bin/bash
# OpenZWave
install_ozw()
{
apt-get install libudev-dev -y
git clone https://github.com/OpenZWave/open-zwave.git
cd open-zwave
make -j`nproc`
make install
cd ..
}
# Poco
install_poco()
{
apt-get install openssl libssl-dev -y
git clone https://github.com/pocoproject/poco.git
cd poco
git checkout poco-1.9.0
mkdir cmake-build
cd cmake-build
cmake ..
make -j`nproc`
sudo make install
cd ..
cd ..
}
# Fitplib
install_fitplib()
{
apt-get install libglib2.0-dev libmosquittopp-dev -y
git clone https://github.com/BeeeOn/fitplib.git
cd fitplib
mkdir build
cd build
cmake ..
make -j2
sudo make install
cd ..
cd ..
}
# Gateway
install_gateway()
{
apt-get install libcppunit-dev libmosquittopp-dev libudev-dev libbluetooth-dev mosquitto mosquitto-clients -y
mosquitto -d
git clone https://github.com/BeeeOn/gateway.git
cd gateway
git submodule init
git submodule update
mkdir cmake-build
cd cmake-build
cmake -DENABLE_ZWAVE=OFF ..
make -j`nproc`
cd ..
cd ..
}
apt-get install git cmake make g++ -y
install_ozw
install_poco
install_fitplib
install_gateway