<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Write your own Pure Data External! (Part 4)</title>
	<atom:link href="http://gregsurges.com/programming/write-your-own-pure-data-external-part-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://gregsurges.com/programming/write-your-own-pure-data-external-part-4/</link>
	<description>Composer of Electronic and Chamber Music, Freelance Programmer</description>
	<lastBuildDate>Tue, 02 Aug 2011 21:21:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Guillermo Álvarez</title>
		<link>http://gregsurges.com/programming/write-your-own-pure-data-external-part-4/comment-page-1/#comment-3463</link>
		<dc:creator>Guillermo Álvarez</dc:creator>
		<pubDate>Tue, 31 May 2011 00:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://gregsurges.com/?p=317#comment-3463</guid>
		<description>This patch, makes compilation on OSX to use the correct architecture based on current pd executable arch.

It is not so clean, but it works. By default it compiles in x86_64 so when loading with pd-extended (that is 32), it doesn&#039;t work.

By the way. Thanks for the great tutorial.

--- a/makefile
+++ b/makefile
@@ -80,8 +80,9 @@ LINUXINCLUDE =  -I$(PDSRCDIR)
 
 pd_darwin: $(TARGETS)
 
+ARCH = `(file $(PDROOT)/bin/pd &#124; grep i386 &gt; /dev/null) &amp;&amp; echo &quot;i386&quot; &#124;&#124; echo &quot;x86_64&quot;`
 DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
-    -Wno-unused -Wno-parentheses -Wno-switch
+    -Wno-unused -Wno-parentheses -Wno-switch -arch $(ARCH)
 
 DARWININCLUDE = -I$(PDSRCDIR)</description>
		<content:encoded><![CDATA[<p>This patch, makes compilation on OSX to use the correct architecture based on current pd executable arch.</p>
<p>It is not so clean, but it works. By default it compiles in x86_64 so when loading with pd-extended (that is 32), it doesn&#8217;t work.</p>
<p>By the way. Thanks for the great tutorial.</p>
<p>&#8212; a/makefile<br />
+++ b/makefile<br />
@@ -80,8 +80,9 @@ LINUXINCLUDE =  -I$(PDSRCDIR)</p>
<p> pd_darwin: $(TARGETS)</p>
<p>+ARCH = `(file $(PDROOT)/bin/pd | grep i386 &gt; /dev/null) &amp;&amp; echo &#8220;i386&#8243; || echo &#8220;x86_64&#8243;`<br />
 DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \<br />
-    -Wno-unused -Wno-parentheses -Wno-switch<br />
+    -Wno-unused -Wno-parentheses -Wno-switch -arch $(ARCH)</p>
<p> DARWININCLUDE = -I$(PDSRCDIR)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

