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 _binbuf_getvec _binbuf_new _binbuf_text _bug _class_new _freebytes _gensym _getbytes _outlet_anything _outlet_float _outlet_list _outlet_new _outlet_setstacklim _outlet_symbol _pd_error _pd_new _post _s_anything _s_float _sys_addpollfn _sys_bail _sys_closesocket _sys_rmpollfn _sys_sockerror
This is a multi-part message in MIME format.
Jorge Cardoso wrote:
Hi,
I have made an external (xnetreceive - eXtended netreceive) that acts like netreceive with two new outlets: ip address and port number. It is based on the [netreceive] and [netserver] objects (and source code!).
I have used this to exchange info between java applets and PD. [netreceive] doesn't output the ip address, and [netserver] only works for TCP connections and I needed both...
The external is compiled for windows only (I don't have access to a Mac or Linux box). If anyone would care to (try) to compile it for other platforms I would be much appreciated.
Looks good! I just changed it a bit (see attached xnetreceive.c) and used this makefile with it under suse7.2. You need to set the INCLDUE path in the makefile to point to your pd source. Probably the makefile is not optimal (doesn't install or clean) but it works OK when you run pd from the same directory as xnetreceive.pd_linux.
Martin
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
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@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
Hi, for OSX you need something like -bundle -bundle_loader /usr/local/bin/pd
best, Thomas
----- Original Message ----- From: "Pall Thayer" palli@pallit.lhi.is To: "Martin Peach" martinrp@vax2.concordia.ca Cc: pd-list@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@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@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
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@pallit.lhi.is To: "Martin Peach" martinrp@vax2.concordia.ca Cc: pd-list@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@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@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
Hi Pall, you'd better link with gcc than with plain ld.
greetings, Thomas
----- Original Message ----- From: "Pall Thayer" palli@pallit.lhi.is To: "Thomas Grill" t.grill@gmx.net Cc: "Martin Peach" martinrp@vax2.concordia.ca; pd-list@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@pallit.lhi.is To: "Martin Peach" martinrp@vax2.concordia.ca Cc: pd-list@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@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@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/ _________________________________
hi,
this is taken from pdp/pidip Makefile for OSX :
g++ -o pdp.pd_darwin pidip-modules/*.o modules/*/*.o system/*/*.o $(PDP_LIBS) -dynamic -bundle -undefined error -multiply_defined suppress -twolevel_namespace -bundle_loader $(PD_EXECUTABLE)
i guess you can figure what to modify in this...
suerte, sevy
Pall Thayer wrote:
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@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
On Thu, 6 May 2004, Páll Þayer 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 [...]
Those are all functions defined by Pd. You need to tell ld that it's ok to ignore those, as they are part of the plugin interface. I think you need -bundle_loader pointing to a pd executable, or something like that.
Mathieu Bouchard http://artengine.ca/matju