rxseger / rx_tools

rx_fm, rx_power, and rx_sdr tools for receiving data from SDRs, based on rtl_fm, rtl_power, and rtl_sdr from librtlsdr, but using the SoapySDR vendor-neutral SDR support library instead, intended to support a wider range of devices than RTL-SDR
GNU General Public License v2.0
358 stars 69 forks source link

error: too many Argmuents #96

Open Klammraute opened 3 years ago

Klammraute commented 3 years ago

Hi, i got this error when i try to make

/home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:6: error: too many arguments to function ‘SoapySDRDevice_setupStream’ 491 | if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) {

:> root@listen:/home/listen/rx_tools-1.0.3# make Scanning dependencies of target common [ 12%] Building C object CMakeFiles/common.dir/src/convenience/convenience.c.o /home/listen/rx_tools-1.0.3/src/convenience/convenience.c: In function ‘verbose_device_search’: /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:38: warning: passing argument 2 of ‘SoapySDRDevice_setupStream’ makes integer from pointer without a cast [-Wint-conversion] 491 if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) { ^~~~~
SoapySDRStream {aka struct SoapySDRStream }
In file included from /home/listen/rx_tools-1.0.3/src/convenience/convenience.h:33, from /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:22: /usr/local/include/SoapySDR/Device.h:306:31: note: expected ‘int’ but argument is of type ‘SoapySDRStream ’ {aka ‘struct SoapySDRStream ’} 306 SOAPY_SDR_API SoapySDRStream SoapySDRDevice_setupStream(SoapySDRDevice device, ^~~~~~ /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:49: warning: passing argument 3 of ‘SoapySDRDevice_setupStream’ makes pointer from integer without a cast [-Wint-conversion] 491 if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) { ^~~~
int
In file included from /home/listen/rx_tools-1.0.3/src/convenience/convenience.h:33, from /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:22: /usr/local/include/SoapySDR/Device.h:306:31: note: expected ‘const char *’ but argument is of type ‘int’ 306 SOAPY_SDR_API SoapySDRStream SoapySDRDevice_setupStream(SoapySDRDevice device, ^~~~~~ /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:63: warning: passing argument 4 of ‘SoapySDRDevice_setupStream’ from incompatible pointer type [-Wincompatible-pointer-types] 491 if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) { ^~
const char *
In file included from /home/listen/rx_tools-1.0.3/src/convenience/convenience.h:33, from /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:22: /usr/local/include/SoapySDR/Device.h:306:31: note: expected ‘const size_t ’ {aka ‘const long unsigned int ’} but argument is of type ‘const char *’ 306 SOAPY_SDR_API SoapySDRStream SoapySDRDevice_setupStream(SoapySDRDevice device, ^~~~~~ /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:71: warning: passing argument 5 of ‘SoapySDRDevice_setupStream’ makes integer from pointer without a cast [-Wint-conversion] 491 if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) { ^~~~
void *

In file included from /home/listen/rx_tools-1.0.3/src/convenience/convenience.h:33, from /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:22: /usr/local/include/SoapySDR/Device.h:306:31: note: expected ‘size_t’ {aka ‘const long unsigned int’} but argument is of type ‘void ’ 306 | SOAPY_SDR_API SoapySDRStream SoapySDRDevice_setupStream(SoapySDRDevice device, | ^~~~~~ /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:6: error: too many arguments to function ‘SoapySDRDevice_setupStream’ 491 | if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) { | ^~~~~~ In file included from /home/listen/rx_tools-1.0.3/src/convenience/convenience.h:33, from /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:22: /usr/local/include/SoapySDR/Device.h:306:31: note: declared here 306 | SOAPY_SDR_API SoapySDRStream SoapySDRDevice_setupStream(SoapySDRDevice *device, | ^~~~~~ make[2]: [CMakeFiles/common.dir/build.make:63: CMakeFiles/common.dir/src/convenience/convenience.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:163: CMakeFiles/common.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

how can i solve this?

lachesis commented 9 months ago

Well here I am three years later hitting this same issue when I try to build this package on arch. I am guessing it's related to SoapySDR 0.8 vs 0.7