清華鏡像安裝步驟:https://mirrors.tuna.tsinghua.edu.cn/help/pybombs/
需要預先安裝pip cmake
sudo pip install pybombs
rm -rf ~/.pybombs
pybombs recipes add gr-recipes git+https://mirrors.tuna.tsinghua.edu.cn/pybombs/recipes/gr-recipes.git
pybombs recipes add gr-etcetera git+https://mirrors.tuna.tsinghua.edu.cn/pybombs/recipes/gr-etcetera.git
mkdir gnuradio-prefixcd gnuradio-prefix
pybombs prefix init
pybombs install gnuradio
. ./setup_env.sh
gnuradio-companion
pybombs install rtl-sdr hackrf bladeRF gr-osmosdr gr-bluetooth gr-ieee-80211
有兩個坑:
一现喳、需要預先安裝cmake姻蚓,通過pip install cmake安裝的版本為2.8, 需要將cmake升級
二酗宋、如果pybombs install gnuradio提示需要升級numpy等錯誤嫂侍,可能是由于pybombs自動下載的uhd有問題,需要將/gnuradio-prefix/src/uhd文件夾中文件刪除珊搀,然后從github上下載uhd文件竭恬,解壓到uhd文件夾中,使用如下代碼編譯:
cd uhd/host/
mkdir build
cd build
cmake ../
make -j8? ? //由于編譯比較慢蝌麸,所以選擇使用8個”處理器”來提速
make test
sudo make install
sudo ldconfig? ? //更新動態(tài)鏈接庫