renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
325 stars 63 forks source link

Compilation failure "undeclared constant" #113

Closed PureTryOut closed 5 years ago

PureTryOut commented 5 years ago

I'm trying to compile it for a Musl based system (postmarketOS, an Alpine Linux derivative), not sure if it matters in this case. Compilation fails with the following:

gen/pygame_sdl2.mixer.c: In function '__pyx_pf_11pygame_sdl2_5mixer_2init':
gen/pygame_sdl2.mixer.c:2519:46: error: 'MIX_INIT_MODPLUG' undeclared (first use in this function)
   __pyx_t_3 = __Pyx_PyInt_From_MIX_InitFlags(MIX_INIT_MODPLUG); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error)
                                              ^~~~~~~~~~~~~~~~
gen/pygame_sdl2.mixer.c:2519:46: note: each undeclared identifier is reported only once for each function it appears in
gen/pygame_sdl2.mixer.c:2533:46: error: 'MIX_INIT_FLUIDSYNTH' undeclared (first use in this function)
   __pyx_t_8 = __Pyx_PyInt_From_MIX_InitFlags(MIX_INIT_FLUIDSYNTH); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 84, __pyx_L1_error)
                                              ^~~~~~~~~~~~~~~~~~~
error: command 'gcc' failed with exit status 1
renpytom commented 5 years ago

It looks like this is fixed in 795941ac518fdb6cc23e086224877f79477aace8 .

PureTryOut commented 5 years ago

You are right, thanks!