I'm trying to run IIO Oscilloscope on a Linux PC connected to zedBoard with AD-FMCOMMS4. It works fine by network but I want to do it via USB. I read How to run IIOD with USB transport support?
As explained in the discussion, I compiled Linux Kernel with support for ConfigFS and FunctionFS enabled, and for USB gadget mode. I follow instructions given by @pcercuei, but when I launch the command: /usr/sbin/iiod -F /dev/m2k_ffs -n 7
I get the error "ERROR: IIOD was not compiled with USB support."
So I tried to build libiio with USB support on the target:
cmake -DWITH_IIOD_USBD=ON ./
I got the linking error:
Linking C executable iiod
CMakeFiles/iiod.dir/iiod.c.o: In function `main':
/usr/local/src/libiio/iiod/iiod.c:439: undefined reference to `start_usb_daemon'
collect2: error: ld returned 1 exit status
Is someone already compile libiio with USB support?