-
Notifications
You must be signed in to change notification settings - Fork 2
/
Install_script-pt2.sh
60 lines (49 loc) · 1021 Bytes
/
Install_script-pt2.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
#! /bin/bash
# This script should install and build all needed stuff for
# using the SDRPlay on Ubuntu 16.04 or later. It must be
# run as root.
#
# This is part two.
# Here we build SoapySDR
cd SoapySDR
mkdir build
cd build
cmake ..
make -j4
make install
ldconfig
cd ..
cd ..
# Now we build the SDRPlay module for Soapy
cd SoapySDRPlay
mkdir build
cd build
cmake ..
make
make install
cd ..
cd ..
# And we build SoapyRemote
cd SoapyRemote
mkdir build
cd build
cmake ..
make
make install
cd ..
cd ..
# And finally, we build Cubic. This takes awhile!
cd CubicSDR
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=~/Develop/wxWidgets-staticlib/bin/wx-config
make
make install
cd ..
cd ..
rm -R ~/Develop
# now we change permissions on these root-owned folders so the user can
# delete them at their leisure.
chmod -R 0777 ./*
# And we're done. Cubic should work with the SDRPlay. The user can
# run it from the terminal with CubicSDR or add this command to a menu.