使用vmware的典型安装模式安装Ubuntu20.04
自动安装了常用软件和虚拟机增强工具,屏幕分辨率也自动设置并拉伸,比较方便。
安装gnuradio的命令
参考资料:
https://wiki.gnuradio.org/index.php?title=InstallingGR
https://wiki.gnuradio.org/index.php?title=LinuxInstall
https://wiki.gnuradio.org/index.php?title=LinuxInstall#Ubuntu_PPA_Installation
Quick Start
Ubuntu 20.04 gnuradio v3.10.5.1
sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo apt-get update
sudo apt-get install gnuradio python3-packaging
Ubuntu PPA的安装
对于Ubuntu,最新的构建(包括发布的和从主分支拉出的)都以PPA的形式在launchpad上维护。
请务必先卸载之前安装的gnuradio版本。参见UnInstallGR。
要访问当前的发布版本(3.10),请添加gnuradio/gnuradio-releases ppa(如果已经配置了其他gnuradio的ppas,请删除)。
sudo add-apt-repository ppa:gnuradio/gnuradio-releases
要访问3.9发布版本,请添加gnuradio/gnuradio-releases-3.9 ppa(如果已经配置了其他gnuradio的ppas,请删除)。
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.9
要访问3.8发布版本,请添加gnuradio/gnuradio-releases-3.8 ppa(如果已经配置了其他gnuradio的ppas,请删除)。
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.8
要访问3.7发布版本(遗留),请添加gnuradio/gnuradio-releases-3.7 ppa(如果已经配置了其他gnuradio ppas,请删除)。
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.7
然后,更新apt源,并安装gnuradio
sudo apt-get update
sudo apt install gnuradio
注意。不要试图通过Ubuntu的软件包管理(即使用 “apt”)来安装更多的软件包,如gr-osmosdr
。Ubuntu将尝试安装一个可能不兼容的版本,你的系统将处于未定义状态。
相反,请首先打开GNURadio-Companion,在右侧的块状列表中,打开 “Soapy”->"Source "或 “Sink”,看看你最可能使用的硬件是否已经被集成。
关于3.10包装依赖性的说明 对于某些发行版,你可能需要用pip安装python模块 “packaging”(可能还需要安装)。
sudo apt install python3-pip
pip install packaging
Ubuntu上的Modtool
注意:在Ubuntu 18.04 (bionic)的发布版本中,在GNU Radio从PPA中安装后,使用gr_modtool有一个问题。这是由于安装后modtool模板中仍有字节编译的代码。为了解决这个问题。
cd /usr/share/gnuradio/modtool/templates/gr-newmod
sudo py3clean .
这个问题不会出现在Ubuntu 19及以后的软件包中
=========================================
安装完成后打开还是没有osmosdr的source,需要手工安装
git clone git://git.osmocom.org/gr-osmosdr
cd gr-osmosdr/
mkdir build
cd build/
cmake ../
make
sudo make install
sudo ldconfig
cmake log
$ cmake ../
-- The CXX compiler identification is GNU 9.4.0
-- The C compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Dete