[puredyne] Compiling pd externals

classic Classic list List threaded Threaded
3 messages Options
Julian Brooks Julian Brooks
Reply | Threaded
Open this post in threaded view
|

[puredyne] Compiling pd externals

Hey all,

I'm on my first attempt at compiling some externals and got stuck.

1st up is pitchEnv~ by William Brent
http://williambrent.conflations.com/pd/pitchEnv~-0.2-src.zip

Managed to do this by adding (after a few experiments) the correct route to the pd source in the attached Makefile.
Open the makefile and under the hashed out line
***supply location of pd source ***
I added:
/usr/src/pd-0.42.5/

On my machine this worked fine.  Blimey, I just compiled my 1st external:)

If anyone is using sigmund~ and is getting unstable pitch responses from a noisy input I cannot recommend this external's denoise function highly enough.
Use 1 instance of sigmund~ for the pitch tracking, into pitchEnv~, then into another sigmund~.  I am using the tracks bit of sigmund~ to split an incoming sound into 48 partials,and then messing with those partials.  It's absolutely rock solid.  Whereas before it was all over the shop.

Now it's getting a bit trickier.

I now want to install the newest version of pmpd (1.0)
http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/pmpd/?view=tar

I have looked at the Makefile and at line 116 I have added the same info but I get this - deep breath :

julian-laptop# make
cc -DPD -I"/usr/src/pd-0.42.5/src//include" -Wall -W -g -Wno-unused -DVERSION='"0.9.1-svn"' -fPIC -O6 -funroll-loops -fomit-frame-pointer -o "iAmbient2D.o" -c "iAmbient2D.c"
iAmbient2D.c:1:18: error: m_pd.h: No such file or directory
iAmbient2D.c:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
iAmbient2D.c:7: error: expected specifier-qualifier-list before ‘t_object’
iAmbient2D.c:28: error: expected declaration specifiers or ‘...’ before ‘t_floatarg’
iAmbient2D.c: In function ‘iAmbient2D_forceX’:
iAmbient2D.c:30: warning: implicit declaration of function ‘SETFLOAT’
iAmbient2D.c:30: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:30: error: ‘f1’ undeclared (first use in this function)
iAmbient2D.c:30: error: (Each undeclared identifier is reported only once
iAmbient2D.c:30: error: for each function it appears in.)
iAmbient2D.c: At top level:
iAmbient2D.c:33: error: expected declaration specifiers or ‘...’ before ‘t_floatarg’
iAmbient2D.c: In function ‘iAmbient2D_forceY’:
iAmbient2D.c:35: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:35: error: ‘f1’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:38: error: expected declaration specifiers or ‘...’ before ‘t_floatarg’
iAmbient2D.c:38: error: expected declaration specifiers or ‘...’ before ‘t_floatarg’
iAmbient2D.c: In function ‘iAmbient2D_force’:
iAmbient2D.c:40: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:40: error: ‘f1’ undeclared (first use in this function)
iAmbient2D.c:41: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:41: error: ‘f2’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:44: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c: In function ‘iAmbient2D_rndFX’:
iAmbient2D.c:46: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:46: error: ‘X’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:49: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c: In function ‘iAmbient2D_rndFY’:
iAmbient2D.c:51: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:51: error: ‘X’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:54: error: expected declaration specifiers or ‘...’ before ‘t_floatarg’
iAmbient2D.c:54: error: expected declaration specifiers or ‘...’ before ‘t_floatarg’
iAmbient2D.c: In function ‘iAmbient2D_rndF’:
iAmbient2D.c:56: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:56: error: ‘f1’ undeclared (first use in this function)
iAmbient2D.c:57: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:57: error: ‘f2’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:60: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c: In function ‘iAmbient2D_damp’:
iAmbient2D.c:62: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:62: error: ‘X’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:65: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c: In function ‘iAmbient2D_Xmin’:
iAmbient2D.c:67: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:67: error: ‘Xmin’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:70: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c: In function ‘iAmbient2D_Xmax’:
iAmbient2D.c:72: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:72: error: ‘Xmax’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:75: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c: In function ‘iAmbient2D_Ymin’:
iAmbient2D.c:77: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:77: error: ‘Ymin’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:80: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c: In function ‘iAmbient2D_Ymax’:
iAmbient2D.c:82: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:82: error: ‘Ymax’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:85: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c:85: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c: In function ‘iAmbient2D_dXY’:
iAmbient2D.c:87: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:87: error: ‘dX’ undeclared (first use in this function)
iAmbient2D.c:88: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:88: error: ‘dY’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:91: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c: In function ‘iAmbient2D_dX’:
iAmbient2D.c:93: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:93: error: ‘dX’ undeclared (first use in this function)
iAmbient2D.c: At top level:
iAmbient2D.c:96: error: expected declaration specifiers or ‘...’ before ‘t_float’
iAmbient2D.c: In function ‘iAmbient2D_dY’:
iAmbient2D.c:98: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:98: error: ‘dY’ undeclared (first use in this function)
iAmbient2D.c: In function ‘iAmbient2D_bang’:
iAmbient2D.c:103: error: ‘t_iAmbient2D’ has no member named ‘x_sym’
iAmbient2D.c:103: warning: implicit declaration of function ‘typedmess’
iAmbient2D.c:103: error: ‘t_iAmbient2D’ has no member named ‘x_sym’
iAmbient2D.c:103: warning: implicit declaration of function ‘gensym’
iAmbient2D.c:103: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c:105: warning: implicit declaration of function ‘outlet_anything’
iAmbient2D.c:105: error: ‘t_iAmbient2D’ has no member named ‘force_new’
iAmbient2D.c:105: error: ‘t_iAmbient2D’ has no member named ‘force’
iAmbient2D.c: At top level:
iAmbient2D.c:108: error: expected ‘)’ before ‘*’ token
iAmbient2D.c: In function ‘iAmbient2D_setup’:
iAmbient2D.c:179: error: ‘iAmbient2D_class’ undeclared (first use in this function)
iAmbient2D.c:179: warning: implicit declaration of function ‘class_new’
iAmbient2D.c:180: error: ‘t_newmethod’ undeclared (first use in this function)
iAmbient2D.c:180: error: expected ‘)’ before ‘iAmbient2D_new’
iAmbient2D.c:184: warning: implicit declaration of function ‘class_addcreator’
iAmbient2D.c:184: error: expected ‘)’ before ‘iAmbient2D_new’
iAmbient2D.c:186: warning: implicit declaration of function ‘class_addbang’
iAmbient2D.c:187: warning: implicit declaration of function ‘class_addmethod’
iAmbient2D.c:187: error: ‘t_method’ undeclared (first use in this function)
iAmbient2D.c:187: error: expected ‘)’ before ‘iAmbient2D_force’
iAmbient2D.c:188: error: expected ‘)’ before ‘iAmbient2D_forceX’
iAmbient2D.c:189: error: expected ‘)’ before ‘iAmbient2D_forceY’
iAmbient2D.c:190: error: expected ‘)’ before ‘iAmbient2D_Xmin’
iAmbient2D.c:191: error: expected ‘)’ before ‘iAmbient2D_Ymin’
iAmbient2D.c:192: error: expected ‘)’ before ‘iAmbient2D_Xmax’
iAmbient2D.c:193: error: expected ‘)’ before ‘iAmbient2D_Ymax’
iAmbient2D.c:194: error: expected ‘)’ before ‘iAmbient2D_rndFY’
iAmbient2D.c:195: error: expected ‘)’ before ‘iAmbient2D_rndFX’
iAmbient2D.c:196: error: expected ‘)’ before ‘iAmbient2D_damp’
iAmbient2D.c:197: error: expected ‘)’ before ‘iAmbient2D_dX’
iAmbient2D.c:198: error: expected ‘)’ before ‘iAmbient2D_dY’
iAmbient2D.c:199: error: expected ‘)’ before ‘iAmbient2D_dXY’
make: *** [iAmbient2D.o] Error 1

Which I guess is a roundabout way of saying that it can't find the source?

Any ideas hugely appreciated.

I'm on 9.11 amd64.

Cheers,

Julian


---
[hidden email]
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne
gusano gusano
Reply | Threaded
Open this post in threaded view
|

Re: [puredyne] Compiling pd externals

On 04/12/2011 03:11 PM, J bz wrote:

> I now want to install the newest version of pmpd (1.0)
> http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/pmpd/?view=tar
>
> I have looked at the Makefile and at line 116 I have added the same info
> but I get this - deep breath :
>
> julian-laptop# make
> cc -DPD -I"/usr/src/pd-0.42.5/src//include" -Wall -W -g -Wno-unused
> -DVERSION='"0.9.1-svn"' -fPIC -O6 -funroll-loops -fomit-frame-pointer -o
> "iAmbient2D.o" -c "iAmbient2D.c"
> iAmbient2D.c:1:18: error: m_pd.h: No such file or directory

this is a bit nasty but you could try copying m_pd.h (which should be in
/usr/src/pd..) to /usr/include ?

cheers,
_y
---
[hidden email]
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne
Julian Brooks Julian Brooks
Reply | Threaded
Open this post in threaded view
|

Re: [puredyne] Compiling pd externals

Hot Damn!
Worked, thank you:)

Cheers,

Julian

On 12 April 2011 14:48, gusano <[hidden email]> wrote:
On 04/12/2011 03:11 PM, J bz wrote:
I now want to install the newest version of pmpd (1.0)
http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/pmpd/?view=tar

I have looked at the Makefile and at line 116 I have added the same info
but I get this - deep breath :

julian-laptop# make
cc -DPD -I"/usr/src/pd-0.42.5/src//include" -Wall -W -g -Wno-unused
-DVERSION='"0.9.1-svn"' -fPIC -O6 -funroll-loops -fomit-frame-pointer -o
"iAmbient2D.o" -c "iAmbient2D.c"
iAmbient2D.c:1:18: error: m_pd.h: No such file or directory

this is a bit nasty but you could try copying m_pd.h (which should be in /usr/src/pd..) to /usr/include ?

cheers,
_y
---
[hidden email]
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne


---
[hidden email]
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne