-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathold-install.sh
151 lines (119 loc) · 3.4 KB
/
old-install.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#!/bin/bash
set -m #Set Job Control
echo -e "\n WARNING: Running as root might cause files to be write-protected, use chmod or "chown $(whoami)" to fix \n"
#Get tools
sudo apt-get -y install cmake
sudo apt-get -y install build-essential #Grabs make and other important things
sudo apt-get -y install nodejs #Used in Harrogate, Node.js
sudo apt-get -y install npm #Like PIP but for node.js
#Clear the Workspace
sudo mkdir ../tmp
sudo mv install.sh ../tmp/install.sh
sudo mv download.sh ../tmp/download.sh
sudo mv Docs ../tmp/Docs
sudo rm -r *
sudo mv ../tmp/install.sh install.sh
sudo mv ../tmp/download.sh download.sh
sudo mv ../tmp/Docs Docs
sudo rm -r ../tmp
#Pull from Github
( git clone https://github.com/kipr/Wombat-Firmware && echo -e "Finished Cloning Wombat Firmware \n" && fg ) &
( git clone https://github.com/kipr/libwallaby && echo -e "Finished Cloning Libwallaby! \n" && fg ) &
( git clone https://github.com/kipr/pcompiler && echo -e "Finished Cloning Pcompiler! \n" && fg ) &
( git clone https://github.com/kipr/libkar && echo -e "Finished Cloning Libkar! \n" && fg ) &
( git clone https://github.com/kipr/botui && echo -e "Finished Cloning Botui! \n" && fg ) &
git clone https://github.com/kipr/harrogate && echo -e "Finished Cloning Harrogate! \n" && fg
#Install Libwallaby
echo -e "\n Installing Libwallaby... \n"
cd libwallaby
sudo apt-get -y install libzbar-dev libopencv-dev libjpeg-dev python-dev doxygen swig
mkdir build
cd build
cmake ..
sudo make -j4
sudo make install libwallaby
cd ../..
echo -e "\n Finished Installing Libwallaby! \n"
#Install Pcompiler
echo -e "\n Installing Pcompiler... \n"
cd pcompiler
mkdir build
cd build
cmake ..
sudo make -j4
sudo make install pcompiler
cd ../..
echo -e "\n Finished Installing Pcompiler! \n"
#Install Libkar
echo -e "\n Installing Libkar... \n"
cd libkar
mkdir build
cd build
cmake ..
sudo make -j4
sudo make install libkar
cd ../..
echo -e "\n Finished Installing Libkar! \n"
#Install Botui
echo -e "\n Installing Botui... \n"
cd botui
mkdir build
cd build
cmake ..
sudo make -j4
sudo make install botui
cd ../..
echo -e "\n Finished Installing Botui! \n"
#Install Harrogate Dependancies
echo -e "\n Installing Harrogate Dependancies... \n"
#Node.js Setup
node -v
npm install npm@latest -g
npm -v
#Gulp Setup
npm install --global gulp-cli
#Install npm Dependancies
cd harrogate
npm install
cd ..
#Get Other Requirements
sudo apt-get -y install zliblg-dev libpng-dev libbson-1.0 libboost-all-dev
#Install libaurora
git clone https://github.com/kipr/libaurora
cd libaurora
mkdir build
cd build
cmake ..
sudo make -j4
sudo make install libaurora
cd ../..
#Install Bsonbind
git clone https://github.com/kipr/bsonbind
cd bsonbind
mkdir build
cd build
cmake ..
sudo make -j4
sudo make install bsonbind
cd ../..
#Install Daylight
git clone https://github.com/kipr/daylite
cd daylite
mkdir build
cd build
cmake ..
sudo make -j4
sudo make install daylite
cd ../..
echo -e "\n Finished Installing Harrogate Dependancies! \n"
echo -e "\n Attempting to Install Harrogate... \n"
git clone https://github.com/kipr/harrogate
mv harrogate /home/pi || sudo cp harrogate /home/pi/
echo -e "\n Finished Launching Harrogate! \n"
#Install Qt Creator
sudo apt-get -y install openjdk-8-jre qtcreator
echo
cat instructions.txt
echo -e "\n --------------------------------------------- \n"
echo -e "Your Development Toolkit is Now Complete. \n"
echo -e "--------------------------------------------- \n"