[PD] compiling externals on osx

martin pichlmair pi at attacksyour.net
Fri Oct 22 13:31:57 CEST 2004


> actually i checkd and i cannot find that file in src folder neither in
> any other inside the pd distro.

oh. did i copy it there myself? don't know. maybe you should just get  
the pd source distribution (from millers site or cvs, main branch) and  
copy the "src" folders files into

/Applications/Pd-0.38-0test4-HCS.app/Contents/Resources/src

> Ordenador-de-ibook:/applications/audio/Pd-0.38-0test7.app/contents/ 
> resources/src/externals/build/darwin ibook$ make
> cc -DPD -Os  -DUNIX -DMACOSX -Dunix -Wall -W -Wno-unused  
> -Wno-parentheses -Wno-switch -Wno-shadow  -I. -I.. -I../include -o  
> "aenv~.o" -c  
> "/Applications/audio/Pd-0.38-0test7.app/Contents/Resources/src/ 
> aenv~.c"
> cc:  
> /Applications/audio/Pd-0.38-0test7.app/Contents/Resources/src/aenv~.c:  
> No such file or directory
> cc: no input files
> make: *** [aenv~.pd_darwin] Error 1
>
> Actually aenv~.c is in  
> /applications/audio/Pd-0.38-0test7.app/contents/resources/src/ 
> externals/build/src

again: move pd directly into applications. i do not really know if this  
is still necessary but it used to be. and it usually does not hurt.

you obviously changed the wrong path. you should change the include  
path not the path to aenv.

maybe paste the makefile in the next mail. i am too lazy to download  
aenv~ whatever it is.

> But m_pd.h is nowhere as far as i can see. I understand that the  
> m_pd.h should be part of the PD distribution
> included in the src folder and its always used by the compiler to
> compile the externals. (Sorry this is a bit non-pd question, its pretty
> general)

yes this is right. and i really wonder where it's gone

>> then it will work

if you really copy pd to where it should be and change the include path  
instead of the source path for the external then it will surely work


lg
martin



>> lg
>> martin
>>>
>>> thanks
>>>
>>> Ordenador-de-ibook:/applications/audio/Pd-0.38-0test4HCS1.app/  
>>> contents/resources/src/externals/build/darwin ibook$ make
>>> cc -DPD -Os  -DUNIX -DMACOSX -Dunix -Wall -W -Wno-unused   
>>> -Wno-parentheses -Wno-switch -Wno-shadow  -I. -I.. -I../include -o   
>>> "aenv~.o" -c "../src/aenv~.c"
>>> In file included from ../src/aenv~.c:1:
>>> ../../aenv~/aenv~.c:18:18: m_pd.h: No such file or directory
>>> In file included from ../src/aenv~.c:1:
>>> ../../aenv~/aenv~.c:31: error: parse error before '*' token
>>> ../../aenv~/aenv~.c:31: warning: type defaults to `int' in  
>>> declaration  of `aenv_class'
>>> ../../aenv~/aenv~.c:31: warning: data definition has no type or   
>>> storage class
>>> ../../aenv~/aenv~.c:34: error: parse error before "t_object"
>>> ../../aenv~/aenv~.c:34: warning: no semicolon at end of struct or  
>>> union
>>> ../../aenv~/aenv~.c:35: warning: type defaults to `int' in  
>>> declaration  of `srate'
>>> ../../aenv~/aenv~.c:35: warning: data definition has no type or   
>>> storage class
>>> ../../aenv~/aenv~.c:36: error: parse error before "a"
>>> ../../aenv~/aenv~.c:36: warning: type defaults to `int' in  
>>> declaration  of `a'
>>> ../../aenv~/aenv~.c:36: warning: data definition has no type or   
>>> storage class
>>> ../../aenv~/aenv~.c:37: error: parse error before "d"
>>> ../../aenv~/aenv~.c:37: warning: type defaults to `int' in  
>>> declaration  of `d'
>>> ../../aenv~/aenv~.c:37: warning: data definition has no type or   
>>> storage class
>>> ../../aenv~/aenv~.c:38: error: parse error before "s"
>>> ../../aenv~/aenv~.c:38: warning: type defaults to `int' in  
>>> declaration  of `s'
>>> ../../aenv~/aenv~.c:38: warning: data definition has no type or   
>>> storage class
>>> ../../aenv~/aenv~.c:39: error: parse error before "r"
>>> ../../aenv~/aenv~.c:39: warning: type defaults to `int' in  
>>> declaration  of `r'
>>> ../../aenv~/aenv~.c:39: warning: data definition has no type or   
>>> storage class
>>> ../../aenv~/aenv~.c:40: error: parse error before "lastval"
>>> ../../aenv~/aenv~.c:40: warning: type defaults to `int' in  
>>> declaration  of `lastval'
>>> ../../aenv~/aenv~.c:40: warning: data definition has no type or   
>>> storage class
>>> ../../aenv~/aenv~.c:43: error: parse error before '}' token
>>> ../../aenv~/aenv~.c:43: warning: type defaults to `int' in  
>>> declaration  of `t_aenv'
>>> ../../aenv~/aenv~.c:43: warning: data definition has no type or   
>>> storage class
>>> ../../aenv~/aenv~.c:45: error: parse error before '*' token
>>> ../../aenv~/aenv~.c:45: error: parse error before '*' token
>>> ../../aenv~/aenv~.c:46: warning: return type defaults to `int'
>>> ../../aenv~/aenv~.c: In function `aenv_perform':
>>> ../../aenv~/aenv~.c:47: error: `x' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c:47: error: (Each undeclared identifier is  
>>> reported  only once
>>> ../../aenv~/aenv~.c:47: error: for each function it appears in.)
>>> ../../aenv~/aenv~.c:47: error: parse error before ')' token
>>> ../../aenv~/aenv~.c:47: error: `w' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c:48: error: `t_float' undeclared (first use in  
>>> this  function)
>>> ../../aenv~/aenv~.c:48: error: `out' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c:48: error: parse error before ')' token
>>> ../../aenv~/aenv~.c:51: error: parse error before "lastval"
>>> ../../aenv~/aenv~.c: At top level:
>>> ../../aenv~/aenv~.c:100: error: parse error before '*' token
>>> ../../aenv~/aenv~.c: In function `aenv_dsp':
>>> ../../aenv~/aenv~.c:102: warning: implicit declaration of function   
>>> `dsp_add'
>>> ../../aenv~/aenv~.c:102: error: `x' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c:102: error: `sp' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c: At top level:
>>> ../../aenv~/aenv~.c:105: error: parse error before '*' token
>>> ../../aenv~/aenv~.c: In function `aenv_float':
>>> ../../aenv~/aenv~.c:107: error: `f' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c:108: error: `x' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c: At top level:
>>> ../../aenv~/aenv~.c:113: error: parse error before '*' token
>>> ../../aenv~/aenv~.c: In function `aenv_new':
>>> ../../aenv~/aenv~.c:115: error: `x' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c:115: error: parse error before ')' token
>>> ../../aenv~/aenv~.c:116: warning: implicit declaration of function   
>>> `floatinlet_new'
>>> ../../aenv~/aenv~.c:120: warning: implicit declaration of function   
>>> `outlet_new'
>>> ../../aenv~/aenv~.c:120: warning: implicit declaration of function   
>>> `gensym'
>>> ../../aenv~/aenv~.c:122: warning: implicit declaration of function   
>>> `sys_getsr'
>>> ../../aenv~/aenv~.c:131: error: `argc' undeclared (first use in this  
>>>  function)
>>> ../../aenv~/aenv~.c:132: warning: implicit declaration of function   
>>> `atom_getfloat'
>>> ../../aenv~/aenv~.c:132: error: `argv' undeclared (first use in this  
>>>  function)
>>> ../../aenv~/aenv~.c: At top level:
>>> ../../aenv~/aenv~.c:141: error: parse error before '*' token
>>> ../../aenv~/aenv~.c: In function `aenv_lina':
>>> ../../aenv~/aenv~.c:143: error: `x' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c: At top level:
>>> ../../aenv~/aenv~.c:146: error: parse error before '*' token
>>> ../../aenv~/aenv~.c: In function `aenv_loga':
>>> ../../aenv~/aenv~.c:148: error: `x' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c: At top level:
>>> ../../aenv~/aenv~.c:151: error: parse error before '*' token
>>> ../../aenv~/aenv~.c: In function `aenv_zero':
>>> ../../aenv~/aenv~.c:153: error: `x' undeclared (first use in this   
>>> function)
>>> ../../aenv~/aenv~.c: In function `aenv_tilde_setup':
>>> ../../aenv~/aenv~.c:159: warning: implicit declaration of function   
>>> `class_new'
>>> ../../aenv~/aenv~.c:159: error: `t_newmethod' undeclared (first use  
>>> in  this function)
>>> ../../aenv~/aenv~.c:159: error: parse error before "aenv_new"
>>> ../../aenv~/aenv~.c:160: warning: implicit declaration of function   
>>> `class_sethelpsymbol'
>>> ../../aenv~/aenv~.c:161: warning: implicit declaration of function   
>>> `class_addmethod'
>>> ../../aenv~/aenv~.c:161: error: `t_method' undeclared (first use in   
>>> this function)
>>> ../../aenv~/aenv~.c:161: error: parse error before "aenv_dsp"
>>> ../../aenv~/aenv~.c:162: warning: implicit declaration of function   
>>> `class_addfloat'
>>> ../../aenv~/aenv~.c:162: error: parse error before "aenv_float"
>>> ../../aenv~/aenv~.c:163: error: parse error before "aenv_lina"
>>> ../../aenv~/aenv~.c:164: error: parse error before "aenv_loga"
>>> ../../aenv~/aenv~.c:165: error: parse error before "aenv_zero"
>>> make: *** [aenv~.pd_darwin] Error 1
>>>
>>>
>>>
>> attacksyour.net/pi
>> _______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->  
>> http://iem.at/cgi-bin/mailman/listinfo/pd-list
>
>
> -- 
> enrike
>
>
>
>
>
attacksyour.net/pi





More information about the Pd-list mailing list