Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will it work with raspberry Pi 5 ? #109

Open
tensorkernel opened this issue Feb 6, 2024 · 2 comments
Open

Will it work with raspberry Pi 5 ? #109

tensorkernel opened this issue Feb 6, 2024 · 2 comments

Comments

@tensorkernel
Copy link

Add support to raspberry Pi 5

@OlegXio
Copy link

OlegXio commented Jun 29, 2024

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

@peppi001
Copy link

Same error here on Rpi3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants