fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] FluidSynth 2.0 beta issue


From: Graham Goode
Subject: Re: [fluid-dev] FluidSynth 2.0 beta issue
Date: Mon, 23 Jul 2018 11:04:20 +0200

Thanks, I'll take a look at the list and see if I can edit
fluidsynthJNI.c to match

On 7/23/18, Tom M. <address@hidden> wrote:
> The idea of a major version bump (1.1 -> 2.0) is to cleanup APIs. This
> has been done and therefore you are expected to run into build
> failures when still using the old 1.1.x API.
>
> You (or some programmer) must adapt the fluidsynthJNI.c to the new 2.0
> API in order to successfully compile. Almost all breaking changes are
> documented in the API docs:
> http://www.fluidsynth.org/api-unstable/index.html#NewIn2_0_0
>
> Tom
>
> Am Mo., 23. Juli 2018 um 08:50 Uhr schrieb Graham Goode
> <address@hidden>:
>>
>> Hi,
>>
>> I'm not a programmer, but I know enough to compile and troubleshoot a
>> little.
>>
>> I build the windows versions of Fluidsynth for the jOrgan project,
>> using MinGW for the default Dsound version, and then Visual Studio for
>> the WASAPI/WDMKS/ASIO backends.
>>
>> I started doing this back in 2014 with Fluidsynth 1.1.6, and have
>> successfully compiled and tested releases up to Fluidsynth 1.1.11.
>>
>> I gave the Fluidsynth 2.0.0 beta 2 code a try, building with MinGW.
>> That compiled correctly. I then swapping out the headers in the
>> fluidsynthJNI folders and using my MinGW build of libfluidsynth
>> attempted a build of the wrapper, which failed with the following
>> messages:
>>
>> native-windows:
>>      [exec] ./src/main/native/fluidsynthJNI.c: In function
>> 'Java_jorgan_fluidsyn
>> th_Fluidsynth_setTuning':
>>      [exec] ./src/main/native/fluidsynthJNI.c:216:2: warning: implicit
>> declarati
>> on of function 'fluid_synth_create_octave_tuning'
>> [-Wimplicit-function-declarati
>> on]
>>      [exec]   fluid_synth_create_octave_tuning(context->synth,
>> jtuningBank, jtun
>> ingProgram, (char*)name, derivations);
>>      [exec]   ^
>>      [exec] ./src/main/native/fluidsynthJNI.c: In function
>> 'Java_jorgan_fluidsyn
>> th_Fluidsynth_getAudioDrivers':
>>      [exec] ./src/main/native/fluidsynthJNI.c:255:65: warning: passing
>> argument
>> 4 of 'fluid_settings_foreach_option' from incompatible pointer type
>> [-Wincompati
>> ble-pointer-types]
>>      [exec]   fluid_settings_foreach_option(settings, "audio.driver",
>> &data, onO
>> ption);
>>      [exec]
>>   ^
>>      [exec] In file included from ./lib/include/fluidsynth.h:96:0,
>>      [exec]                  from ./src/main/native/fluidsynthJNI.c:7:
>>      [exec] ./lib/include/fluidsynth/settings.h:163:6: note: expected
>> 'fluid_set
>> tings_foreach_option_t {aka void (*)(void *, const char *, const char *)}'
>> but a
>> rgument is of type 'void (*)(void *, char *, char *)'
>>      [exec]  void fluid_settings_foreach_option(fluid_settings_t
>> *settings,
>>      [exec]       ^
>>      [exec] ./src/main/native/fluidsynthJNI.c: In function
>> 'Java_jorgan_fluidsyn
>> th_Fluidsynth_getAudioDevices':
>>      [exec] ./src/main/native/fluidsynthJNI.c:277:54: warning: passing
>> argument
>> 4 of 'fluid_settings_foreach_option' from incompatible pointer type
>> [-Wincompati
>> ble-pointer-types]
>>      [exec]   fluid_settings_foreach_option(settings, key, &data,
>> onOption);
>>      [exec]                                                       ^
>>      [exec] In file included from ./lib/include/fluidsynth.h:96:0,
>>      [exec]                  from ./src/main/native/fluidsynthJNI.c:7:
>>      [exec] ./lib/include/fluidsynth/settings.h:163:6: note: expected
>> 'fluid_set
>> tings_foreach_option_t {aka void (*)(void *, const char *, const char *)}'
>> but a
>> rgument is of type 'void (*)(void *, char *, char *)'
>>      [exec]  void fluid_settings_foreach_option(fluid_settings_t
>> *settings,
>>      [exec]       ^
>>      [exec]
>> C:\Users\User\AppData\Local\Temp\ccWUbCDX.o:fluidsynthJNI.c:(.text+0
>> xb28): undefined reference to `fluid_synth_create_octave_tuning'
>>      [exec] collect2.exe: error: ld returned 1 exit status
>>
>> Any ideas?
>>
>> GrahamG
>>
>> _______________________________________________
>> fluid-dev mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]