[PD] "Wrong architecture" - when compiling objects
Hans-Christoph Steiner
hans at at.or.at
Mon Apr 18 21:13:16 CEST 2011
You're best bet is to use the library/makefile template, it'll handle
Debian/Ubuntu, GNU/Linux, Mac OS X Universal PowerPC/i386/x86_64,
Windows/MinGW, Windows/Cygwin, Android and iOS. With most objects,
you'll get that all with no extra effort:
http://puredata.info/docs/developer/LibraryTemplate
This also might give you a 'wrong architecture' warning when linking
if your version of Pd is not built as a Universal, which is ussualy is
not. Its a harmless warning in this case.
.hc
On Apr 18, 2011, at 1:37 PM, Jaime Oliver wrote:
> 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 at 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 at 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)
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
----------------------------------------------------------------------------
Access to computers should be unlimited and total. - the hacker ethic
More information about the Pd-list
mailing list