[PD] Successfully compiled Mac OS X Intel externals

David NG McCallum d at mentalfloss.ca
Fri Sep 22 07:03:19 CEST 2006


Just so everyone knows, I've had almost no problems building externals
on an intel mactel using the existing Pd-extended framework and
replacing the source with the latest. (so "make flext", "make zexy" in
the externals dir, etc.)

With much thanks to H-C!

David

On 21/09/06, Stefano Papetti <papetti at sci.univr.it> wrote:
> Hi all,
>
> it seems that some people still have doubts about building externals for
> Mac OS X... so, last week I successfully compiled a few externals for Mac
> OS X Intel and PPC.
> Here are the important parts from one of my makefiles (Intel Mac):
>
> MACOSXCFLAGS = -DMACOSX -DPD
>
> OPTIM = -O2
> PARANOID = -Wall -W -Wstrict-prototypes \
>     -Wno-unused -Wno-parentheses -Wno-switch
>
> MACOSXSOUNDINCLUDE = -I$(RESOS)/modal_object -I$(RESOS)/waveguide_object
> -I$(RESOS)/inertial_object \
>                         -I$(INTERS)/impact_interactor -I$(INTERS)/linpact_interactor
> -I$(INTERS)/friction_interactor
>
> CFLAGS = $(MACOSXCFLAGS) $(MACOSXINCLUDE) $(MACOSXSOUNDINCLUDE) $(OPTIM)
> $(PARANOID)
>
> TARGET = friction_2modalb~
>
> OBJ = friction_interactor.o modal_obj_b.o matrix_calc.o
>
> all:    $(TARGET).pd_darwin install
>
> $(TARGET).pd_darwin:    $(TARGET).o $(OBJ)
>         cd $(OBJDIR) ; \
>         $(CC) -arch i386 -bundle -undefined suppress -flat_namespace \
>         -o $(TARGET).pd_darwin $(TARGET).o $(OBJ) -lm
>
> $(TARGET).o:    $(TARGET).c \
>                 pd_modules.h \
>                 friction_interactor.h \
>                 modal_obj_b.h \
>                 matrix_calc.h
>
> install:
>         -strip -x $(OBJDIR)/$(TARGET).pd_darwin
>         -mv $(OBJDIR)/$(TARGET).pd_darwin $(MACOSXBINDIR)
>
> %.o:    %.c \
>         pd_modules.h
>         [ -d $(TOP)/obj_macosx ] || mkdir $(TOP)/obj_macosx
>         $(CC) -g $(CFLAGS) -c -o $(OBJDIR)/$@ $<
>
>
> and to compile on a G4 I just changed -arch i386 to -arch ppc.
> They work great!
>
> Hope this helps.
>
> Greetings,
> Stefano
>
>
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>


-- 
__ _  _  _  __ _
http://sintheta.org




More information about the Pd-list mailing list