Project

General

Profile

LimeSDR Build From Source » History » Version 1

laforge, 06/13/2018 02:09 PM
import/split from LimeSDR page

1 1 laforge
{{>toc}}
2 1 laforge
3 1 laforge
h1. Building OsmoTRX for LimeSDR from source (using Ubuntu 16.04)
4 1 laforge
5 1 laforge
h2. Install LimeSuite, UHD and SoapyUHD 
6 1 laforge
7 1 laforge
<pre>
8 1 laforge
sudo add-apt-repository -y ppa:myriadrf/drivers
9 1 laforge
sudo apt-get update
10 1 laforge
11 1 laforge
#install core library and build dependencies
12 1 laforge
sudo apt-get install git g++ cmake libsqlite3-dev 
13 1 laforge
14 1 laforge
#install hardware support dependencies
15 1 laforge
sudo apt-get install libsoapysdr-dev libi2c-dev libusb-1.0-0-dev gnuplot
16 1 laforge
17 1 laforge
#install graphics dependencies
18 1 laforge
sudo apt-get install libwxgtk3.0-dev freeglut3-dev
19 1 laforge
</pre>
20 1 laforge
21 1 laforge
h2. Install LimeSuite
22 1 laforge
23 1 laforge
<pre>
24 1 laforge
git clone https://github.com/myriadrf/LimeSuite.git
25 1 laforge
cd LimeSuite
26 1 laforge
mkdir builddir && cd builddir
27 1 laforge
cmake ../
28 1 laforge
make -j4
29 1 laforge
sudo make install
30 1 laforge
sudo ldconfig
31 1 laforge
32 1 laforge
cd LimeSuite/udev-rules
33 1 laforge
sudo sh ./install.sh
34 1 laforge
</pre>
35 1 laforge
36 1 laforge
Type “LimeSuiteGUI” on terminal to check GUI is running
37 1 laforge
38 1 laforge
h2. Install UHD 
39 1 laforge
40 1 laforge
(with all dependencies)
41 1 laforge
42 1 laforge
<pre>
43 1 laforge
sudo apt-get -y install git swig cmake doxygen build-essential libboost-all-dev libtool libusb-1.0-0 libusb-1.0-0-dev libudev-dev libncurses5-dev libfftw3-bin libfftw3-dev libfftw3-doc libcppunit-1.13-0v5 libcppunit-dev libcppunit-doc ncurses-bin cpufrequtils python-numpy python-numpy-doc python-numpy-dbg python-scipy python-docutils qt4-bin-dbg qt4-default qt4-doc libqt4-dev libqt4-dev-bin python-qt4 python-qt4-dbg python-qt4-dev python-qt4-doc python-qt4-doc libqwt6abi1 libfftw3-bin libfftw3-dev libfftw3-doc ncurses-bin libncurses5 libncurses5-dev libncurses5-dbg libfontconfig1-dev libxrender-dev libpulse-dev swig g++ automake autoconf libtool python-dev libfftw3-dev libcppunit-dev libboost-all-dev libusb-dev libusb-1.0-0-dev fort77 libsdl1.2-dev python-wxgtk3.0 git-core libqt4-dev python-numpy ccache python-opengl libgsl-dev python-cheetah python-mako python-lxml doxygen qt4-default qt4-dev-tools libusb-1.0-0-dev libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools python-qwt5-qt4 cmake git-core wget libxi-dev gtk2-engines-pixbuf r-base-dev python-tk liborc-0.4-0 liborc-0.4-dev libasound2-dev python-gtk2 libzmq-dev libzmq1 python-requests python-sphinx libcomedi-dev python-zmq
44 1 laforge
45 1 laforge
git clone https://github.com/EttusResearch/uhd
46 1 laforge
cd uhd
47 1 laforge
48 1 laforge
git tag -l
49 1 laforge
...
50 1 laforge
release_003_009_004
51 1 laforge
release_003_009_005
52 1 laforge
release_003_010_000_000
53 1 laforge
# Example: For UHD 3.10.000.000: 
54 1 laforge
  git checkout release_003_010_000_000 (get the latest if fine)
55 1 laforge
56 1 laforge
cd host
57 1 laforge
mkdir build
58 1 laforge
cd build 
59 1 laforge
cmake ../
60 1 laforge
make
61 1 laforge
sudo make install
62 1 laforge
sudo ldconfig
63 1 laforge
64 1 laforge
export LD_LIBRARY_PATH=/usr/local/lib
65 1 laforge
</pre>
66 1 laforge
67 1 laforge
try run command to find LimeSDR :
68 1 laforge
<pre>
69 1 laforge
uhd_find_devices
70 1 laforge
</pre>
71 1 laforge
72 1 laforge
73 1 laforge
h2. Install SoapySDR and SoapyUHD 
74 1 laforge
75 1 laforge
<pre>
76 1 laforge
git clone https://github.com/pothosware/SoapySDR.git
77 1 laforge
cd SoapySDR
78 1 laforge
mkdir build
79 1 laforge
cd build
80 1 laforge
cmake ..
81 1 laforge
make
82 1 laforge
sudo make install
83 1 laforge
sudo ldconfig
84 1 laforge
85 1 laforge
git clone https://github.com/pothosware/SoapyUHD
86 1 laforge
cd SoapyUHD
87 1 laforge
mkdir build
88 1 laforge
cd build
89 1 laforge
cmake ..
90 1 laforge
make
91 1 laforge
sudo make install
92 1 laforge
sudo ldconfig
93 1 laforge
</pre>
94 1 laforge
95 1 laforge
96 1 laforge
h2. Now build osmo-trx
97 1 laforge
98 1 laforge
<pre>
99 1 laforge
mkdir osmo
100 1 laforge
cd osmo
101 1 laforge
git clone https://github.com/osmocom/libsomocore
102 1 laforge
cd libsomocore
103 1 laforge
autoreconf -fi
104 1 laforge
./configure
105 1 laforge
make -j5
106 1 laforge
sudo make install
107 1 laforge
sudo ldconfig
108 1 laforge
109 1 laforge
mkdir osmo
110 1 laforge
cd osmo
111 1 laforge
git clone https://github.com/osmocom/osmo-trx
112 1 laforge
cd osmo-trx
113 1 laforge
autoreconf -fi
114 1 laforge
./configure
115 1 laforge
make -j5
116 1 laforge
sudo make install
117 1 laforge
sudo ldconfig
118 1 laforge
</pre>
119 1 laforge
120 1 laforge
run on terminal: (test and see its connect with SoapyUHD and UHD)
121 1 laforge
122 1 laforge
<pre>
123 1 laforge
osmo-trx-uhd -C ~/limesdr.cfg
124 1 laforge
</pre>
125 1 laforge
(configuration file attached below)
Add picture from clipboard (Maximum size: 48.8 MB)