Compiling Fluidsynth on Mac

1 minute read

I need to split an sf2 file so I can remove like 60 Megabytes, because I want my app to be as tiny as possible. So I need to run a Python script that has a dependency on Fluidsynth. Great program, I’m sure.

I’m not really going to provide context because I’m tired.

Needless to say, the cmake files of fluidsynth are really confusing and too damn long. I was running make libfluidsynth and make install, but libfluidsynth wasn’t being created. So I ended up just symlinking this folder to the lib directory, so I can use sf2_loader.

$ sudo ln -s /usr/local/Library/Frameworks/FluidSynth.framework/Versions/3/FluidSynth /usr/local/lib/libfluidsynth

Happy hacking,

Michael

Updated: