joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.54k stars 373 forks source link

Error in compilation (Arch Linux aarch64) #5069

Open sthanduther opened 5 days ago

sthanduther commented 5 days ago

I'm trying to compile with "build-debug-sdl2" or "build-sdl2" and after several minutes, I have this error:

      |                        ^~~~                                                                      11:36:21 [81/1893]
      |                        |
      |                        spx_word16_t * {aka short int *}
speexdsp/fftwrap.c:102:45: note: expected ‘float *’ but argument is of type ‘spx_word16_t *’ {aka ‘short int *’}
  102 | void spx_fft(void *table, float *in, float *out)
      |                                      ~~~~~~~^~~
speexdsp/fftwrap.c: In function ‘spx_ifft_float’:
speexdsp/fftwrap.c:424:20: error: passing argument 2 of ‘spx_ifft’ from incompatible pointer type [-Wincompatible-pointer-t
ypes]
  424 |    spx_ifft(table, _in, _out);
      |                    ^~~
      |                    |
      |                    spx_word16_t * {aka short int *}
speexdsp/fftwrap.c:120:35: note: expected ‘float *’ but argument is of type ‘spx_word16_t *’ {aka ‘short int *’}
  120 | void spx_ifft(void *table, float *in, float *out)
      |                            ~~~~~~~^~
speexdsp/fftwrap.c:424:25: error: passing argument 3 of ‘spx_ifft’ from incompatible pointer type [-Wincompatible-pointer-t
ypes]
  424 |    spx_ifft(table, _in, _out);
      |                         ^~~~
      |                         |
      |                         spx_word16_t * {aka short int *}
speexdsp/fftwrap.c:120:46: note: expected ‘float *’ but argument is of type ‘spx_word16_t *’ {aka ‘short int *’}
  120 | void spx_ifft(void *table, float *in, float *out)
      |                                       ~~~~~~~^~~

and compilation crashes.

maron2000 commented 5 days ago

Duplicate of #4865

sthanduther commented 5 days ago

Solved.

https://github.com/joncampbell123/dosbox-x/issues/4865

maron2000 commented 5 days ago

That's good news. You can close solved issues.