-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.sh
executable file
·215 lines (198 loc) · 4.08 KB
/
setup.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
#!/bin/bash
#For setting up dependencies to use gr-gmuground
sudo apt install -y \
libboost-dev \
libboost-date-time-dev \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-thread-dev \
libboost-regex-dev \
libboost-test-dev \
libboost-all-dev \
swig \
cmake \
build-essential \
pkg-config \
libconfig++-dev \
libgmp-dev \
liborc-0.4-0 \
liborc-0.4-dev \
liborc-0.4-dev-bin \
libjsoncpp-dev \
libpng++-dev \
libvorbis-dev \
git \
ocl-icd-opencl-dev \
opencl-clhpp-headers \
opencl-headers \
libogg-dev \
libvorbis-dev \
xorg-dev \
libglu1-mesa-dev \
libsoapysdr-dev \
libi2c-dev \
libusb-1.0-0-dev \
g++ \
libsqlite3-dev \
libwxgtk3.0-dev \
freeglut3-dev \
python3-pip \
nlohmann-json-dev
if cat /proc/cpuinfo | grep 'vendor' | grep -q 'GenuineIntel'; then
echo "Intel Processor Detected"
sudo add-apt-repository ppa:intel-opencl/intel-opencl
sudo apt-get update
sudo apt-get install intel-opencl-icd
fi
pip3 install requests construct matplotlib
cd ~/
git clone https://github.com/quiet/libfec
cd libfec
./configure
make
sudo make install
sudo ldconfig
cd
#sudo add-apt-repository -y ppa:myriadrf/drivers
#sudo apt-get update
#sudo apt-get install limesuite liblimesuite-dev limesuite-udev limesuite-images
#sudo apt-get install soapysdr-tools soapysdr-module-lms7
#soapysdr-tools use to be called just soapysdr on older packages
#sudo apt-get install soapysdr soapysdr-module-lms7
git clone https://github.com/myriadrf/LimeSuite.git
cd LimeSuite
git checkout stable
mkdir builddir && cd builddir
cmake ../
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd ~/LimeSuite/udev-rules
sudo ./install.sh
cd
#rm -rf gr-limesdr
git clone https://github.com/myriadrf/gr-limesdr
cd gr-limesdr
git checkout gr-3.8
mkdir build
cd build
cmake ..
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd
#rm -rf gr-satnogs
git clone https://gitlab.com/librespacefoundation/satnogs/gr-satnogs.git
cd gr-satnogs
mkdir build
cd build
cmake ..
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd
#rm -rf gr-satellites
#Remove --recursive to not download satellite-recordings
git clone https://github.com/daniestevez/gr-satellites
cd gr-satellites
git checkout next
mkdir build
cd build
cmake ..
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd
rm -rf gr-satellites
git clone --recursive https://github.com/wbarnha/gr-satellites
git checkout maint-3.8
mkdir build
cd build
cmake ..
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd ..
./compile.sh
cd
#rm -rf gr-gpredict-doppler
git clone https://github.com/ghostop14/gr-gpredict-doppler
cd gr-gpredict-doppler
mkdir build
cd build
cmake ..
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd
#rm -rf gr-display
git clone https://github.com/wbarnha/gr-display
cd gr-display
mkdir build
cd build
cmake ..
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd ..
for file in examples/*.grc
do grcc $file
done
cd
git clone https://github.com/glfw/glfw
cd glfw
mkdir build
cd build
cmake ../ -DBUILD_SHARED_LIBS=true
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd
#rm -rf gr-fosphor
git clone git://git.osmocom.org/gr-fosphor
cd gr-fosphor
git checkout -b test 6f3a8de592e181e9ac2e76800e50df427827ba5b
mkdir build
cd build
cmake ..
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd
cd gr-fosphor/lib/fosphor
make LDFLAGS=-L/opt/intel/opencl-1.2-4.5.0.8/lib64
cd
#rm -rf gr-filerepeater
git clone https://github.com/ghostop14/gr-filerepeater
cd gr-filerepeater
git checkout maint-3.8
mkdir build
cd build
cmake ..
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd
#rm -rf gr-guiextra
git clone https://github.com/wbarnha/gr-guiextra
cd gr-guiextra
mkdir build
cd build
cmake ..
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd
cd ~/gr-gmuground
mkdir build
cd build
cmake ../
make -j $(nproc --all)
sudo make install
sudo ldconfig
cd ..
for file in apps/*.grc
do grcc $file
done
cd