[Gambas-user] Problem building from source. Due to changes in SDL?

Patrik Karlsson patrik at trixon.se
Sun Jan 7 07:25:49 CET 2018


I was interested in testing the new image loading functions so I tried to
build from git, and stable release. It failed.

I found something about changes in SDL mixer,
https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h

     1.5 <https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.5>
 typedef enum     1.6
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.6>
{     1.7 <https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.7>
-    MIX_INIT_FLAC        = 0x00000001,     1.8
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.8> -
   MIX_INIT_MOD         = 0x00000002,     1.9
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.9> -
   MIX_INIT_MODPLUG     = 0x00000004,    1.10
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.10>
-    MIX_INIT_MP3         = 0x00000008,    1.11
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.11>
-    MIX_INIT_OGG         = 0x00000010,    1.12
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.12>
-    MIX_INIT_FLUIDSYNTH  = 0x00000020    1.13
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.13>
+    MIX_INIT_FLAC   = 0x00000001,    1.14
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.14>
+    MIX_INIT_MOD    = 0x00000002,    1.15
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.15>
+    MIX_INIT_MP3    = 0x00000008,    1.16
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.16>
+    MIX_INIT_OGG    = 0x00000010,    1.17
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.17>
+    MIX_INIT_MID    = 0x00000020,    1.18
<https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h#l1.18>
} MIX_InitFlags;


I'm using SDL Mixer 2.0.2 on Netrunner (arch).

Do I have to downgrade SDL or will Gambas be updated?


Making all in audio
make[5]: Entering directory
'/home/pata/src/gambas3-3.10.0/gb.sdl2/src/audio'
 CC       gb_sdl2_audio_la-c_sound.lo
 CC       gb_sdl2_audio_la-c_music.lo
 CC       gb_sdl2_audio_la-c_channel.lo
 CC       gb_sdl2_audio_la-main.lo
main.c: In function 'AUDIO_init':
main.c:61:13: error: 'MIX_INIT_FLUIDSYNTH' undeclared (first use in this
function); did you mean 'MIX_INIT_MID'?
 init_mixer(MIX_INIT_FLUIDSYNTH, "FLUIDSYNTH");
            ^~~~~~~~~~~~~~~~~~~
            MIX_INIT_MID
main.c:61:13: note: each undeclared identifier is reported only once for
each function it appears in
make[5]: *** [Makefile:514: gb_sdl2_audio_la-main.lo] Error 1
make[5]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2/src/audio'

make[4]: *** [Makefile:678: all-recursive] Error 1
make[4]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2/src'

make[3]: *** [Makefile:437: all-recursive] Error 1
make[3]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2'

make[2]: *** [Makefile:369: all] Error 2
make[2]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2'

make[1]: *** [Makefile:438: all-recursive] Error 1
make[1]: Leaving directory '/home/pata/src/gambas3-3.10.0'

make: *** [Makefile:379: all] Error 2
[pata at xps gambas3-3.10.0]$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180107/45d93e2e/attachment.html>


More information about the User mailing list