MIX_INIT_FLUIDSYNTH was renamed to MIX_INIT_MID in SDL_mixer 2.0.2, leading to this error message:
midi.sdlmixer.c: In function ‘midi_initilize’:
midi.sdlmixer.c:66:15: error: ‘MIX_INIT_MID’ undeclared (first use in this function)
if (Mix_Init(MIX_INIT_MID) != MIX_INIT_MID)
^~~~~~~~~~~~
SDL_mixer < 2.0.2 is still packaged in Debian stretch, Ubuntu LTS releases, etc. Probably the cleanest way to fix this is to add a check in the build system and add -DMIX_INIT_MID=MIX_INIT_FLUIDSYNTH to CFLAGS if SDL_mixer < 2.0.2 is detected.
MIX_INIT_FLUIDSYNTH
was renamed toMIX_INIT_MID
in SDL_mixer 2.0.2, leading to this error message:SDL_mixer < 2.0.2 is still packaged in Debian stretch, Ubuntu LTS releases, etc. Probably the cleanest way to fix this is to add a check in the build system and add
-DMIX_INIT_MID=MIX_INIT_FLUIDSYNTH
to CFLAGS if SDL_mixer < 2.0.2 is detected.