so, yeah, I sent my compiled external to Esteban but it complains it doesn't find libfluidsynth.2.dylib, which I have in my system as I installed it via homebrew. I tried sending libfluidsynth.2.dylib in the same folder as the external to esteban, to see if it'd get loaded and work, but he also had the same issue. So as I asked, it seems one needs to have fluidsynth previously installed. But this is not ideal for an external download, where I hoped it'd work out of the box without the need of anything ELSE.

I assume there's a way to link or embed libfluidsynth.2.dylib into the external, but I don't know how. Pd wizards, help us :) 

And by the way, I downloaded Purr Data and looked for libfluidsynth.2.dylib in its package and couldn't find it... I'm definitely missing something cause I know fluid~ works when I install Purr Data in a machine that hasn't previously installed fluidsynth via homebrew. So I'm assuming libfluidsynth.2.dylib is somewhere in Purr Data's app, but I don't know where.

Anyway, I also have attached my mac binary I built, with the help file adapted so it doesn't need any externals.

I also included TimGM6mb.sf2 in the folder, cause it's used in the help file. I wonder if there are any legal issues to include this font in the deken download, cause it's also inconvenient to ask people to download something extra in order to test the object.

Well, if anyone wants to check it out, here it is

cheers


Em sex., 11 de dez. de 2020 às 22:03, Esteban Viveros <emviveros@gmail.com> escreveu:
I tested and fuid still dependent of fluidsynth installation. There's a way to embed fluidsynth in the external? Or maybe tell the fluid binary to look for libfuidsynth in the fluid~ external folder? So we can distribute it together?

At this moment I have this error:
/Users/esteban/Documents/Pd/externals/fluid~/fluid~.d_fat: dlopen(/Users/esteban/Documents/Pd/externals/fluid~/fluid~.d_fat, 10): Library not loaded: /usr/local/opt/fluid-synth/lib/libfluidsynth.2.dylib
  Referenced from: /Users/esteban/Documents/Pd/externals/fluid~/fluid~.d_fat
  Reason: image not found
 fluid~
... couldn't create


Em sex., 11 de dez. de 2020 às 21:12, Alexandre Torres Porres <porres@gmail.com> escreveu:
Em sex., 11 de dez. de 2020 às 20:27, Jonathan Wilkes <jancsika@yahoo.com> escreveu:
I'd strongly suggest using the source from Purr Data:


It's a simple C external, unlike the footils version which depends on flext. It's also had some bugfixes and new features that Albert Graef recently added.

That's nice, thanks. I was indeed hoping that we could have a simple C external that did not rely on flex! I thought Purr was using the original one.

I also see now this uses a modification of pdlbbuilder? Anyway, that also makes things much easier! 

Now, I did try to use and build this, I got the complaint I needed fluidsynth.h, since I'm on a mac, I did "brew install fluidsynth", hit "make" again, and it built it!!!! So excited about this that I am replying to the email before testing it :) 

Now, Esteban is also excited here and willing to compile this for Windows and Linux, what's  the step for those?

And I assume the external works fine for people who don't have fluidsynth installed like I did with "brew install fluidsynth" right?

Cheers


--

 Esteban Viveros