<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Me and Dan have been pointing you to "<span
style="font-family:Monaco;font-size:12px">-install_name
@loader_path"</span>. Just do what pd-lib-builder does with
shared helper libraries. Unfortunately I don't have time to come
up and test a complete solution, but if you don't know how
makefiles work already, that might be a good reason to start ;-)</p>
<p>Christof<br>
<span style="font-family:Monaco;font-size:12px"></span></p>
<div class="moz-cite-prefix">On 05.01.2021 06:11, Alexandre Torres
Porres wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAEAsFmjPZ7k6oQ2jYTpbKyObUvinf7ZS45LmvEOxWykt3r7PRA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">For the record, me and lucas have been trying
things in the background but we didn't find a solution.</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Em seg., 4 de jan. de 2021 às
22:54, Lucas Cordiviola <<a
href="mailto:lucarda27@hotmail.com" moz-do-not-send="true">lucarda27@hotmail.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> </p>
<blockquote type="cite">
<div>I get an error </div>
<div><br>
</div>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
style="font-variant-ligatures:no-common-ligatures">-lc
-l:libfluidsynth.2.3.5.dylib -Wl,-R <span> </span></span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
style="font-variant-ligatures:no-common-ligatures">ld:
library not found for -l:libfluidsynth.2.3.5.dylib</span></p>
<div><span
style="color:rgb(0,0,0);font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures">clang:
</span><span
style="font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures;color:rgb(202,51,35)"><b>error:
</b></span><span
style="color:rgb(0,0,0);font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures">linker
command failed with exit code 1 (use -v to see
invocation)</span></div>
</blockquote>
<p>The.dylib file is in the same dir as the .c file?</p>
<p>can you try:</p>
<pre style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;white-space:pre-wrap"><span style="font-variant-ligatures:no-common-ligatures">-l:libfluidsynth.2.3.5.dylib </span>-Wl,-rpath,"./"
<blockquote type="cite">export LD_RUN_PATH="."
in the makefile?
<div>
</div><div>tried it and it builds, but still get the error</div><div>
</div><div>Library not loaded: /usr/local/opt/fluid-synth/lib/libfluidsynth.2.dylib
</div><div> Referenced from: /Users/porres/Downloads/fluid~/fluid~.d_fat</div></blockquote>
</pre>
<p>hmm, not sure as I'd never done it.</p>
<p><br>
</p>
<p> </p>
<blockquote type="cite">can you try with windows at least? <br>
</blockquote>
<p>I have it working:</p>
<p><img src="cid:part2.61FD5EE8.F7E3777D@christofressi.com"
alt="image1" class="" width="319" height="206"></p>
<p><br>
</p>
<p>I tweecked rhe makefile:</p>
<p>~~~~~~~~~</p>
<p>class.sources = fluid~.c<br>
<br>
define forWindows<br>
<br>
cflags += -I../fs-sources/include<br>
ldlibs += -L../fs-sources/lib<br>
<br>
<br>
endef<br>
</p>
<p>~~~~~~~</p>
<p><br>
</p>
<p>"fs-sources" conains the extracted package for win64 from
<a
href="https://github.com/FluidSynth/fluidsynth/releases/tag/v2.1.6"
target="_blank" moz-do-not-send="true">https://github.com/FluidSynth/fluidsynth/releases/tag/v2.1.6</a></p>
<p><br>
</p>
<p>the fluid~ external folder has all these dlls:</p>
<p>fluid~.dll<br>
<br>
libgobject-2.0-0.dll<br>
libgthread-2.0-0.dll<br>
libinstpatch-2.dll<br>
libintl-8.dll<br>
libsndfile-1.dll<br>
libfluidsynth-2.dll<br>
libglib-2.0-0.dll<br>
</p>
<p><br>
</p>
<pre cols="72">Mensaje telepatico asistido por maquinas.</pre>
<div>On 1/4/2021 10:24 PM, Alexandre Torres Porres wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Em seg., 4 de jan.
de 2021 às 21:31, Lucas Cordiviola <<a
href="mailto:lucarda27@hotmail.com"
target="_blank" moz-do-not-send="true">lucarda27@hotmail.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>Reading here the 3th section:<br>
<br>
<a
href="https://homepages.inf.ed.ac.uk/imurray2/compnotes/library_linking.txt"
target="_blank" moz-do-not-send="true">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>
</p>
</div>
</blockquote>
<div><br>
</div>
<div>tried it and it builds, but still get the error</div>
<div><br>
</div>
<div>Library not loaded:
/usr/local/opt/fluid-synth/lib/libfluidsynth.2.dylib<br>
</div>
<div> Referenced from:
/Users/porres/Downloads/fluid~/fluid~.d_fat</div>
<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>
<p> 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.</p>
</div>
</blockquote>
<div><br>
</div>
<div>can you try with windows at least? </div>
<blockquote class="gmail_quote" style="margin:0px 0px
0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<blockquote type="cite"> </blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</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">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>