[Gambas-user] Problem building from source. Due to changes in SDL?
Patrik Karlsson
patrik at trixon.se
Sun Jan 7 08:06:06 CET 2018
2018-01-07 7:25 GMT+01:00 Patrik Karlsson <patrik at trixon.se>:
> 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]$
>
>
I have just found the arch patch for gambas at https://git.archlinux.org/
svntogit/community.git/tree/trunk/sdl2_mixer.diff?h=packages/gambas3
--- a/gb.sdl2/src/audio/main.c 2017-07-18 17:48:44.000000000 +0200+++
b/gb.sdl2/src/audio/main.c.new 2017-11-09 21:33:11.442013948 +0100@@
-58,7 +58,7 @@
init_mixer(MIX_INIT_OGG, "OGG");
init_mixer(MIX_INIT_MOD, "MOD");
init_mixer(MIX_INIT_FLAC, "FLAC");- init_mixer(MIX_INIT_FLUIDSYNTH,
"FLUIDSYNTH");+ init_mixer(MIX_INIT_MID, "MID");
if (Mix_OpenAudio(AUDIO_frequency, MIX_DEFAULT_FORMAT, 2, AUDIO_buffer_size))
{
After changing FLUIDSYNTH to MID it compiles, installs and runs.
But I do get a lot of errors like the following examples.
Compiling gb.dbus.trayicon...
OK
Installing gb.dbus.trayicon...
Error loading libdumb.so: libdumb.so: cannot open shared object file:
No such file or directory
Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open
shared object file: No such file or directory
Compiling gb.web.form...
OK
Installing gb.web.form...
Error loading libdumb.so: libdumb.so: cannot open shared object file:
No such file or directory
Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open
shared object file: No such file or directory
Compiling gb.form.terminal...
OK
Installing gb.form.terminal...
Error loading libdumb.so: libdumb.so: cannot open shared object file:
No such file or directory
Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open
shared object file: No such file or directory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180107/2ba38999/attachment-0001.html>
More information about the User
mailing list