I worked it out just putting:  -m32<br><br><div>it makes it compile for 32bits</div><div><br></div><div>thanks</div><div><br><div class="gmail_quote">2011/4/18 Jaime Oliver <span dir="ltr">&lt;<a href="mailto:jaime.oliver2@gmail.com">jaime.oliver2@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">well, in 10.6 I believe you should be trying to build a .d_fat<br>
external, not a .pd_darwin<br>
<br>
so, you should be executing: make roughness.d_fat<br>
<br>
and the make file something like this:<br>
<br>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<br>
# ----------------------- Mac OSX -----------------------<br>
<br>
d_fat: $(NAME).d_fat<br>
<br>
.SUFFIXES: .d_fat<br>
<br>
DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \<br>
    -Wno-unused -Wno-parentheses -Wno-switch<br>
<br>
.c.d_fat:<br>
        $(CC) -arch i386 -arch ppc $(DARWINCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c<br>
        $(CC) -arch i386 -arch ppc -bundle -undefined suppress -flat_namespace \<br>
            -o $*.d_fat $*.o<br>
        rm -f $*.o<br>
<br>
# ----------------------------------------------------------<br>
<br>
clean:<br>
        rm -f *.o *.pd_* so_locations<br>
<br>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<div><div></div><div class="h5"><br>
On Sun, Apr 17, 2011 at 11:05 PM, Alexandre Porres &lt;<a href="mailto:porres@gmail.com">porres@gmail.com</a>&gt; wrote:<br>
&gt; Hey folks, I really suck at compiling objects, and I&#39;m getting this problem<br>
&gt; that when I try to load the object I compiled in my mac os 10.6.7 I get<br>
&gt; this &quot;Wrong architecture&quot; problem.<br>
&gt; Is it a pretty straightforward situation or do I need to give out more info?<br>
&gt; here&#39;s what&#39;s in the build file<br>
&gt;<br>
&gt;<br>
&gt; NAME=roughness<br>
&gt; cc -DPD -O0 -g -fnested-functions -Wall -Wno-unused-parameter<br>
&gt; -Wno-parentheses -Wno-switch  -I ./  -o $NAME.o -c $NAME.c &amp;&amp;<br>
&gt; cc -bundle -undefined suppress  -flat_namespace -o $NAME.pd_darwin $NAME.o<br>
&gt;<br>
&gt; thanks<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; UNSUBSCRIBE and account-management -&gt;<br>
&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt;<br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Jaime E Oliver LR<br>
<br>
<a href="http://www.jaimeoliver.pe" target="_blank">www.jaimeoliver.pe</a><br>
<br>
858 750 0924 (cel)<br>
858 202 1522 (home)<br>
</font></blockquote></div><br></div>