<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [PD] OSX compile problem</title></head><body>
<div>open m_pd.h in the /src dir.&nbsp; scroll down to the bottom of
the file and you will see this:</div>
<div><br></div>
<div><tt><font size="+1" color="#236E25">#ifdef MACOSX<br>
#define cabs() smerdyakov(void)</font></tt></div>
<div><tt><font size="+1" color="#236E25">#endif</font></tt></div>
<div>&nbsp;</div>
<div>comment or delete it.</div>
<div><br></div>
<div>cgc</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite>Hello, all!&nbsp; After a bit of a
dormant period, I'm trying to get pd to compile on my OSX box (10.2,
all recent updates as far as I know).&nbsp; I get this problem when I
try to compile:<br>
<br>
cc -DPD -DUNIX&nbsp; -Wall -W -Wstrict-prototypes&nbsp; -Werror
-Wno-unused -Wno-parentheses -Wno-switch -O2&nbsp; -DMACOSX
-I/usr/X11R6/include
-I../portaudio/pa_common&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-I../portaudio/pablio -I../portaudio/portmidi-macosx -Wno-error
-DINSTALL_PREFIX=\&quot;/usr/local\&quot; -I. -c -o ../obj/g_text.o
g_text.c<br>
/usr/include/architecture/ppc/math.h:440: too many args (1) to macro
'cabs' (0 expected)<br>
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode<br>
make: *** [g_text.o] Error 1<br>
<br>
I'm totally baffled about that header file - the complex abs macro
'cabs' _does_ take an argument:<br>
<br>
[lasa:~/runtemp/pd-0.35-0/src] josh% grep cabs
/usr/include/architecture/ppc/math.h<br>
extern double cabs ( _complex z );<br>
<br>
Is there something else that's wrong?&nbsp; The only caveat I can find
for OSX is that I need to have Tcl installed - I have it in two
different places.&nbsp; :)&nbsp; Anybody have a suggestion?<br>
<br>
Thanks!!<br>
--<br>
Joshua McFadden<br>
http://mindsound.org/<br>
<br>
<br>
_______________________________________________<br>
PD-list mailing list<br>
PD-list@iem.kug.ac.at<br>
http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list</blockquote>
<div><br></div>
<div><br></div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
</body>
</html>