[PD-dev] Quick tip for compiling objects on Snow Leopard

2009-06-26 Thread Luke Iannini
Yo,
I installed OS X 10.6, which apparently defaults to compiling
everything for 64 bit, and I'm still running a 32-bit build of
Pd-extended.  So, trying to compile the latest iemguts gave me
Mach-o, but wrong architecture when trying to load the now 64-bit
compiled externals.

The trick is to add -m32 to the CFLAGS and -arch i386 to the LDFLAGS
in the Makefile to force gcc back to 32-bit mode (well, or use a
64-bit Pd but that's for another day).

Hope this helps anyone else on the bloody edge
Luke

___
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev


Re: [PD-dev] Quick tip for compiling objects on Snow Leopard

2009-06-26 Thread Hans-Christoph Steiner


We should get 64-bit builds going.  There is a part-time 10.5 build  
server, so it should be possible to make a 32/64-bit universal binary  
of the whole thing.  I wrote up a new, standalone Makefile that easily  
supports such builds, the idea is to have a single build system for  
each lib, and have it decentralized, instead of all in 'externals/ 
Makefile'.  Its in place for these libs in 'externals': apple, ext13,  
motex.  It should work with little effort for any lib that doesn't  
need ./configure (which is most).



.hc

On Jun 26, 2009, at 11:09 AM, Luke Iannini wrote:


Yo,
I installed OS X 10.6, which apparently defaults to compiling
everything for 64 bit, and I'm still running a 32-bit build of
Pd-extended.  So, trying to compile the latest iemguts gave me
Mach-o, but wrong architecture when trying to load the now 64-bit
compiled externals.

The trick is to add -m32 to the CFLAGS and -arch i386 to the LDFLAGS
in the Makefile to force gcc back to 32-bit mode (well, or use a
64-bit Pd but that's for another day).

Hope this helps anyone else on the bloody edge
Luke

___
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev





Access to computers should be unlimited and total.  - the hacker ethic



___
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev