ubuntu18.04安装soapySDR srsLTE limeSDR出错与解决

  1. 添加PPA源
    sudo add-apt-repository -y ppa:bladerf/bladerf
    sudo add-apt-repository -y ppa:ettusresearch/uhd
    sudo add-apt-repository -y ppa:myriadrf/drivers
    sudo add-apt-repository -y ppa:myriadrf/gnuradio
    sudo add-apt-repository -y ppa:pothosware/framework
    sudo add-apt-repository -y ppa:pothosware/support
    sudo add-apt-repository -y ppa:ettusresearch/uhd
    sudo apt-get update

  2. Lime Suite

sudo apt-get install -y limesuite liblimesuite-dev limesuite-udev limesuite-images
sudo apt-get install -y soapysdr-module-lms7

sudo apt-get install
cmake g++
libpython-dev python-numpy swig

git clone https://github.com/pothosware/SoapySDR.git
cd SoapySDR

cd SoapySDR
git pull origin master

mkdir build
cd build
cmake …
make -j4
sudo make install
sudo ldconfig #needed on debian systems
SoapySDRUtil --info

srsLTE依赖库安装

   在Ubuntu14.04系统上,执行以下命令即可:

sudo apt-get install cmake libfftw3-dev libpolarssl-dev libboost-program-options-dev libboost-thread-dev libconfig+±dev libsctp-dev
Ubuntu 17.04系统上,执行以下命令:

sudo apt-get install cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev libboost-thread-dev libconfig+±dev libsctp-dev
另外,srs还提供了srsGUI库,可以用于在调试的时候,实时查看星座图及信号能量,其github链接为:https://github.com/srslte/srsgui,安装命令如下:

首先安装依赖库:

sudo apt-get install libboost-system-dev libboost-test-dev libboost-thread-dev libqwt-dev libqt4-dev
下载及安装命令如下:
git clone https://github.com/suttonpd/srsgui.git
cd srsGUI
mkdir build
cd build
cmake …/
make
sudo make install
sudo ldconfig
srsLTE编译安装

   从github上clone代码,之后进行编译安装即可,命令如下:

git clone https://github.com/srsLTE/srsLTE
mkdir build
cd build
cmake …/
make
make test
sudo make install
sudo ldconfig

注意:
cmake 生成过程中,留意各项是否正常,soapySDR安装不正常会影编译不了srsenb,srsue,特别是重复安装

编译完成后:
srsenb执行的时候,发现“srsenb: error while loading shared libraries: libsrslte_rf.so: cannot open shared object file: No such file or director”

解决:
方法1:

vim /etc/ld.so.conf //在新的一行中加入库文件所在目录

/usr/lib

ldconfig //更新/etc/ld.so.cache文件

1
2
3
4
方法2:

1.将用户用到的库统一放到一个目录,如 /usr/loca/lib

cp libXXX.so.X /usr/loca/lib/

2.向库配置文件中,写入库文件所在目录

vim /etc/ld.so.conf.d/usr-libs.conf

/usr/local/lib

3.更新/etc/ld.so.cache文件

ldconfig

参考:
https://blog.csdn.net/yjk13703623757/article/details/53217377
https://blog.csdn.net/jipengwang/article/details/79451879
https://www.cnblogs.com/limesdr/articles/9394975.html

你可能感兴趣的:(ubuntu18.04安装soapySDR srsLTE limeSDR出错与解决)