On 9/9/07, <b class="gmail_sendername">Martin Peach</b> &lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Chuckk Hubbard wrote:<br>&gt; On 9/8/07, *Ken Restivo* &lt;<a href="mailto:ken@restivo.org">ken@restivo.org</a> &lt;mailto:<a href="mailto:ken@restivo.org">ken@restivo.org</a>&gt;&gt;<br>&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -----BEGIN PGP SIGNED MESSAGE-----
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hash: SHA1<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; On Sat, Sep 08, 2007 at 06:48:52PM -0400, Chuckk Hubbard wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Hi.&nbsp;&nbsp;I acquired a p5 glove, and the Pd interface I found for it<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; relies on<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; OSCx.&nbsp;&nbsp;I&#39;ve been trying to build it, having added -fPIC to it,
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; but I get<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; this:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; make[1]: Entering directory<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; `/home/chuckk/Glove/pd/externals/OSCx/src&#39;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; cc -Wl,-export_dynamic -shared -o sendOSC.pd_linux sendOSC.o
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; htmsocket.o<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; OSC-system-dependent.o -L../../../pd/bin -lpd -lc -lm<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ../libOSC/libOSC.a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; /usr/bin/ld: cannot find -lpd<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; collect2: ld returned 1 exit status
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; make[1]: *** [sendOSC.pd_linux] Error 1<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; make[1]: Leaving directory<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; `/home/chuckk/Glove/pd/externals/OSCx/src&#39;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; make: *** [all] Error 2<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I added several paths to the INCLUDES line in src/Makefile, as<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; the guy<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; suggested, with the path to a Pd src folder, but still it can&#39;t<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; find this<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; -lpd.&nbsp;&nbsp;I read man ld and tried searching for any kind of<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; *libpd*, * pd.a*, or<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; *pd.so* on my entire hard drive, and none of them exist.&nbsp;&nbsp;Should<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I replace<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; this -lpd with something else?&nbsp;&nbsp;I tried removing it, and it
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; built a faulty<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; set of OSCx objects that don&#39;t work.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; The linker uses -L not -I to determine its paths.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Try -L/usr/wherever/pd/libs/are/located ?
<br>&gt;<br>&gt;<br>&gt; Hi Ken, thanks for the suggestion.&nbsp;&nbsp;It doesn&#39;t seem to make a<br>&gt; difference.&nbsp;&nbsp;There are a series of -L flags and a series of -I flags,<br>&gt; so I&#39;m guessing whoever wrote it knew the difference.&nbsp;&nbsp;But I tried both.
<br>&gt; I also tried removing the -lpd flag, since, again, there is no file on<br>&gt; my system that would satisfy it, and it built dumpOSC.pd_linux,<br>&gt; sendOSC.pd_linux, and OSCroute.pd_linux, but Pd cannot create a
<br>&gt; dumpOSC object, while it does create the other two...<br><br>So it _can_ build sendOSC.pd_linux when you remove the -lpd flag? That<br>makes sense because there is no need for the pd library if you&#39;re<br>building a dynamic shared library.
<br>The dumpOSC problem may relate to it&#39;s use of type-punning that assumes<br>32 bit floats and ints. I changed unpackOSC to use an int/float union<br>instead.<br>See<br><a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1788587&amp;group_id=55736&amp;atid=478070">
http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1788587&amp;group_id=55736&amp;atid=478070</a></blockquote><div><br>Actually, it built okay; I was just trying to add a dumpOSC object with no argument.&nbsp; With an argument it works...
<br><br>-Chuckk<br><br></div></div><br>