[PD] Compiling netsend~/netreceive~ on intel mac

Hans-Christoph Steiner hans at eds.org
Mon Mar 31 17:37:10 CEST 2008


I added these to SVN already, if someone adds them to externals/ 
Makefile, then they can included in the Pd-extended builds.

http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/ 
olafmatt/netsend~/

.hc

On Mar 31, 2008, at 7:40 AM, bsoisoi wrote:
> Have you been able to build netsend~/netreceive~?  After a few tweaks,
> I was able to get the full piece built.   You can also grab the
> binaries from Hans' latest i386 OS X build:
> http://autobuild.puredata.info/auto-build/2008-02-22/
>
> In order to get the two pieces to build, you'll need to augment two
> things.  The error you're seeing below is due to your machine not
> being too friendly with some ASM code in the float_cast.h file.  This
> bit of code is well above my head, but if we remove the float_cast.h
> optimizations, they'll build.  With the snippet below, you can either
> place it within the Mac OS X section of float_cast.h, or delete
> everything and put this in it:
>
> #define  HAVE_LRINT_REPLACEMENT 0
> #include	<math.h>
> #define	lrint(dbl)		((int) (dbl))
> #define	lrintf(flt)		((int) (flt))
>
> You were also correct in that you need to have the DARWININCLUDE var
> inside the makefile point to your pd src, like so:
> DARWININCLUDE =  -I/Users/bz/Downloads/puredata-extended/pd/src -
> Iinclude
>
> Cheers,
> ~brandon
>
> On Mar 16, 2008, at 2:50 PM, Philip Rivera wrote:
>
>> I get the exact same thing.
>>
>> cc -DPD -DUNIX -DMACOSX -O2 -Wall -W -Wshadow -Wno-unused
>> -Wno-parentheses -Wno-switch -Iinclude -o netsend~.o -c netsend~.c
>> /var/folders/3L/3LX5MRuIHOG1akXB+RYg1U+++yU/-Tmp-//ccc4rLii.s:614:no
>> such instruction: `fctiw %st,%st'
>> /var/folders/3L/3LX5MRuIHOG1akXB+RYg1U+++yU/-Tmp-//ccc4rLii.s:615:no
>> such instruction: `stfd %st, -32(%ebp)'
>> make: *** [netsend~.pd_darwin] Error 1
>>
>>
>> Steffen Juul wrote:
>>>
>>> On 16/03/2008, at 0.38, Philip Rivera wrote:
>>>
>>>> I've been trying to compile Olaf Matthews netsend~ and netreceive~
>>>> objects for pd for an intel mac.  Has anyone had any success with
>>>> this, or has binaries already compiled.
>>>
>>> What error do you get?
>>>
>>> I can compile netreceive~ fine. Only need to alter the DARWININCLUDE
>>> variable in the makefile to point to the Pd source code, if it
>>> doesn't
>>> already.
>>>
>>> Wrt. netsend~ i get the following error:
>>>
>>> cc -DPD -DUNIX -DMACOSX -O2 -Wall -W -Wno-unused -Wno-parentheses
>>> -Wno-switch -I/My/Path/To/pd/src -Iinclude -o netsend~.o -c
>>> netsend~.c
>>> /var/tmp//cchTlZrk.s:597:no such instruction: `fctiw %st,%st'
>>> /var/tmp//cchTlZrk.s:598:no such instruction: `stfd %st,-32(%ebp)'
>>> make: *** [netsend~.pd_darwin] Error 1
>>>
>>>
>>
>>
>> _______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
>> listinfo/pd-list
>
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> listinfo/pd-list



------------------------------------------------------------------------ 
----

Man has survived hitherto because he was too ignorant to know how to  
realize his wishes.  Now that he can realize them, he must either  
change them, or perish.    -William Carlos Williams






More information about the Pd-list mailing list