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經常出現這樣的情況:
這裏寫圖片描述
猜想是和虛擬機有關,現還沒有在真機上測試。

發佈了63 篇原創文章 · 獲贊 26 · 訪問量 16萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章