-
Notifications
You must be signed in to change notification settings - Fork 2
/
prepare_ubuntu_pluto
executable file
·51 lines (47 loc) · 1.05 KB
/
prepare_ubuntu_pluto
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
sudo apt-get update
sudo apt-get -y install build-essential libxml2-dev bison flex libcdk5-dev cmake libaio-dev libusb-1.0-0-dev libserialport-dev libavahi-client-dev
sudo apt-get -y install libad9361-dev autoconf
# copy prebuild libraries to lib folder
cd /tmp
mkdir -p qo100trx_libraries
cd qo100trx_libraries
if [ ! -d "libiio" ] ; then
git clone https://github.com/dj0abr/libiio.git
cd libiio
else
cd libiio
git pull https://github.com/dj0abr/libiio.git
fi
mkdir -p build
cd build
cmake ../
make -j$(nproc)
sudo make install
cd ..
cd ..
if [ ! -d "libad9361-iio" ] ; then
git clone https://github.com/dj0abr/libad9361-iio
cd libad9361-iio
else
cd libad9361-iio
git pull https://github.com/dj0abr/libad9361-iio
fi
mkdir -p build
cd build
cmake ../
make -j$(nproc)
sudo make install
cd ..
cd ..
if [ ! -d "liquid-dsp" ] ; then
git clone https://github.com/dj0abr/liquid-dsp
cd liquid-dsp
else
cd liquid-dsp
git pull https://github.com/dj0abr/liquid-dsp
fi
./bootstrap.sh
./configure
make -j$(nproc)
sudo make install
cd ..