Open umar4011 opened 6 months ago
same issue here (i get error with make):
pi@raspberrypi:~/PiFmAdv/src $ sudo make
gcc -Wall -Wno-multichar -std=gnu99 -c -O2 rds.c
rds.c: In function ‘set_rds_rt’:
rds.c:240:5: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation]
240 | strncpy(rds_params.rt, rt, 64);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rds.c: In function ‘set_rds_ps’:
rds.c:247:5: warning: ‘strncpy’ specified bound 8 equals destination size [-Wstringop-truncation]
247 | strncpy(rds_params.ps, ps, 8);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -Wall -Wno-multichar -std=gnu99 -c -O2 waveforms.c
gcc -Wall -Wno-multichar -std=gnu99 -c -O2 rds_wav.c
rds_wav.c: In function ‘main’:
rds_wav.c:53:8: error: too few arguments to function ‘fm_mpx_open’
53 | if(fm_mpx_open(in_file, LENGTH) != 0) {
| ^~~~~~~~~~~
In file included from rds_wav.c:32:
fm_mpx.h:8:12: note: declared here
8 | extern int fm_mpx_open(char *filename, size_t buf_len, int cutoff_freq, int preemphasis_corner_freq, int srate, int nochan);
| ^~~~~~~~~~~
rds_wav.c:81:32: warning: passing argument 1 of ‘fm_mpx_get_samples’ from incompatible pointer type [-Wincompatible-pointer-types]
81 | if( fm_mpx_get_samples(mpx_buffer) < 0 ) break;
| ^~~~~~~~~~
| |
| float *
fm_mpx.h:9:39: note: expected ‘double *’ but argument is of type ‘float *’
9 | extern int fm_mpx_get_samples(double *mpx_buffer, int mpx_buffer_len, float mpx, int rds, int wait);
| ~~~~~~~~^~~~~~~~~~
rds_wav.c:81:13: error: too few arguments to function ‘fm_mpx_get_samples’
81 | if( fm_mpx_get_samples(mpx_buffer) < 0 ) break;
| ^~~~~~~~~~~~~~~~~~
fm_mpx.h:9:12: note: declared here
9 | extern int fm_mpx_get_samples(double *mpx_buffer, int mpx_buffer_len, float mpx, int rds, int wait);
| ^~~~~~~~~~~~~~~~~~
make: *** [Makefile:51: rds_wav.o] Error 1
Same error here on Rpi3
Add support to raspberry Pi 5