from: https://stackoverflow.com/questions/57678068/installing-gnuradio-3-8-on-ubuntu-18-04
sudo apt-get install python-pip python-apt
sudo -H pip install PyBOMBS
mkdir ~/sdr
cd ~/sdr
pybombs auto-config
pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git
pybombs recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git
pybombs prefix init ~/sdr
sed -i 's/2\.6/3.6/g' setup_env.sh
sed -i 's/2\.7/3/g' setup_env.sh
- Edit
~/.pybombs/recipes/gr-recipes/gnuradio.lwr
- Ensure the "gitbranch" is
maint-3.8
. - In gnuradio.lwr recipe file, add "-DENABLE_CTRLPORT_THRIFT=OFF" in "config_opt".
source ~/sdr/setup_env.sh
pybombs install uhd
sudo apt install git cmake g++ libboost-all-dev libgmp-dev \
swig python3-numpy python3-mako python3-sphinx python3-lxml \
doxygen libfftw3-dev libcomedi-dev libsdl1.2-dev libgsl-dev \
libqwt-qt5-dev libqt5opengl5-dev python3-pyqt5 liblog4cpp5-dev \
libzmq3-dev python3-yaml python3-click python3-click-plugins
pybombs install gnuradio
category: common
depends:
- gnuradio
- libosmo-dsp
description: Gnuradio I/Q balancing
#gitbranch: master
gitbranch: maint-3.8
inherit: cmake
# Let's always build this from source, not binaries
#source: git+https://git.osmocom.org/gr-iqbal
source: git+https://github.com/velichkov/gr-iqbal.git
category: common
depends:
- uhd
- rtl-sdr
- osmo-sdr
- hackrf
- gnuradio
- gr-iqbal
- bladeRF
- airspy
- soapysdr
description: Interface API independent of the underlying radio hardware
#gitbranch: master
gitbranch: maint-3.8
inherit: cmake
# Let's always build this from source, not binaries
#source: git+https://git.osmocom.org/gr-osmosdr
source: git+https://github.com/velichkov/gr-osmosdr.git
pybombs install gr-osmosdr
source ~/sdr/setup_env.sh
gnuradio-companion
Yes, there was a bug in the python source code that generators this block's YML which has now been fixed.
The bug partially generated the source YML within the SINK YML, causing the error.
Fix:
Download the block generator python script for Osmocom from:
Execute the python file with the full block name after it:
python gen_osmosdr_blocks.py osmosdr_sink.block.yml
Copy the resulting osmosdr_sink.block.yml file to (the default installation on Ubuntu 20.04):
/usr/share/gnuradio/grc/blocks
...overwriting the original file.
I get a another bug with 'no destructor found' when running the flowgraph script, but at least GRC generates the flowgraph script now!