Cross compile an OOT and install on target

From GNU Radio
Revision as of 01:03, 21 March 2017 by Devnulling (talk | contribs) (Fix formatting - html entities)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Even if you already have GNURadio installed on the target and sdk, read Cross compile GNU Radio and install on target to get an understanding of the overall process.

To build an OOT module, use the basic procedure for building GNURadio

$ mkdir build-arm
$ cd build-arm
$ cmake -Wno-dev -DCMAKE_TOOLCHAIN_FILE=../../gnuradio/cmake/Toolchains/oe-sdk_cross.cmake \
$ make
$ sudo make install DESTDIR=~/mydevice

Note that we use the default install path of /usr/local here. So you will need to edit /etc/ to include /usr/local/lib and run ldconfig. This only needs doing once. This needs to be done on the device, not the build machine.

$ touch /etc/
$ echo /usr/local/lib >> /etc/
$ ldconfig

You will also need to set the PYTHONPATH.

$ export PYTHONPATH=/usr/local/lib/python2.7/site-packages/

If you want to install in /usr, you can use the CMAKE_INSTALL_PREFIX variable to do that.