analogdevicesinc / gr-iio

IIO blocks for GNU Radio
GNU General Public License v3.0
94 stars 62 forks source link

Cannot build gr-iio on Ubuntu 16.04 #83

Closed clouca closed 4 years ago

clouca commented 4 years ago

I am trying to compile gr-iio in Ubuntu 16.04 Xenial with Gnuradio 3.7.11 already install and get the same error every time /device_source_impl.cc:149:52: error: ‘iio_create_context_from_uri’ was not declared in this scope ctx = iio_create_context_from_uri(uri.c_str()); Reviewing the source code I cannot find anywhere this function except device_source_impl.cc so it is obvious that will cause error . Is there any fix ? All requirements installed using apt except from gnuradio

tfcollins commented 4 years ago

What version of libiio do you have installed?

-Travis

clouca commented 4 years ago

Hello, I have managed to solve the issue. In order to install gr-iio in Ubuntu 16.04 Xenial, do not install libiio and libad9361-iio from apt package manager. They need to be installed from source code also. It seems that Ubuntu 16.04 is not up to date according to these libraries