<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Reading here the 3th section:<br>
      <br>
<a class="moz-txt-link-freetext" href="https://homepages.inf.ed.ac.uk/imurray2/compnotes/library_linking.txt">https://homepages.inf.ed.ac.uk/imurray2/compnotes/library_linking.txt</a><br>
      <br>
      you can probably also try option:<br>
      <br>
      export LD_RUN_PATH="."<br>
      <br>
      in the makefile?<br>
      <br>
      <br>
      I think this is necessary for Linux and macOS. On Windows it will
      auto work if the object and the lib are in the same dir.<br>
    </p>
    <pre class="moz-signature" cols="72">Mensaje telepatico asistido por maquinas.</pre>
    <div class="moz-cite-prefix">On 1/4/2021 8:50 PM, Lucas Cordiviola
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:BN8PR20MB2788C8FDCD84343802717949A6D20@BN8PR20MB2788.namprd20.prod.outlook.com">
      
      <p>What happens if you do this in the makefile:</p>
      <p><br>
      </p>
      <p>ldlibs = -l:libfluidsynth.2.3.5.dylib  -Wl,-R.</p>
      <p><br>
      </p>
      <p>you should test if the build runs on another mac, not yours.</p>
      <p><br>
      </p>
      <p><br>
      </p>
      <pre class="moz-signature" cols="72">Mensaje telepatico asistido por maquinas.</pre>
      <div class="moz-cite-prefix">On 1/4/2021 8:00 PM, Alexandre Torres
        Porres wrote:<br>
      </div>
      <blockquote type="cite" cite="mid:CAEAsFmjQyxZ-hZz5PooaEMkRNeB2YbGOJAPLfPDDYBsU+LYHaA@mail.gmail.com">
        <div dir="ltr">
          <div dir="ltr">Em seg., 4 de jan. de 2021 às 18:06, Dan Wilcox
            <<a href="mailto:danomatika@gmail.com" moz-do-not-send="true">danomatika@gmail.com</a>>
            escreveu:<br>
          </div>
          <div class="gmail_quote">
            <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>
                      <div dir="ltr">
                        <div class="gmail_quote">
                          <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" target="_blank" moz-do-not-send="true">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>
                                <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" moz-do-not-send="true">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>
                      </div>
                    </div>
                  </blockquote>
                  <div><br>
                  </div>
                  <div>Just run install_name_tool after building with
                    the relevant options and files, probably via a
                    secondary makefile target. You may need to read up
                    on how makefiles work and the pd-lib-build docs on
                    how the build steps are performed to find the right
                    place to add it.*</div>
                </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>Ok, "install_name_tool" is something new to me, I
              tested it on my terminal and got something showing it
              exists for me. Then googling, I found <a href="https://stackoverflow.com/questions/33991581/install-name-tool-to-update-a-executable-to-search-for-dylib-in-mac-os-x" moz-do-not-send="true">https://stackoverflow.com/questions/33991581/install-name-tool-to-update-a-executable-to-search-for-dylib-in-mac-os-x</a>
              - which is pretty much what my issue is, but... it seems I
              still don't speak the same language to follow any of
              this... and yeah, I tried reading pd-lib-build docs before
              all this and no, I don't really know how makefiles work
              for real, as I've been a spoiled pd-lib-builder user since
              I started messing with this kind of thing.</div>
            <div><br>
            </div>
            <div>By the way, I just published a repository for this at <a href="https://github.com/porres/pd-fluidsynth" moz-do-not-send="true">https://github.com/porres/pd-fluidsynth</a>
              I can build and use the external in my system and all, but
              still can't distribute it or release it.</div>
            <div><br>
            </div>
            <div>I see it sucks to just come and say "hey, I got no
              idea, can someone please do this for me?", but I assume it
              could be really easy and I was hoping reviving and
              distributing this external would be of great interest and
              benefit to the community in general. Nonetheless, I'm also
              eager to learn more about these trivial things, as I ended
              up sucked inside this black hole of development :)  so if
              anyone there wants to have another shot at pointing things
              out to me, I'm here.</div>
            <div><br>
            </div>
            <div>thanks</div>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at" moz-do-not-send="true">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list" moz-do-not-send="true">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
  </body>
</html>