最近被安排做一个ADS-B信号接收的项目,之前都没有接触过fpga这些东西,拿到软件无线电模块(ANTSDR E310V2)后安装环境和软件真的太折磨了。。在此记录一下我走过的弯路,大家可以参考。
Ubuntu20.04+GNU Radio3.8+Pluto SDR:环境搭建过程记录
Step1. ANTSDR_UHD安装
- 安装依赖库
sudo apt-get install autoconf automake build-essential ccache cmake cpufrequtils doxygen ethtool \
g++ git inetutils-tools libboost-all-dev libncurses5 libncurses5-dev libusb-1.0-0 libusb-1.0-0-dev \
libusb-dev python3-dev python3-mako python3-numpy python3-requests python3-scipy python3-setuptools \
python3-ruamel.yaml
- 下载源码
git clone https://github.com/MicroPhase/antsdr_uhd
- 编译安装
cd host/
mkdir build & cd build
cmake -DENABLE_X400=OFF -DENABLE_N320=OFF -DENABLE_B100=OFF -DENABLE_B200=OFF -DENABLE_X300=OFF -DENABLE_USRP2=OFF -DENABLE_USRP1=OFF -DENABLE_N300=OFF -DENABLE_E320=OFF -DENABLE_E300=OFF ../
cmake后出现:
-- 省略若干行... ...
-- Python checking for Mako templates 0.4 or greater
-- Python checking for Mako templates 0.4 or greater - "import mako" failed
--
-- Configuring LibUHD support...
-- Dependency Boost_FOUND =
-- Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
-- Dependency HAVE_PYTHON_MODULE_MAKO = FALSE
CMake Error at cmake/Modules/UHDComponent.cmake: (MESSAGE):
Dependencies for required component LibUHD not met.
Call Stack (most recent call first):
CMakeLists.txt: (LIBUHD_REGISTER_COMPONENT)
-- Configuring incomplete, errors occurred!
See also "/home/hao/software/uhd-3.9.0/build/CMakeFiles/CMakeOutput.log".
原因是依赖库Mako未安装,解决方法是**pip install Mako**。
make
sudo make install
sudo ldconfig
sudo ldconfig可能会出现以下报错:
/sbin/ldconfig.real: /usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8 不是符号链接
5437



被折叠的 条评论
为什么被折叠?



