Project

General

Profile

LimeSDR Build From Source » History » Revision 3

Revision 2 (laforge, 06/13/2018 02:13 PM) → Revision 3/7 (laforge, 08/17/2018 02:17 PM)

{{>toc}} 

 h1. Building OsmoTRX for LimeSDR from source (using Ubuntu 16.04) 

 This page used to contain instructions on how to {{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 osmo-trx[-uhd] with uhd, soapy-uhd, soapysdr and 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 an Ubuntu 16.04. terminal to check GUI is running 

 Since meanwhile, @osmo-trx-lms@ has been introduced, there is no longer any need for this complex chain of dependency.    With @osmo-trx-lms@, @osmo-trx@ can directly use LimeSuite without any intermediaries such as UHD, SoapyUHD, SoapySDR or 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 like.    If you're interested in the previous instructions for the older versions, please look at the History of this wiki page using the "History" tab above. latest if fine) 

 Also note: cd host 
 mkdir build 
 cd build  
 cmake ../ 
 make 
 sudo make install 
 sudo ldconfig 

 {{include(cellular-infrastructure:MacroBinaryPackages)}} 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)
Add picture from clipboard (Maximum size: 48.8 MB)