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