BayLibre / iio-capture

Simple capture and metrics computation tools based on iio-readdev
2 stars 1 forks source link

[Building] Older version of libiio is needed #1

Closed mdigiorgio closed 8 years ago

mdigiorgio commented 8 years ago

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.

mtitinger commented 8 years ago

Indeed, there was a recent API change in libiio. I just removed this dependency as we are not supporting any USB device right now. Many thanks, M.