limesdr Ubuntu14安装记录

参考:http://www.cnblogs.com/k1two2/p/6702353.html

# 更新安装包
sudo add-apt-repository -y ppa:myriadrf/drivers
sudo apt-get update
apt-cache search sdr

# 安装SDR常用软件(已经安装过的可以略去)
sudo apt-get update
sudo apt-get install git
sudo apt-get install python-pip
sudo pip install --upgrade pip
sudo pip install git+https://github.com/gnuradio/pybombs.git
sudo pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git 
sudo pybombs recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git
sudo pybombs prefix init /usr/local -a myprefix -R gnuradio-default
sudo pybombs install gqrx gr-osmosdr uhd

# 安装Lime_Suite所需依赖包
# packages for soapysdr available at myriadrf PPA
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
# install graphics dependencies
sudo apt-get install libwxgtk3.0-dev freeglut3-dev

# 源码编译LimeSuite
git clone https://github.com/myriadrf/LimeSuite.git
cd LimeSuite
mkdir builddir && cd builddir
# apt方式安装的cmake达不到编译所需的版本需求,须升级安装cmake,可参考http://www.cnblogs.com/mignet/p/5404357.html
cmake ../
make -j4
sudo make install

# (执行LimeSuiteGUI启动LimeSDR的软件图形化界面)

# 源码编译UHD驱动&&增加UHD对LimeSDR的支持
git clone https://github.com/EttusResearch/uhd.git
cd uhd/host/lib/usrp
git clone https://github.com/jocover/OpenUSRP.git
echo "INCLUDE_SUBDIRECTORY(OpenUSRP)">>CMakeLists.txt
cd ../../
mkdir build && cd build
# 下面cmake 可能会报错,可以试试sudo apt-get install libxerces-c2-dev
cmake ..
make -j4
sudo make install
sudo ldconfig

# 添加环境变量
echo 'export UHD_MODULE_PATH=/usr/lib/uhd/modules' >> ~/.bashrc

# 设备探测命令。注意最好用USB3.0,否则可能会报错
uhd_find_devices
uhd_usrp_probe

# GNURadio limesdr使用测试
wget http://www.0xroot.cn/SDR/signal-record.grc
gnuradio-companion signal-record.grc

测试中遇到一个问题,limesdr经常出现这样的情况:
limesdr Ubuntu14安装记录_第1张图片
猜想是和虚拟机有关,现还没有在真机上测试。

你可能感兴趣的:(无线电)