fluidsynth icon indicating copy to clipboard operation
fluidsynth copied to clipboard

`fluidsynth --version` fails on MSVC builds on Windows X64

Open cclauss opened this issue 8 months ago • 3 comments

FluidSynth version

Execute fluidsynth --version and provide the output.

v2.4.3:

FluidSynth runtime version 2.4.3
Copyright (C) 2000-2025 Peter Hanappe and others.
Distributed under the LGPL license.
SoundFont(R) is a registered trademark of Creative Technology Ltd.

FluidSynth executable version 2.4.3
Sample type=float

v2.4.4:

Error: Process completed with exit code 1.

v2.4.5:

Usage: fluidsynth [options] [soundfonts]
Try -h for help.
Unknown switch '-'

https://github.com/cclauss/fluidsynth-tests/actions

Related to:

  • #1510
  • #1543

cclauss avatar Apr 14 '25 12:04 cclauss

The MSVC binaries are compiled without getopt support. See the notice for fluidsynth -h

FluidSynth runtime version 2.4.5
Copyright (C) 2000-2025 Peter Hanappe and others.
Distributed under the LGPL license.
SoundFont(R) is a registered trademark of Creative Technology Ltd.

Usage:
  fluidsynth [options] [soundfonts] [midifiles]

Note:
  This version of fluidsynth was compiled without getopt support.
  Thus, the long options are not supported.

Therefore, this is not a bug, it's a feature request for getting getopt support for MSVC builds.

derselbst avatar Apr 14 '25 15:04 derselbst

There is a getopt-win32 package in https://vcpkg.io/ but it is not a blind drop-in. It will need some tweaking on the build system.

pedrolcl avatar Apr 21 '25 11:04 pedrolcl

Another alternative would be getopt_port (BSD licensed).

pedrolcl avatar May 18 '25 11:05 pedrolcl