Skip to content

Instantly share code, notes, and snippets.

@gbevan
Last active June 2, 2022 08:47
Show Gist options
  • Save gbevan/8e583b9cf87aa3c58102251454fa48a6 to your computer and use it in GitHub Desktop.
Save gbevan/8e583b9cf87aa3c58102251454fa48a6 to your computer and use it in GitHub Desktop.
Gnuradio 3.8 on Ubuntu 18.04

Installing gnuradio 3.8 (2019-10-09)

from: https://stackoverflow.com/questions/57678068/installing-gnuradio-3-8-on-ubuntu-18-04

Setup PyBOMBS

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

Edit setup_env.sh for python3

sed -i 's/2\.6/3.6/g' setup_env.sh
sed -i 's/2\.7/3/g' setup_env.sh

Edit gnuradio recipe

  • 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".

Install uhd and prereqs

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

Install gnuradio 3.8

pybombs install gnuradio

Fix gr-osmosdr and gr-iqbal

gr-iqbal

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

gr-osmosdr

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

Install gr-osmosdr

pybombs install gr-osmosdr

Running gnuradio-companion

source ~/sdr/setup_env.sh
gnuradio-companion
@tonytd48
Copy link

Also having problems using gr-osmosdr sink

I Tried what Nick suggested and when I ran;

python gen_osmosdr_blocks.py osmosdr_sink.block.yml

the following error appears
Traceback (most recent call last):
File "gen_osmosdr_blocks.py", line 388, in
params = ''.join([
File "gen_osmosdr_blocks.py", line 389, in
parse_tmpl(PARAMS_TMPL, n=n, sourk=sourk)
File "gen_osmosdr_blocks.py", line 350, in parse_tmpl
from mako.template import Template
ModuleNotFoundError: No module named 'mako'

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment