Hi all
I got zexy and I can see how it works to create a dll however if i try and compile the library against m_pd.h pd.lib I get an error. I've read that this is because pd is compiled with vc(ms visual c++) 6 and I'm using vc 5. (in millers notes, it says that the binarys are compatible but the compile will not work with two (5 and 6) versions for src and library) I've tried to recompile pd within visual 5 but neither the makefile or a workspace will compile.. I get tons of errors and tcl stuff tooo... Can anyone help?
Tom ________________________________________________________ C:\AUTOEXEC.BAT C:\REM [Header] C:> C:>PATH=C:\PERL\BIN;C:\WINDOWS\COMMAND;\C:jdk1.2.2\bin ________________________________________________________
http://www.nullpointer.co.uk (all suffixes enabled)
-----Original Message----- From: HENRY Damien damien_henry@libertysurf.fr To: nullpointer nullpointer@odessadesign.co.uk; pd-list@iem.kug.ac.at pd-list@iem.kug.ac.at Date: 04 March 2001 20:44 Subject: Re: writing pd addons?
I need to be able
to start off by creating a really simple library of a few objects that i
can
use to commmunicate from pd to my own screen display routines..
For creating PD object, have a look to "6.externs" directory in the documentation. For a library, you can use GGEE or ZEXY as an exemple. =>
www.pure-data.org
dh.
On Mon, 5 Mar 2001 23:01:42 -0000 nullpointer nullpointer@odessadesign.co.uk wrote:
# Hi all # >I got zexy and I can see how it works to create a dll # >however if i try and compile the library against m_pd.h pd.lib I get an # >error. I've read that this is because pd is compiled with vc(ms visual c++) 6 and # >I'm using vc 5. # >(in millers notes, it says that the binarys are compatible but the compile # >will not work with two (5 and 6) versions for src and library) # >I've tried to recompile pd within visual 5 but neither the makefile or a # >workspace will compile.. I get tons of errors and tcl stuff tooo... # >Can anyone help? # >
Hi Tom. Thanks to the Etan Fisher I'll tryed as follows, using the VC6++ compiler and it seems to work alright:
2)Modify on zexy's makefile where to find the pd.lib on your HD. (Not sure now if one \ or two \)
# ----------------------- NT -----------------------
.
.
.
PDNTCFLAGS = /W3 /WX /DNT /DPD /nologo
VC="C:\Program Files\Microsoft Visual Studio\Vc98"
.
.
.
$(PDNTLDIR)\kernel32.lib
D:\pd\bin\pd.lib <<<<---HERE
.c.dll: cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c link /dll /export:$*_setup $*.obj $(PDNTLIB)
then copy it from somewhere else on your hard disk to the directory where nmake lives.
good luck,
I haven't seen zexy's makefile although...
Ricardo.
Ricardo Climent
hello,
i'm also seeking for more documentation on how to write objects in C. I think that doc/6.externs is not really enough! I have BTW this documentation for jmax, allthough I haven't checked it yet. Is it the same? Should I read it? Is there something similar for PD? something that explain the needed methods, etc. I can somehow figure it by reading the simple codes from 6.externs but would appreciate something more.
I would also like to know if anyone has a VC6.0 template project for compiling addons. I tried to make a new DLL project and compile the 6.externs examples, but once compiled, PD didn't recognize them (it did work with the makefile).
Is there more documentation and/or tutorials (on control and audio), besides de 1.manual and 2.control.examples, specially for the features which are different from MAX and jmax (data structures, etc). What about the objects that don't have a help (e.g. netsend, netreceive...)
I've also notticed that PD starts eating ressources (computer goes slower as time goes by, only by being open, even if unused...). Is that possible? I'm using it on W98.
thanks
sergi
Sergi,
Sergi Jorda wrote:
I've also notticed that PD starts eating ressources (computer goes slower as time goes by, only by being open, even if unused...). Is that possible? I'm using it on W98.
For what it's worth, I noticed that about Win98 generally, for the few weeks I was using it. Eventually the machine would grind almost to a halt until I rebooted. Very nasty. I'm not convinced that's a PD problem. (re: externals - I'm afraid I just basically reverse engineered existing objects - not ideal of course).
Dr Nick Fells, Music Department, University of Glasgow, Tel: +44 (0) 141-330 4096 Glasgow G12 8QQ Fax: +44 (0) 141-330 3518 UK. http://www.music.gla.ac.uk/~nick
Sergi Jorda a écrit :
i'm also seeking for more documentation on how to write objects in C.
This document shows how to write dsp objects: http://www.music.mcgill.ca/~theo/audio/pd_externs.htm
Marc
On Tue, 6 Mar 2001, Sergi Jorda wrote:
hello,
i'm also seeking for more documentation on how to write objects in C. I think that doc/6.externs is not really enough! I have BTW this documentation for jmax, allthough I haven't checked it yet. Is it the same? Should I read it? Is there something similar for PD? something that explain the needed methods, etc. I can somehow figure it by reading the simple codes from 6.externs but would appreciate something more.
You would be better off with the Max/MSP extern documentation as it is much closer to PD than jMax. There is close to a direct mapping between Max externals and PD externals for the most basic operations. Also, take a look at the PD source itself - many of the objects are fairly simple and easy to read.
I would also like to know if anyone has a VC6.0 template project for compiling addons. I tried to make a new DLL project and compile the 6.externs examples, but once compiled, PD didn't recognize them (it did work with the makefile).
Is there some reason not to use the makefiles? I know make can be annoying at times but it would probably be easier in the long run.
Is there more documentation and/or tutorials (on control and audio), besides de 1.manual and 2.control.examples, specially for the features which are different from MAX and jmax (data structures, etc). What about the objects that don't have a help (e.g. netsend, netreceive...)
Again, the source is a great help. For the guts of netsend/netreceive you need to look at both x_net.c and s_inter.c (for sys_addpollfn).
Karl
I've also notticed that PD starts eating ressources (computer goes slower as time goes by, only by being open, even if unused...). Is that possible? I'm using it on W98.
thanks
sergi
| Karl W. MacMillan | | Computer Music Department | | Peabody Institute of the Johns Hopkins University | | karlmac@peabody.jhu.edu | | www.peabody.jhu.edu/~karlmac |
I haven't seen zexy's makefile although...
there should be a workingspace around somewhere, which makes a mkaefile obsolete (as far as i understand) go to the project->properties and modify the lib entries to match your installation of pd. (location of pd.lib)
mfg.gtw.gfh iohannes