<div dir="ltr"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p></p></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
    <div>On 12.12.2020 10:49, Dan Wilcox wrote:</div><blockquote type="cite">
      <div>The other, simpler alternative is to statically link
        fluidsynth into the external. You then have a larger pd_darwin
        but no dependencies or dylib search paths. If homebrew installs
        a statically-built  libfluidsynth.a to /usr/local/lib, you can
        use that.<br></div></blockquote></div></blockquote><div>That was my intention and preferred solution. And since this wouldn't be used by any other external, it's fine it's a larger binary! </div><div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sáb., 12 de dez. de 2020 às 08:17, Christof Ressi <<a href="mailto:info@christofressi.com">info@christofressi.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Maybe it's helpful to look at pd-lib-builder, since it has an
      option to build a helper shared library. </p></div></blockquote><div>Yup, I assumed pd-lib-builder could help us with things like that ;)</div><div><br></div><div><div dir="ltr" class="gmail_attr">Em sáb., 12 de dez. de 2020 às 10:27, Dan Wilcox <<a href="mailto:danomatika@gmail.com">danomatika@gmail.com</a>> escreveu:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><blockquote type="cite"><div><span style="font-family:Monaco;font-size:12px">From: Christof Ressi <</span><a href="mailto:info@christofressi.com" style="font-family:Monaco;font-size:12px" target="_blank">info@christofressi.com</a><span style="font-family:Monaco;font-size:12px">></span><br style="font-family:Monaco;font-size:12px"><span style="font-family:Monaco;font-size:12px">macOS: -install_name @loader_path/$(shared.lib)</span></div></blockquote></div><div>I think this line basically says "when loading this dylib, try looking in the same folder." This would be ideal as it means the libfluidsynth.dylib just needs to sit next to fluid~.pd_darwin.</div></div></blockquote><div><br></div><div>That also works for me, but I'd still prefer to generate a single larger binary with the lib included. Can we do that with pd-lib-builder?</div></div><div><br></div><div>One way or another, I'd need to see an example of a project that does this and makes it work so I can better understand and copy the method. As it is, I only have an idea that it provides a solution, but not really how.</div><div><br></div><div>I can also set up a repository for fluid~ on github and people can contribute to fix this.</div><div><br></div><div>cheers</div></div></div>