On 9/9/07, <b class="gmail_sendername">Martin Peach</b> <<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>> 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>> On 9/8/07, *Ken Restivo* <<a href="mailto:ken@restivo.org">ken@restivo.org</a> <mailto:<a href="mailto:ken@restivo.org">ken@restivo.org</a>>><br>> wrote:<br>><br>> -----BEGIN PGP SIGNED MESSAGE-----
<br>> Hash: SHA1<br>><br>> On Sat, Sep 08, 2007 at 06:48:52PM -0400, Chuckk Hubbard wrote:<br>> > Hi. I acquired a p5 glove, and the Pd interface I found for it<br>> relies on<br>> > OSCx. I've been trying to build it, having added -fPIC to it,
<br>> but I get<br>> > this:<br>> > make[1]: Entering directory<br>> `/home/chuckk/Glove/pd/externals/OSCx/src'<br>> > cc -Wl,-export_dynamic -shared -o sendOSC.pd_linux sendOSC.o
<br>> htmsocket.o<br>> > OSC-system-dependent.o -L../../../pd/bin -lpd -lc -lm<br>> ../libOSC/libOSC.a<br>> > /usr/bin/ld: cannot find -lpd<br>> > collect2: ld returned 1 exit status
<br>> > make[1]: *** [sendOSC.pd_linux] Error 1<br>> > make[1]: Leaving directory<br>> `/home/chuckk/Glove/pd/externals/OSCx/src'<br>> > make: *** [all] Error 2<br>> ><br>
> ><br>> > I added several paths to the INCLUDES line in src/Makefile, as<br>> the guy<br>> > suggested, with the path to a Pd src folder, but still it can't<br>> find this<br>
> > -lpd. I read man ld and tried searching for any kind of<br>> *libpd*, * pd.a*, or<br>> > *pd.so* on my entire hard drive, and none of them exist. Should<br>> I replace<br>> > this -lpd with something else? I tried removing it, and it
<br>> built a faulty<br>> > set of OSCx objects that don't work.<br>> ><br>><br>> The linker uses -L not -I to determine its paths.<br>><br>> Try -L/usr/wherever/pd/libs/are/located ?
<br>><br>><br>> Hi Ken, thanks for the suggestion. It doesn't seem to make a<br>> difference. There are a series of -L flags and a series of -I flags,<br>> so I'm guessing whoever wrote it knew the difference. But I tried both.
<br>> I also tried removing the -lpd flag, since, again, there is no file on<br>> my system that would satisfy it, and it built dumpOSC.pd_linux,<br>> sendOSC.pd_linux, and OSCroute.pd_linux, but Pd cannot create a
<br>> 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're<br>building a dynamic shared library.
<br>The dumpOSC problem may relate to it'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&aid=1788587&group_id=55736&atid=478070">
http://sourceforge.net/tracker/index.php?func=detail&aid=1788587&group_id=55736&atid=478070</a></blockquote><div><br>Actually, it built okay; I was just trying to add a dumpOSC object with no argument. With an argument it works...
<br><br>-Chuckk<br><br></div></div><br>