Skip to content

Installation

matt-knight edited this page Jul 23, 2017 · 8 revisions

Skip ahead for gr-lora installation instructions.

Dependencies

gr-lora requires a working installation of GNU Radio, including development headers.

There are a number of ways to install GNU Radio, including through your system package manager (aptitude, macports, etc.) or GNU Radio's proprietary installation management system (PYBombs). However, I recommend building from source. It's not that hard to do, gives you insight into and control over what gets installed, and most importantly allows you to configure your install path and permissions. See the following for more information:

Custom GNU Radio Installation

I install GNU Radio to a custom subdirectory under /opt that is owned by my user account, for example /opt/gnuradio. This allows me to install and run GNU Radio without root. Since /opt not a default system path, it requires manually extending system paths to include this search path. Within .bashrc/.zshrc/equivalent, add:

export PATH=\
/opt/gnuradio/bin:\
$PATH

export LD_LIBRARY_PATH=\
/opt/gnuradio/lib:\
$LD_LIBRARY_PATH

export CPATH=\
/opt/gnuradio/include:\
$CPATH

export PYTHONPATH=\
/opt/gnuradio/lib/python2.7/[site|dist]-packages:\    #NB: system dependent `site-packages` or `dist-packages`
$PYTHONPATH

export PKG_CONFIG_PATH=\
/opt/gnuradio/lib/pkgconfig:\
$PKG_CONFIG_PATH

export GRC_BLOCKS_PATH=\
/opt/gnuradio/share/gnuradio/grc/blocks:\
$GRC_BLOCKS_PATH

Device drivers and out of tree GNU Radio modules can be installed this way. Device drivers can be run with local non-root permissions by configuring udev rules, which will require copying a udev rules file to /etc/udev/rules.d. This one-time copy operation will require root.

gr-lora Installation

Clone this wiki locally