报错:
Error: AssertionError: Failed to find a valid XML path for RFNoC blocks.
Try setting the enviroment variable UHD_RFNOC_DIR to the correct location
参考:https://bugs.launchpad.net/ubuntu/+source/uhd/+bug/1780805
原因:可能是因为ubuntu自带的发行版的uhd有问题,
在使用USRP X310时会出现这个问题,解决方法:
wget https://codeload.github.com/EttusResearch/uhd/zip/release_003_010_003_000 -O uhd.zip
unzip uhd.zip
cd uhd-release_003_010_003_000/host/include
sudo cp -Rv uhd/rfnoc /usr/share/uhd/
亲测可行。
要保证:
你的/usr/share/uhd下面有一个名叫/rfnoc的文件夹,而这个文件夹下面有许多文件,文件是cd uhd-release_003_010_003_000/host/include/uhd/rfnoc/ 文件夹下面的