[PD] xnetreceive OSX binary

Pall Thayer palli at pallit.lhi.is
Fri May 7 02:36:11 CEST 2004


OK, cool. Finally worked. So everyone, here is an OSX binary of Jorge Cardoso's xnetreceive if 
anyone wants (pretty cool, gives clients port no. and IP). If you want to compile it yourselves I 
used:

gcc -g -DMACOSX -DPD -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-
parentheses -Wno-switch -bundle -bundle_loader /Applications/pd-0.37-1/bin/pd -o 
xnetreceive.pd_darwin xnetreceive.c

Don't know if all those flags are really needed. Found them in a makefile for something else.

Thanks for the help Thomas.

Palli

> Hi Pall,
> you'd better link with gcc than with plain ld.
> 
> greetings,
> Thomas
> 
> ----- Original Message ----- 
> From: "Pall Thayer" <palli at pallit.lhi.is>
> To: "Thomas Grill" <t.grill at gmx.net>
> Cc: "Martin Peach" <martinrp at vax2.concordia.ca>; <pd-list at iem.at>
> Sent: Friday, May 07, 2004 12:25 AM
> Subject: Re: [PD] xnetreceive
> 
> 
> > Hey, cool. That almost worked. Shortened my ld: Undefined symbols: list
> > by about half. Still missing stuff like __sF _accept _bind _fprintf
> > _free _inet_ntoa _listen _malloc _socket _strcmp etc... Sounds like some
> > pretty standard stuff. How do I fix it?
> >
> > palli
> >
> > Thomas Grill wrote:
> >
> > > Hi,
> > > for OSX you need something like
> > > -bundle -bundle_loader /usr/local/bin/pd
> > >
> > > best,
> > > Thomas
> > >
> > > ----- Original Message ----- 
> > > From: "Pall Thayer" <palli at pallit.lhi.is>
> > > To: "Martin Peach" <martinrp at vax2.concordia.ca>
> > > Cc: <pd-list at iem.at>
> > > Sent: Thursday, May 06, 2004 8:48 PM
> > > Subject: Re: [PD] xnetreceive
> > >
> > >
> > >
> > >>Ok, ld doesn't recognize the -export_dynamic and -shared flags on Mac OS
> > >>X but at least I know what I'm looking for.
> > >>
> > >>palli
> > >>
> > >>Martin Peach wrote:
> > >>
> > >>>Pall Thayer wrote:
> > >>>
> > >>>
> > >>>>Not much of a programmer myself but I tried compiling this on Mac OS
> > >>>>X. After commenting out the ifdef Unix and all the win stuff, the only
> > >>>>error I get is the following... what does this mean?
> > >>>
> > >>>
> > >>>
> > >>>>pallis-Computer:/Applications/pd-0.37-1/src root# gcc xnetreceive.c
> > >>>>ld: Undefined symbols:
> > >>>>_main
> > >>>>_binbuf_eval
> > >>>>_binbuf_free
> > >>>>_binbuf_getnatom
> > >>>
> > >>>...
> > >>>
> > >>>Looks like ld (the linker) is looking for entry points in pd. Probably
> > >>>because you need to build it as dynamic shared library as opposed to a
> > >>>standalone program. In my makefile I have
> > >>>ld -export_dynamic  -shared ...
> > >>>which I believe is what it takes to do this in linux, but I don't know
> > >>>OSX enough to be sure that will work there as well.
> > >>>
> > >>>Martin
> > >>>
> > >>>
> > >>>_______________________________________________
> > >>>PD-list mailing list
> > >>>PD-list at iem.at
> > >>>to manage your subscription (including un-subscription) see
> > >>>http://iem.at/cgi-bin/mailman/listinfo/pd-list
> > >>>
> > >>
> > >>-- 
> > >>_________________________________
> > >>
> > >>Pall Thayer
> > >>artist/teacher
> > >>http://www.this.is/pallit
> > >>http://130.208.220.190/
> > >>http://130.208.220.190/nuharm/
> > >>http://130.208.220.190/panse/
> > >>_________________________________
> > >>
> > >>_______________________________________________
> > >>PD-list mailing list
> > >>PD-list at iem.at
> > >>to manage your subscription (including un-subscription) see
> > >>http://iem.at/cgi-bin/mailman/listinfo/pd-list
> > >>
> > >>
> > >
> > >
> >
> > -- 
> > _________________________________
> >
> > Pall Thayer
> > artist/teacher
> > http://www.this.is/pallit
> > http://130.208.220.190/
> > http://130.208.220.190/nuharm/
> > http://130.208.220.190/panse/
> > _________________________________
> >
> >
> 
> 

-- 
Pall Thayer
artist/teacher
http://www.this.is/pallit
http://130.208.220.190
http://130.208.220.190/nuharm
http://130.208.220.190/panse
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 14174 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20040507/370778ba/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 40236 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20040507/370778ba/attachment-0001.obj>


More information about the Pd-list mailing list