Latest version of libiio doesn't provide the iio_create_usb_context function anymore, in fact when trying to build iio-capture you get:
$ make
cc -o iio-capture iio-capture.o -lpthread -liio
iio-capture.o: In function `main':
~/iio-capture/iio-capture.c:472: undefined reference to `iio_create_usb_context'
collect2: error: ld returned 1 exit status
make: *** [iio-capture] Error 1
To able to build the tool I had to revert libiio to the commit 59264672be.
Latest version of libiio doesn't provide the
iio_create_usb_context
function anymore, in fact when trying to buildiio-capture
you get:To able to build the tool I had to revert
libiio
to the commit 59264672be.