- Muchas notas - Fran Acién

20210207 - Installing GNURadio 3.8 con Debian Buster (10)

I have tried to install GNURadio 3.8 on Debian Buster (10).… and the conclusion is that it is imposible. Is easier to install Ubuntu 18 and install GnuRadio there… because in Debian Buster is imposible.

These are my tries… both of them not worked. Good luck!


I am following the guide of how to install GnuRadio from source, as a fact that debian repositories have gnuradio 3.7 instead of 3.8.

Source

$ sudo apt install cmake git g++ libboost-all-dev python-dev python-mako \
python-numpy python-wxgtk3.0 python-sphinx python-cheetah swig libzmq3-dev \
libfftw3-dev libgsl-dev libcppunit-dev doxygen libcomedi-dev libqt4-opengl-dev \
python-qt4 libqwt-dev libsdl1.2-dev libusb-1.0-0-dev python-gtk2 python-lxml \
pkg-config python-sip-dev
$ sudo apt-get -y install git swig cmake doxygen build-essential libboost-all-dev \
libtool libusb-1.0-0 libusb-1.0-0-dev libudev-dev libncurses5-dev libfftw3-bin \
libfftw3-dev libfftw3-doc libcppunit-1.14-0 libcppunit-dev libcppunit-doc \
ncurses-bin cpufrequtils python-numpy python-numpy-doc python-numpy-dbg \
python-scipy python-docutils qt4-bin-dbg qt4-default qt4-doc libqt4-dev libqt4-dev-bin python-qt4 python-qt4-dbg python-qt4-dev \
python-qt4-doc python-qt4-doc libqwt6abi1 libfftw3-bin libfftw3-dev \
libfftw3-doc ncurses-bin libncurses5 libncurses5-dev \
libfontconfig1-dev libxrender-dev libpulse-dev swig g++ automake autoconf \
libtool python-dev libfftw3-dev libcppunit-dev libboost-all-dev libusb-dev \
libusb-1.0-0-dev fort77 libsdl1.2-dev python-wxgtk3.0 git libqt4-dev \
python-numpy ccache python-opengl libgsl-dev python-cheetah python-mako \
python-lxml doxygen qt4-default qt4-dev-tools libusb-1.0-0-dev \
libqwtplot3d-qt5-dev pyqt4-dev-tools python-qwt5-qt4 cmake git wget libxi-dev \
gtk2-engines-pixbuf r-base-dev python-tk liborc-0.4-0 liborc-0.4-dev \
libasound2-dev python-gtk2 libzmq3-dev libzmq5 python-requests python-sphinx \
libcomedi-dev python-zmq libqwt-dev libqwt6abi1 python-six libgps-dev libgps23 \
gpsd gpsd-clients python-gps python-setuptools
$ cd /tmp
$ git clone --recursive https://github.com/gnuradio/volk.git
$ cd volk
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../
$ make
$ sudo make install
$ sudo ldconfig
$ cd /tmp
$ git clone --recursive https://github.com/gnuradio/gnuradio.git
$ cd gnuradio
$ git checkout maint-3.8
$ git pull --recurse-submodules=on
$ git submodule update --init --recursive
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../
$ make
$ sudo make install
$ sudo ldconfig
$ echo 'export PYTHONPATH=/usr/local/lib/python3/dist-packages:usr/local/lib/python2.7/site-packages:$PYTHONPATH' >> ~/.bashrc
$ echo 'export LD_LIBRARY_PATH=/user/local/lib:$LD_LIBRARY_PATH' >> ~/.bashrc

And then reboot the computer.

Other solution is to use PyBombs

Using python3 as default.

$ sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0
$ pip install mako numpy scipy
$ pip install PyYAML PyGObject pycairo PyQt5
$ sudo apt-get install python3-pip
$ sudo pip3 install pybombs
$ pybombs auto-config
$ pybombs recipes add-defaults
$ pybombs config
$ pybombs prefix init ~/prefix-3.8 -R gnuradio-default
$ source ~/prefix-3.8/setup_env.sh
$ gnuradio-companion