[PD] OSX compile problem
Joshua McFadden
josh at mindsound.org
Sat Sep 28 00:19:54 CEST 2002
Chris,
I've been reading through the source, and I'm totally confused about
this macro. I found it myself and commented it out - the macro, which
is osx-specific and which directly conflicts with the standard
definition, is used nowhere else in the pd source! Anyway, commenting
it out causes pd to compile, but then pd doesn't run. It just
segfaults immediately with no other errors. Anyone have advice about
that?
-Josh
On Friday, September 27, 2002, at 05:16 PM, chris clepper wrote:
> open m_pd.h in the /src dir. scroll down to the bottom of the file
> and you will see this:
>
> #ifdef MACOSX
> #define cabs() smerdyakov(void)
> #endif
>
> comment or delete it.
>
> cgc
>
>
> Hello, all! 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). I
> get this problem when I try to compile:
>
> cc -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused
> -Wno-parentheses -Wno-switch -O2 -DMACOSX -I/usr/X11R6/include
> -I../portaudio/pa_common -I../portaudio/pablio
> -I../portaudio/portmidi-macosx -Wno-error
> -DINSTALL_PREFIX=\"/usr/local\" -I. -c -o ../obj/g_text.o g_text.c
> /usr/include/architecture/ppc/math.h:440: too many args (1) to macro
> 'cabs' (0 expected)
> cpp-precomp: warning: errors during smart preprocessing, retrying in
> basic mode
> make: *** [g_text.o] Error 1
>
> I'm totally baffled about that header file - the complex abs macro
> 'cabs' _does_ take an argument:
>
> [lasa:~/runtemp/pd-0.35-0/src] josh% grep cabs
> /usr/include/architecture/ppc/math.h
> extern double cabs ( _complex z );
>
> Is there something else that's wrong? The only caveat I can find for
> OSX is that I need to have Tcl installed - I have it in two different
> places. :) Anybody have a suggestion?
>
> Thanks!!
> --
> Joshua McFadden
> http://mindsound.org/
>
>
> _______________________________________________
> PD-list mailing list
> PD-list at iem.kug.ac.at
> http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
>
>
>
> --
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2219 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20020927/dfac2269/attachment.bin>
More information about the Pd-list
mailing list