Skip to content

Instantly share code, notes, and snippets.

@takurx
Forked from gbevan/INSTALL.md
Last active April 27, 2020 15:40
Show Gist options
  • Save takurx/c4571c2e540bbdc95f52339a07c2f81a to your computer and use it in GitHub Desktop.
Save takurx/c4571c2e540bbdc95f52339a07c2f81a to your computer and use it in GitHub Desktop.
Gnuradio 3.8 on Ubuntu 18.04

Installing gnuradio 3.8 (2019-12-16)

Setup PyBOMBS

sudo apt-get install python-pip python-apt
sudo -H pip install PyBOMBS
mkdir ~/maint38
cd ~/maint38
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 ~/maint38

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
  • In gnuradio.lwr recipe file, add "-DENABLE_CTRLPORT_THRIFT=OFF" in "config_opt".
vars: # We explicitly enable some subcomponents to make sure the build fails if they're not working:
  config_opt: " -DENABLE_DOXYGEN=$builddocs -DENABLE_GR_AUDIO=ON -DENABLE_GR_BLOCKS=ON -DENABLE_GR_DIGITAL=ON -DENABLE_GR_FEC=ON -DENABLE_GR_FFT=ON -DENABLE_GR_FILTER=ON -DENABLE_GR_QTGUI=ON -DENABLE_GR_UHD=ON -DENABLE_PYTHON=ON -DENABLE_VOLK=ON -DENABLE_GRC=ON -DENABLE_CTRLPORT_THRIFT=OFF "

Install uhd and prereqs

source ~/maint38/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 \
  libgtk-3-dev libgirepository1.0-dev
pip install six Mako pyyaml pygobject pygi pyqt5

Install gnuradio 3.8

pybombs install gnuradio

Fix gr-osmosdr.lwr

~/.pybombs/recipes/gr-recipes/gr-osmosdr.lwr

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: gr3.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/igorauad/gr-osmosdr.git

Install gr-osmosdr

pybombs install gr-osmosdr

Running gnuradio-companion

source ~/maint38/setup_env.sh
gnuradio-companion
@takurx
Copy link
Author

takurx commented Dec 16, 2019

pip install pyqt5

@takurx
Copy link
Author

takurx commented Dec 16, 2019

OK

sharo@kirima:~/maint381$ gnuradio-companion
WARNING:gnuradio.grc.core.platform:Slow YAML loading (libyaml not available)
<<< Welcome to GNU Radio Companion 3.8.0.0 >>>

@RealJTG
Copy link

RealJTG commented Apr 27, 2020

This is madness (-_(\

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