SDR开发环境搭建

SDR开发环境搭建

  • 编译安装
    • 安装依赖
    • 编译安装UHD
    • 编译安装hackrf支持
    • 编译安装gnuradio
    • 编译安装soapysdr
    • 编译安装Limesuite
    • 编译安装gr-osmosdr

编译安装

本文安装环境使用于usrp,hackrf,limesdr等SDR硬件,安装使用系统为Ubuntu14.04.5LTS版本

安装依赖

  1. 添加cmake源
sudo add-apt-repository ppa:george-edison55/cmake-3.x
  1. 进行更新
sudo apt-get update
sudo apt-get upgrade

  1. 安装依赖
sudo apt-get install -y build-essential cmake git-core autoconf automake libtool g++ python-dev swig pkg-config libfftw3-dev libboost1.55-all-dev python-mako libcppunit-dev libgsl0-dev libusb-dev sdcc libsdl1.2-dev python-wxgtk2.8 python-numpy python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev libusb-1.0 libsqlite3-dev libi2c-dev libwxgtk3.0-dev freeglut3-dev

编译安装UHD

git clone https://github.com/EttusResearch/uhd
cd uhd/host
mkdir build
cd build
cmake ../
make -j4
sudo make install
sudo ldconfig

编译安装hackrf支持

git clone --recursive https://github.com/mossmann/hackrf
cd hackrf/host
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make -j4
sudo make install
sudo ldconfig

编译安装gnuradio

git clone --recursive https://github.com/gnuradio/gnuradio
cd gnuradio
mkdir build
cd build
cmake ../
make -j4
sudo make install 
sudo ldconfig**

编译安装soapysdr

git clone --recursive https://github.com/pothosware/SoapySDR
cd SoapySDR
mkdir build
cd build
cmake ../
make -j4
sudo make install
sudo ldconfig

编译安装Limesuite

git clone --recursive https://github.com/myriadrf/LimeSuite
cd LimeSuite
cd build
cmake ../
make -j4
sudo make install
sudo ldconfig

编译安装gr-osmosdr

git clone --recursive https://github.com/osmocom/gr-osmosdr
cd gr-osmosdr
mkdir build
cd build
cmake ../
make -j4
sudo make install
sudo ldconfig

到此所有需要的工具都已安装完毕,接下来就可以连接硬件进行一些测试了。

你可能感兴趣的:(SDR)