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.gitcd gr-iiocmake ..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' failedmake: *** [lib/CMakeFiles/gnuradio-iio.dir/iio_math_impl.cc.o] Error 1CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/gnuradio-iio.dir/all' failedmake: *** [lib/CMakeFiles/gnuradio-iio.dir/all] Error 2Makefile:129: recipe for target 'all' failedmake: *** [all] Error 2
I built gnuradio 3.8.0 following the recipe below (running on Ubuntu Bionic 18.04 with python3 installed).
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?
Are you able to locate the file by doing the following:
GNU Radio 3.8 requires a specific branch: https://github.com/analogdevicesinc/gr-iio/tree/upgrade-3.8
What files are in the folder "/usr/local/lib/python3.6/dist-packages/iio/"?
Have you tried re-installing gr-iio once the bindings were removed?
The folder "/usr/local/lib/python3.6/dist-packages/iio/" contains files installed by gr-iio (apparent when performing the make install)
I did not remove the bindings because I still want to be able to interface with the pluto through python3, I simply renamed the iio.py file to another name.
I tried to reinstall the gr-iio package after that but to no avail.
Where is libgnuradio-iio.so installed? and is this on path?
Any new ideas Travis?
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?
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.
radiohead said: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.