[PD] Install object on OSX

Michael McGonagle fndsnd at rcnchicago.com
Thu Jan 30 16:13:17 CET 2003

Hello Alex and Olaf,

***I get this same error (warning), but it really does not seem to 
matter. (Please correct me if I am wrong, my binaries work). I did try 
removing the '#include <math.h>' myself, and it does not work then.

Basically, your makefile is telling the compiler to treat all warnings 
as errors. If you remove the option '-Werror' from the call to cc. This 
will probably be in a MACRO or something like DARWINFLAGS.

***The second error that you are getting is from trying to copy a file 
(it is the help file for the timebang external). So, you might have to 
look in the source directory for this file, and if it is not there, you 
might have to change the makefile install target to remove the copying 
of this file.

***Also, when you are running 'make' you should be running with the 
commandline option (unless your makefile is very different) of:

<orb> make pd_darwin

The option 'pd_darwin' tells make to make the target for the Darwin 
system. When all is finished, you should have a file with the name 
'extern.pd_darwin'. This file will be what PD will link up to when you run.

I just looked at the makefile for timebang, and if you run it with 'make 
pd_darwin', everything should compile as you need it. The 'install' 
phase does not exsist, as the last thing you will end up with is a link 
to the external you just compiled. This is the part of the OSX compile 
cycle that I am not so sure about. This last line in the cycle has it 
create a soft link to the external, but it also puts it in the parent 
directory of the external. If you compare the make cycle for the OSX to 
the other targets in the makefile, you will notice that not all 
platforms do this linking thing.

So, what it comes down to is that there needs to be some sort of 
standardization on how things are handle accross various platforms.


Olaf Matthes wrote:
> Hi Alex,
> try to delete the line "#include <math.h>" from timebang.c. This include is
> not needed for timebang....
> You also have to type "make darwin" (instead of just "make") otherwise the
> system would attempt to build the Linux version.
> Olaf
> Alex from Idoia schrieb:
>>I have downloaded the Developer Tools from apple in order to install
>>external object using make command line.
>>After installing the package I tried to install the timebang object and
>>I got the following:
>>Last login: Thu Jan 30 11:00:57 on ttyp1
>>Welcome to Darwin!
>>[Alexs-Computer:~] alex% cd /usr/local/pd/extra/timebang
>>[Alexs-Computer:pd/extra/timebang] alex% make clean
>>rm -f *.o *.pd_* so_locations
>>[Alexs-Computer:pd/extra/timebang] alex% make
>>cc -O2 -Wall -DPD -fPIC -DPD -DUNIX -O2 -funroll-loops
>>-fomit-frame-pointer -Wall -W -Wshadow -Wstrict-prototypes -Werror
>>-Wno-unused -Wno-parentheses -Wno-switch -I../../src  -c timebang.c
>>cc1: warnings being treated as errors
>>In file included from /usr/include/math.h:24,
>>                  from timebang.c:27:
>>/usr/include/architecture/ppc/math.h:228: warning: declaration of `exp'
>>shadows a global declaration
>>/usr/include/architecture/ppc/math.h:214: warning: shadowed declaration
>>is here
>>/usr/include/architecture/ppc/math.h:229: warning: declaration of `exp'
>>shadows a global declaration
>>/usr/include/architecture/ppc/math.h:214: warning: shadowed declaration
>>is here
>>make: *** [timebang.pd_linux] Error 1
>>[Alexs-Computer:pd/extra/timebang] alex% make install
>>cp help-*.pd ../../doc/5.reference
>>cp: help-*.pd: No such file or directory
>>make: *** [install] Error 1
>>[Alexs-Computer:pd/extra/timebang] alex%
>>Can somebody explain why I got those problems ?
>>PD-list mailing list
>>PD-list at iem.kug.ac.at
> _______________________________________________
> PD-list mailing list
> PD-list at iem.kug.ac.at
> http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list

More information about the Pd-list mailing list