FluidSynth source make error : 'KSDATAFORMAT_SUBTYPE_IEEE_FLOAT' undeclared (first use in this function) #1124
Unanswered
nijian141893
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
是不是你的 MinGW 编译器太老了,建议使用 MSYS2 里的 MinGW64 才是最新的 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
$ mingw32-make
[ 14%] Built target gentables
[ 16%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_waveout.c.obj
C:\Users\nijian02\Downloads\fluidsynthBuild\fluidsynth-2.2.7\src\drivers\fluid_waveout.c: In function 'new_fluid_waveout_audio_driver2':
C:\Users\nijian02\Downloads\fluidsynthBuild\fluidsynth-2.2.7\src\drivers\fluid_waveout.c:296:25: error: 'KSDATAFORMAT_SUBTYPE_IEEE_FLOAT' undeclared (first use in this function)
wfx.SubFormat = KSDATAFORMAT_SUBTYPE_IEEE_FLOAT;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\nijian02\Downloads\fluidsynthBuild\fluidsynth-2.2.7\src\drivers\fluid_waveout.c:296:25: note: each undeclared identifier is reported only once for each function it appears in
C:\Users\nijian02\Downloads\fluidsynthBuild\fluidsynth-2.2.7\src\drivers\fluid_waveout.c:305:25: error: 'KSDATAFORMAT_SUBTYPE_PCM' undeclared (first use in this function)
wfx.SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
^~~~~~~~~~~~~~~~~~~~~~~~
src\CMakeFiles\libfluidsynth-OBJ.dir\build.make:90: recipe for target 'src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_waveout.c.obj' failed
mingw32-make[2]: *** [src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_waveout.c.obj] Error 1
CMakeFiles\Makefile2:182: recipe for target 'src/CMakeFiles/libfluidsynth-OBJ.dir/all' failed
mingw32-make[1]: *** [src/CMakeFiles/libfluidsynth-OBJ.dir/all] Error 2
Makefile:164: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
how to solve this error, please help me.
Beta Was this translation helpful? Give feedback.
All reactions