Skip to content

Installing gr radio_astro

jmakous edited this page Jul 10, 2020 · 44 revisions

Welcome to the gr-radio_astro wiki!

Installing gr-radio_astro for GNURadio 3.7

Details


Installing gr-radio_astro for GNUradio 3.8

GNURadio 3.8 is the latest GNURadio version, the package has been completely reworked to work with GNURadio 3.8 and python 3. Currently only spectrometer_w_cal.grc is the only application ported

Note: on Ubuntu 20.04 GNUradio 3.8 is installed by default


Aside: Installing GNURadio in Ubuntu 20.04

  • Open Terminal
  • Install gnuradio, external python dependencies and SDR drivers

sudo apt install gnuradio gr-osmosdr airspy python3-h5py python3-ephem

  • In at least one test case liborc-0.4-dev was need to be installed by running

sudo apt install liborc-0.4-dev


Installing the latest tested build

  • Unzip the build release v2020.05-gr38 and move to the unzipped gr-radio_astro folder
  • make a build directory mkdir build and go inside it cd build
  • run the following in the build directory
cmake ..
sudo make
sudo make install
sudo ldconfig

and then run the following command to make sure it is installed in the python environment the same as GNURadio

sudo cp -r /usr/local/lib/python3/dist-packages/radio_astro /usr/local/lib/python3.8/dist-packages/

Installing from github

  • Open Terminal
  • Clone the repository

git clone https://github.com/WVURAIL/gr-radio_astro.git

  • switch to the GNURadio 3.8

git checkout gr38

  • make a build directory mkdir build and go inside it cd build
  • run the following in the build directory
cmake ..
sudo make
sudo make install

Additional Steps for setting the proper Python environment:

  1. Open a terminal window.
  2. Make sure you are at the home directory (type cd ); type gedit .bashrc. This opens the bashrc file in an editor.
  3. Scroll to the very bottom of this file, add a few spaces, and then copy and paste the following code: export PYTHONPATH=/usr/local/lib/python3/dist-packages:/usr/local/lib/python3.8/dist-packages:$PYTHONPATH
  4. Save and close (x in upper right corner).
  5. Go to the folder by typing: cd /usr/local/lib/python3.8/dist-packages
  6. Type ls
  7. If the folder radio_astro exists, delete it by typing rm -rf radio_astro.
  8. Check for proper installment by opening a new terminal window and starting Gnuradio (gnuradio-companion)
  9. Run spectrometer_w_cal.grc. If no error occurs, installation was a success!

developing for GNURadio 3.8

Restrict all development and testing to the gr38-dev branch

  • switch to the gr38-dev branch
git checkout gr38-dev
  • Submit pull request to merge into the gr38 release branch

  • A simple way to do this on github.com is by going to this Link. Compare the changes, of satisfied click the create pull request button.

Clone this wiki locally