GnuRadio gr-iio build

Hi all,

I'm trying to build gr-iio but it breaks on the unavailability of some gnu radio source files

Using this procedure:

git clone github.com/.../gr-iio.git
cd gr-iio
cmake ..
make

fatal error: gnuradio/analog/sig_source_f.h: No such file or directory
#include <gnuradio/analog/sig_source_f.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
lib/CMakeFiles/gnuradio-iio.dir/build.make:337: recipe for target 'lib/CMakeFiles/gnuradio-iio.dir/iio_math_impl.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-iio.dir/iio_math_impl.cc.o] Error 1
CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/gnuradio-iio.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-iio.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

I built gnuradio 3.8.0 following the recipe below (running on Ubuntu Bionic 18.04 with python3 installed).

https://wiki.gnuradio.org/index.php/InstallingGR#From_Source

Gnuradio stand alone works, libiio works fine, python bindings also.

I presume gnuradio needs to install the include files to be able to build gr-iio correctly. Is there a quick fix?

Thanks

Parents Reply
  • 0
    •  Analog Employees 
    on Dec 18, 2019 1:14 AM over 1 year ago in reply to radiohead

    Can you list the files in this folder: "/usr/local/lib/python3.6/dist-packages/iio/"? I just did an install of maint-3.8 and gr-iio imported fine.

    Alternatively - is there a safe software setup you recommend to install both gnuradio and the iio bindings on the same machine (ubuntu version, python version, gnuradio version, ...) without running into installation issues?

    The python bindings and gr-iio blocks share the same module name (iio). To use them both the iio bindings cannot be directly on path. So you will need to import them through a subfolder. Otherwise, python just ignores one.

    -Travis

Children
No Data