【发布时间】:2021-02-27 19:37:36
【问题描述】:
我第三次在运行 VMWare 的 Windows 10 机器上重新安装了 Ubuntu 20.04,同时尝试使用 PlutoSDR gr_iio 块安装 GNU Radio Companion 3.8。每次都因不同的错误而失败。
我在下面绘制了我最近的尝试。非常感谢任何帮助。
- 在 VMWare 上安装了 Ubuntu 20.04
- 更新了 Ubuntu
cp ./53-adi-plutosdr-usb.rules /etc/udev/rules.d/sudo service udev restart- 检查了
dmesg的输出 - 因为我没有
~/.ssh/config文件,所以我运行wget https://raw.githubusercontent.com/analogdevicesinc/plutosdr_scripts/master/ssh_config -O ~/.ssh/config -
ssh plutosdr添加到已知主机列表。我验证了 IP 和固件版本。 -
sudo apt-get install libiio-utils并已验证我可以通过iio_info -n 192.168.2.1 | grep device与设备通信 产生以下输出:
IIO context has 5 devices:
iio:device0: adm1177
iio:device1: ad9361-phy
18 device-specific attributes found:
attr 2: dcxo_tune_coarse ERROR: No such device (-19)
attr 4: dcxo_tune_fine ERROR: No such device (-19)
iio:device2: xadc
1 device-specific attributes found:
iio:device3: cf-ad9361-dds-core-lpc (buffer capable)
iio:device4: cf-ad9361-lpc (buffer capable)
attr 3: samples_pps ERROR: No such device (-19)
attr 3: samples_pps ERROR: No such device (-19)
我在 ADIEngineerZone 上检查了上面显示的错误,一位前 1% 的人说“您可以忽略这些错误。” https://ez.analog.com/adieducation/university-program/f/q-a/111133/missing-device-attributes-after-update-of-pluto/331921#331921
所以我就这样做了(因为我找不到解决问题的解决方案),然后继续对第 3 到第 8 项进行最后检查。
-
iio_readdev -n 192.168.2.1 -s 64 cf-ad9361-lpc | hexdump -x返回值就好了
现在 Linux 驱动程序已安装,我继续检查 iio_info -s 和 iio_info -u ip:192.168.2.1 的输出。第一个返回预期结果。第二个输出非常长,但在 /gaintable 标记之后显示了明显的错误
.
.
.
attr 10: multichip_sync ERROR: Permission denied (-13)
attr 11: rssi_gain_step_error value: lna_error: 0 0 0 0
mixer_error: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
gain_step_calib_reg_val: 0 0 0 0 0
.
.
.
我不确定这是否是个问题,但考虑到之前的可原谅错误,我继续进行如下所述的安装。
我首先安装 GNU Radio 的依赖项。
cd
sudo apt-get -y install libxml2 libxml2-dev bison flex cmake git libaio-dev libboost-all-dev swig libgmp-dev liborc-0.4-dev libusb-1.0-0-dev libserialport-dev graphviz doxygen
没有发现错误。
接下来,对于git clone,我使用以下前缀/usr/local 安装,我会在设置和检查PATH 时注意这一点。
git clone https://github.com/analogdevicesinc/libiio.git
cd ~/libiio
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../
make
sudo make install
cd
git clone https://github.com/analogdevicesinc/libad9361-iio.git
cd ~/libad9361-iio
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../
make
sudo make install
cd
git clone https://github.com/analogdevicesinc/gr-iio.git
cd ~/gr-iio
git checkout upgrade-3.8
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../
make
sudo make install
sudo ldconfig
因为我遇到了 gr-iio cmake 声明的问题:
-- The CXX compiler identification is unknown
-- The C compiler identification is GNU 9.3.0
CMake Error at CMakeLists.txt:25 (project):
No CMAKE_CXX_COMPILER could be found.
我在线阅读我应该更新apt-get,这是我应该从一开始就做的事情,但从未在任何演练中说明。
sudo apt-get update && sudo apt-get install build-essential
我在上述更新后删除了 build 文件夹并重新运行了 gr-iio 部分。
更新后发现CXX编译器。但是,我确实收到了一个错误,找不到包配置文件:
CMake Warning at CMakeLists.txt:90 (find_package):
By not providing "FindGnuradio.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Gnuradio",
but CMake did not find one.
Could not find a package configuration file provided by "Gnuradio"
(requested version 3.9) with any of the following names:
GnuradioConfig.cmake
gnuradio-config.cmake
所以我查找了两个声明的文件,以便可以添加到 CMAKE_MODULE_PATH 但使用:
find /usr/ -iname GnuradioConfig.cmake 或
find /usr/ -iname gnuradio-config.cmake
什么也没返回...在线搜索显示我需要sudo apt install gnuradio-dev,所以我这样做并重新运行cmake
这一次它导致了一个错误说明:
-- No package 'mpir' found
-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR)
关于安装 mpir:
sudo apt-get install libgmp3-dev 并返回另一个去删除构建目录并重新运行 cmake。但是,还是同样的问题:
-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR)
所有在线文档都指向安装libgmp3-dev 或libgmp-dev,但均未解决此问题。
有什么想法吗?
【问题讨论】:
-
您从github.com/analogdevicesinc/gr-iio.git 克隆的名为“GNU Radio and IIO Devices”的项目不是 GNU Radio 项目,这个项目本身依赖于 GNU Radio(这在 @987654323 @. 如果你想构建 GNU Radio 项目,那么看那里:wiki.gnuradio.org/index.php/InstallingGR#From_Source。
标签: git ubuntu cmake gnuradio-companion