myriadrf / libxtrx

High-level XTRX API library
Apache License 2.0
28 stars 27 forks source link

Issue in test_xtrx_soapy.c during compilation on Ubuntu 18.4.6 #36

Open Vintila opened 2 years ago

Vintila commented 2 years ago

Compilation fails on Ubuntu 18.4.6 following the steps provided in the README.

The error is

/home/will/Documents/build/images/sources/libxtrx/soapy/test_xtrx_soapy.c:70:16: error: too few arguments to function ‘SoapySDRDevice_setupStream’
     rxStream = SoapySDRDevice_setupStream(sdr, SOAPY_SDR_RX, SOAPY_SDR_CF32, NULL, 0, NULL);

https://github.com/xtrx-sdr/libxtrx/blob/acb0b1cf7ab92744034767a04c1d4b4c281b840f/soapy/test_xtrx_soapy.c#L70

It looks like at some point the setupStream() call changed and now includes a stream as its second argument.

o8ko8k commented 2 years ago

I went into the make file and removed test_xtrx_soapy.c from the make process, and it seemed to make and install ok, but gnuradio use is giving me some buffer overflow messages and flowgraphs don't exit cleanly. Not sure why all the bugs, back in sept 2019, this code worked just fine.