Project

General

Profile

LimeSDR Build From Source » History » Version 2

laforge, 06/13/2018 02:13 PM
add disclaimers about binary packages and user-contributed info

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 2 laforge
{{include(cellular-infrastructure:MacroBinaryPackages)}}
6 2 laforge
7 2 laforge
{{include(cellular-infrastructure:Disclaimer-user-content)}}
8 2 laforge
9 1 laforge
h2. Install LimeSuite, UHD and SoapyUHD 
10 1 laforge
11 1 laforge
<pre>
12 1 laforge
sudo add-apt-repository -y ppa:myriadrf/drivers
13 1 laforge
sudo apt-get update
14 1 laforge
15 1 laforge
#install core library and build dependencies
16 1 laforge
sudo apt-get install git g++ cmake libsqlite3-dev 
17 1 laforge
18 1 laforge
#install hardware support dependencies
19 1 laforge
sudo apt-get install libsoapysdr-dev libi2c-dev libusb-1.0-0-dev gnuplot
20 1 laforge
21 1 laforge
#install graphics dependencies
22 1 laforge
sudo apt-get install libwxgtk3.0-dev freeglut3-dev
23 1 laforge
</pre>
24 1 laforge
25 1 laforge
h2. Install LimeSuite
26 1 laforge
27 1 laforge
<pre>
28 1 laforge
git clone https://github.com/myriadrf/LimeSuite.git
29 1 laforge
cd LimeSuite
30 1 laforge
mkdir builddir && cd builddir
31 1 laforge
cmake ../
32 1 laforge
make -j4
33 1 laforge
sudo make install
34 1 laforge
sudo ldconfig
35 1 laforge
36 1 laforge
cd LimeSuite/udev-rules
37 1 laforge
sudo sh ./install.sh
38 1 laforge
</pre>
39 1 laforge
40 1 laforge
Type “LimeSuiteGUI” on terminal to check GUI is running
41 1 laforge
42 1 laforge
h2. Install UHD 
43 1 laforge
44 1 laforge
(with all dependencies)
45 1 laforge
46 1 laforge
<pre>
47 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
48 1 laforge
49 1 laforge
git clone https://github.com/EttusResearch/uhd
50 1 laforge
cd uhd
51 1 laforge
52 1 laforge
git tag -l
53 1 laforge
...
54 1 laforge
release_003_009_004
55 1 laforge
release_003_009_005
56 1 laforge
release_003_010_000_000
57 1 laforge
# Example: For UHD 3.10.000.000: 
58 1 laforge
  git checkout release_003_010_000_000 (get the latest if fine)
59 1 laforge
60 1 laforge
cd host
61 1 laforge
mkdir build
62 1 laforge
cd build 
63 1 laforge
cmake ../
64 1 laforge
make
65 1 laforge
sudo make install
66 1 laforge
sudo ldconfig
67 1 laforge
68 1 laforge
export LD_LIBRARY_PATH=/usr/local/lib
69 1 laforge
</pre>
70 1 laforge
71 1 laforge
try run command to find LimeSDR :
72 1 laforge
<pre>
73 1 laforge
uhd_find_devices
74 1 laforge
</pre>
75 1 laforge
76 1 laforge
77 1 laforge
h2. Install SoapySDR and SoapyUHD 
78 1 laforge
79 1 laforge
<pre>
80 1 laforge
git clone https://github.com/pothosware/SoapySDR.git
81 1 laforge
cd SoapySDR
82 1 laforge
mkdir build
83 1 laforge
cd build
84 1 laforge
cmake ..
85 1 laforge
make
86 1 laforge
sudo make install
87 1 laforge
sudo ldconfig
88 1 laforge
89 1 laforge
git clone https://github.com/pothosware/SoapyUHD
90 1 laforge
cd SoapyUHD
91 1 laforge
mkdir build
92 1 laforge
cd build
93 1 laforge
cmake ..
94 1 laforge
make
95 1 laforge
sudo make install
96 1 laforge
sudo ldconfig
97 1 laforge
</pre>
98 1 laforge
99 1 laforge
100 1 laforge
h2. Now build osmo-trx
101 1 laforge
102 1 laforge
<pre>
103 1 laforge
mkdir osmo
104 1 laforge
cd osmo
105 1 laforge
git clone https://github.com/osmocom/libsomocore
106 1 laforge
cd libsomocore
107 1 laforge
autoreconf -fi
108 1 laforge
./configure
109 1 laforge
make -j5
110 1 laforge
sudo make install
111 1 laforge
sudo ldconfig
112 1 laforge
113 1 laforge
mkdir osmo
114 1 laforge
cd osmo
115 1 laforge
git clone https://github.com/osmocom/osmo-trx
116 1 laforge
cd osmo-trx
117 1 laforge
autoreconf -fi
118 1 laforge
./configure
119 1 laforge
make -j5
120 1 laforge
sudo make install
121 1 laforge
sudo ldconfig
122 1 laforge
</pre>
123 1 laforge
124 1 laforge
run on terminal: (test and see its connect with SoapyUHD and UHD)
125 1 laforge
126 1 laforge
<pre>
127 1 laforge
osmo-trx-uhd -C ~/limesdr.cfg
128 1 laforge
</pre>
129 1 laforge
(configuration file attached below)
Add picture from clipboard (Maximum size: 48.8 MB)