Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sfMidi 1.1 - Play MIDI in SFML  (Read 22368 times)

0 Members and 1 Guest are viewing this topic.

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
Re: sfMidi 1.1 - Play MIDI in SFML
« Reply #30 on: April 11, 2012, 04:14:57 pm »
yes, you'll have to compile fluidsynth as well if there's no precompiled one available. but if I recall correctly, fluidsynth uses cmake as well, so you shouldn't have problems compiling.

Tenry

  • Full Member
  • ***
  • Posts: 120
  • Experienced Programmer
    • View Profile
    • Simon-Burchert.com
Re: sfMidi 1.1 - Play MIDI in SFML
« Reply #31 on: April 11, 2012, 05:21:49 pm »
yes, you'll have to compile fluidsynth as well if there's no precompiled one available. but if I recall correctly, fluidsynth uses cmake as well, so you shouldn't have problems compiling.
But as far as I remember I had trouble somehow :(
Cmake worked fine for SFML-2.0, don't know why I trouble with fluidsynth. Maybe it has got additional dependencies I have to install or something. But for that I should ask in the fluidsynth community, and not here ;)
Please note that my previous display name was "Shy Guy".

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
Re: sfMidi 1.1 - Play MIDI in SFML
« Reply #32 on: April 11, 2012, 06:16:36 pm »
Oh, I just remembered, after clicking configure in CMake for the 1st time, when the red options appear, you'll have to change certain settings, I unchecked everything except for enable-aufile (and BUILD_SHARED_LIBS of course), that's pretty much the bare minimum, which means you don't have anything to play the sound (since we have SFML for that), and enable-aufile allows fluidsynth to load MIDI files, which is all we need.
Trying using that same setting and see if it works.

Tenry

  • Full Member
  • ***
  • Posts: 120
  • Experienced Programmer
    • View Profile
    • Simon-Burchert.com
Re: sfMidi 1.1 - Play MIDI in SFML
« Reply #33 on: April 11, 2012, 10:02:06 pm »
Oh, I just remembered, after clicking configure in CMake for the 1st time, when the red options appear, you'll have to change certain settings, I unchecked everything except for enable-aufile (and BUILD_SHARED_LIBS of course), that's pretty much the bare minimum, which means you don't have anything to play the sound (since we have SFML for that), and enable-aufile allows fluidsynth to load MIDI files, which is all we need.
Trying using that same setting and see if it works.
I tried now, too, but when making I get a lot of error messages.

F:\Benutzer\Simon\Desktop\fluidsynth-1.1.5\build>make
Scanning dependencies of target libfluidsynth
[  2%] Building C object src/CMakeFiles/libfluidsynth.dir/fluid_dll.c.obj
[  5%] Building C object src/CMakeFiles/libfluidsynth.dir/drivers/fluid_dsound.c
.obj
f:/Benutzer/Simon/Desktop/fluidsynth-1.1.5/src/drivers/fluid_dsound.c:30:20: err
or: dsound.h: No such file or directory
f:/Benutzer/Simon/Desktop/fluidsynth-1.1.5/src/drivers/fluid_dsound.c:46: error:
 expected specifier-qualifier-list before 'LPDIRECTSOUND'
f:/Benutzer/Simon/Desktop/fluidsynth-1.1.5/src/drivers/fluid_dsound.c: In functi
on 'fluid_dsound_audio_driver_settings':
f:/Benutzer/Simon/Desktop/fluidsynth-1.1.5/src/drivers/fluid_dsound.c:93: error:
 'LPDSENUMCALLBACK' undeclared (first use in this function)
f:/Benutzer/Simon/Desktop/fluidsynth-1.1.5/src/drivers/fluid_dsound.c:93: error:
 (Each undeclared identifier is reported only once

and many, many more :(
Please note that my previous display name was "Shy Guy".

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
Re: sfMidi 1.1 - Play MIDI in SFML
« Reply #34 on: April 12, 2012, 04:22:47 am »
Have you tried following the instructions here?
http://sourceforge.net/apps/trac/fluidsynth/wiki/BuildingWithCMake

Tenry

  • Full Member
  • ***
  • Posts: 120
  • Experienced Programmer
    • View Profile
    • Simon-Burchert.com
Re: sfMidi 1.1 - Play MIDI in SFML
« Reply #35 on: April 12, 2012, 01:59:29 pm »
Have you tried following the instructions here?
http://sourceforge.net/apps/trac/fluidsynth/wiki/BuildingWithCMake
Okay, thanks. I haven't found that page before, I think.
But I will not try it now, as I have to download several things, changing the system paths etc.
I have to think about all that carefully later, and I'm sure, then everything will work.
Otherwise, I should contact the fluidsynth community, and not spam an SFML thread :P
Please note that my previous display name was "Shy Guy".