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