GNURadio OOT modules

GNURadio “Out Of Tree” (OOT) modules are custom gnuradio components (C/C++ or python blocks, associated gnuradio-companion block metadata) which are not part of the “default” installation of GNURadio. They can also rely on specific libraries.

Most of the time you don't want to install these blocks, metadata, libraries, etc. in “system” locations, for various reasons:

This can be done by installing an OOT module in its own directory, a directory where you have write access as a user.

But then you need to tell several components where to find your OOT blocks.

Component which you need to tell about the location of your OOT module Environnement variable to set to tell that component
The operating system dynamic linker, for C/C++ GNURadio stuff, or even for libraries written in any language, and that your OOT module might use $LD_LIBRARY_PATH
Python $PYTHONPATH
The operating system loader $PATH
The OS man pages, in case your OOT module or a lib it relies on provides some documentation in man format $MANPATH
The PkgConfig infrastructure, in case you later need a build system using PkgConfig to be able to find your OOT module (to build something which relies on your OOT module) $PKG_CONFIG_PATH
CMake, in case you later need CMAKE to be able to find your OOT module (to build something which relies on your OOT module) $CMAKE_MODULE_PATH
GNURadio Companion, so that it finds your blocks $GRC_BLOCKS_PATH

Here is a simple script which does all that. You just need to set the correct path of where you want to install your OOT module, then source this script (by typing source <name-of-script>) or include it directly in ~/.bash_profile, or ~/.profile or ~/.bashrc:

OOT_MODULE_INSTALL_PREFIX=<path of OOT module installation>

export PYTHONPATH="$OOT_MODULE_INSTALL_PREFIX/lib/python2.7/dist-packages${PYTHONPATH:+:${PYTHONPATH}}"
export LD_LIBRARY_PATH="$OOT_MODULE_INSTALL_PREFIX/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
export PATH="$OOT_MODULE_INSTALL_PREFIX/bin${PATH:+:${PATH}}"
export MANPATH="$OOT_MODULE_INSTALL_PREFIX/share/man${MANPATH:+:${MANPATH}}"
export PKG_CONFIG_PATH="$OOT_MODULE_INSTALL_PREFIX/lib/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}"
export CMAKE_MODULE_PATH="$OOT_MODULE_INSTALL_PREFIX/lib/cmake${CMAKE_MODULE_PATH:+:${CMAKE_MODULE_PATH}}"
export GRC_BLOCKS_PATH="$OOT_MODULE_INSTALL_PREFIX/share/gnuradio/grc/blocks${GRC_BLOCKS_PATH:+:${GRC_BLOCKS_PATH}}"

If you want to embed an OOT module in a Minus Task, look at Embedding OOT modules or custom libraries/binaries in a minus scenario