LimeSDR Build From Source » History » Revision 2
Revision 1 (laforge, 06/13/2018 02:09 PM) → Revision 2/7 (laforge, 06/13/2018 02:13 PM)
{{>toc}}
h1. Building OsmoTRX for LimeSDR from source (using Ubuntu 16.04)
{{include(cellular-infrastructure:MacroBinaryPackages)}}
{{include(cellular-infrastructure:Disclaimer-user-content)}}
h2. Install LimeSuite, UHD and SoapyUHD
<pre>
sudo add-apt-repository -y ppa:myriadrf/drivers
sudo apt-get update
#install core library and build dependencies
sudo apt-get install git g++ cmake libsqlite3-dev
#install hardware support dependencies
sudo apt-get install libsoapysdr-dev libi2c-dev libusb-1.0-0-dev gnuplot
#install graphics dependencies
sudo apt-get install libwxgtk3.0-dev freeglut3-dev
</pre>
h2. Install LimeSuite
<pre>
git clone https://github.com/myriadrf/LimeSuite.git
cd LimeSuite
mkdir builddir && cd builddir
cmake ../
make -j4
sudo make install
sudo ldconfig
cd LimeSuite/udev-rules
sudo sh ./install.sh
</pre>
Type “LimeSuiteGUI” on terminal to check GUI is running
h2. Install UHD
(with all dependencies)
<pre>
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
git clone https://github.com/EttusResearch/uhd
cd uhd
git tag -l
...
release_003_009_004
release_003_009_005
release_003_010_000_000
# Example: For UHD 3.10.000.000:
git checkout release_003_010_000_000 (get the latest if fine)
cd host
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig
export LD_LIBRARY_PATH=/usr/local/lib
</pre>
try run command to find LimeSDR :
<pre>
uhd_find_devices
</pre>
h2. Install SoapySDR and SoapyUHD
<pre>
git clone https://github.com/pothosware/SoapySDR.git
cd SoapySDR
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
git clone https://github.com/pothosware/SoapyUHD
cd SoapyUHD
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
</pre>
h2. Now build osmo-trx
<pre>
mkdir osmo
cd osmo
git clone https://github.com/osmocom/libsomocore
cd libsomocore
autoreconf -fi
./configure
make -j5
sudo make install
sudo ldconfig
mkdir osmo
cd osmo
git clone https://github.com/osmocom/osmo-trx
cd osmo-trx
autoreconf -fi
./configure
make -j5
sudo make install
sudo ldconfig
</pre>
run on terminal: (test and see its connect with SoapyUHD and UHD)
<pre>
osmo-trx-uhd -C ~/limesdr.cfg
</pre>
(configuration file attached below)