I worked it out just putting:  -m32

it makes it compile for 32bits

thanks

2011/4/18 Jaime Oliver <jaime.oliver2@gmail.com>
well, in 10.6 I believe you should be trying to build a .d_fat
external, not a .pd_darwin

so, you should be executing: make roughness.d_fat

and the make file something like this:

////////////////////////////////////////////////////////////////////////////////////////////////////////////////

# ----------------------- Mac OSX -----------------------

d_fat: $(NAME).d_fat

.SUFFIXES: .d_fat

DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
   -Wno-unused -Wno-parentheses -Wno-switch

.c.d_fat:
       $(CC) -arch i386 -arch ppc $(DARWINCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
       $(CC) -arch i386 -arch ppc -bundle -undefined suppress -flat_namespace \
           -o $*.d_fat $*.o
       rm -f $*.o

# ----------------------------------------------------------

clean:
       rm -f *.o *.pd_* so_locations

////////////////////////////////////////////////////////////////////////////////////////////////////////////////

On Sun, Apr 17, 2011 at 11:05 PM, Alexandre Porres <porres@gmail.com> wrote:
> Hey folks, I really suck at compiling objects, and I'm getting this problem
> that when I try to load the object I compiled in my mac os 10.6.7 I get
> this "Wrong architecture" problem.
> Is it a pretty straightforward situation or do I need to give out more info?
> here's what's in the build file
>
>
> NAME=roughness
> cc -DPD -O0 -g -fnested-functions -Wall -Wno-unused-parameter
> -Wno-parentheses -Wno-switch  -I ./  -o $NAME.o -c $NAME.c &&
> cc -bundle -undefined suppress  -flat_namespace -o $NAME.pd_darwin $NAME.o
>
> thanks
>
> _______________________________________________
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>



--
Jaime E Oliver LR

www.jaimeoliver.pe

858 750 0924 (cel)
858 202 1522 (home)