<?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: How do I compile Mac software?</title>
	<atom:link href="http://pinds.com/2005/11/15/how-do-i-compile-mac-software/feed/" rel="self" type="application/rss+xml" />
	<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/</link>
	<description>personal growth, entrepreneurship, food, technology.</description>
	<lastBuildDate>Wed, 08 Sep 2010 12:40:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Guan Yang</title>
		<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/comment-page-1/#comment-753</link>
		<dc:creator>Guan Yang</dc:creator>
		<pubDate>Tue, 15 Nov 2005 21:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://pinds.com/2007/07/27/how-do-i-compile-mac-software#comment-753</guid>
		<description>1) You need a newer version of Xcode.

2) FlickrExport is open source, but it depends on the FlickrKit library, which isn&#039;t. There are many instances of flickr.com&#039;s hostname hardcorded in FlickrKit.</description>
		<content:encoded><![CDATA[<p>1) You need a newer version of Xcode.</p>
<p>2) FlickrExport is open source, but it depends on the FlickrKit library, which isn&#8217;t. There are many instances of flickr.com&#8217;s hostname hardcorded in FlickrKit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Pind</title>
		<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/comment-page-1/#comment-754</link>
		<dc:creator>Lars Pind</dc:creator>
		<pubDate>Tue, 15 Nov 2005 21:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://pinds.com/2007/07/27/how-do-i-compile-mac-software#comment-754</guid>
		<description>Thanks, Guan.

svn co http://speirs.org/svn/FlickrKit/trunk  gets you FlickrKit.

Downloading Xcode 2.2 -- 2 hours 30 minutes to go.</description>
		<content:encoded><![CDATA[<p>Thanks, Guan.</p>
<p>svn co <a href="http://speirs.org/svn/FlickrKit/trunk" rel="nofollow">http://speirs.org/svn/FlickrKit/trunk</a>  gets you FlickrKit.</p>
<p>Downloading Xcode 2.2 &#8212; 2 hours 30 minutes to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Pind</title>
		<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/comment-page-1/#comment-755</link>
		<dc:creator>Lars Pind</dc:creator>
		<pubDate>Tue, 15 Nov 2005 21:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://pinds.com/2007/07/27/how-do-i-compile-mac-software#comment-755</guid>
		<description>I have it *almost* working, but now I&#039;m stuck.

I managed to compile the thing, and even produce a .dmg with the installer. But then when I open iPhoto, it doesn&#039;t work, and my console says this:

&lt;typo:code&gt;
2005-11-16 09:47:50.388 iPhoto[5638] *** -[NSBundle load]: Error loading code /Applications/iPhoto.app/Contents/PlugIns/FlickrExport.iPhotoExporter/Contents/MacOS/FlickrExport for bundle /Applications/iPhoto.app/Contents/PlugIns/FlickrExport.iPhotoExporter, error code 4 (link edit error code 4, error number 0 (Library not loaded: @executable_path/../Frameworks/Growl.framework/Versions/A/Growl
  Referenced from: /Applications/iPhoto.app/Contents/PlugIns/FlickrExport.iPhotoExporter/Contents/MacOS/FlickrExport
  Reason: image not found))
2005-11-16 09:47:50.388 iPhoto[5638] Not a valid plugin: /Applications/iPhoto.app/Contents/PlugIns/FlickrExport.iPhotoExporter
&lt;/typo:code&gt;

If I leave everything in the plugin, and just replace the FlickrExport with the one that Fraser does, then it works. Switch back to mine and it doesn&#039;t.

So it&#039;s something about the linking that I can&#039;t figure out. I&#039;ve tried with both the precompiled growl SDK, and with a compile-from-scratch, same result.

How can I see what libraries a binary links to? Anything else I can try? If you want me to help you get this setup on your machine, let me know, there was quite a bit of detective work in getting everything working this far.</description>
		<content:encoded><![CDATA[<p>I have it *almost* working, but now I&#8217;m stuck.</p>
<p>I managed to compile the thing, and even produce a .dmg with the installer. But then when I open iPhoto, it doesn&#8217;t work, and my console says this:</p>
<p>&lt;typo:code&gt;<br />
2005-11-16 09:47:50.388 iPhoto[5638] *** -[NSBundle load]: Error loading code /Applications/iPhoto.app/Contents/PlugIns/FlickrExport.iPhotoExporter/Contents/MacOS/FlickrExport for bundle /Applications/iPhoto.app/Contents/PlugIns/FlickrExport.iPhotoExporter, error code 4 (link edit error code 4, error number 0 (Library not loaded: @executable_path/../Frameworks/Growl.framework/Versions/A/Growl<br />
  Referenced from: /Applications/iPhoto.app/Contents/PlugIns/FlickrExport.iPhotoExporter/Contents/MacOS/FlickrExport<br />
  Reason: image not found))<br />
2005-11-16 09:47:50.388 iPhoto[5638] Not a valid plugin: /Applications/iPhoto.app/Contents/PlugIns/FlickrExport.iPhotoExporter<br />
&lt;/typo:code&gt;</p>
<p>If I leave everything in the plugin, and just replace the FlickrExport with the one that Fraser does, then it works. Switch back to mine and it doesn&#8217;t.</p>
<p>So it&#8217;s something about the linking that I can&#8217;t figure out. I&#8217;ve tried with both the precompiled growl SDK, and with a compile-from-scratch, same result.</p>
<p>How can I see what libraries a binary links to? Anything else I can try? If you want me to help you get this setup on your machine, let me know, there was quite a bit of detective work in getting everything working this far.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Pind</title>
		<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/comment-page-1/#comment-756</link>
		<dc:creator>Lars Pind</dc:creator>
		<pubDate>Tue, 15 Nov 2005 21:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://pinds.com/2007/07/27/how-do-i-compile-mac-software#comment-756</guid>
		<description>Guan helped me get to the next step.

Here&#039;s what otool -L says about mine:

&lt;typo:code&gt;
FlickrExport:
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 11.0.0)
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
        @executable_path/../Frameworks/Growl.framework/Versions/A/Growl (compatibility version 1.0.0, current version 1.0.0)
        @executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/FlickrKit.framework/Versions/A/FlickrKit (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.2)
&lt;/typo:code&gt;

And here&#039;s what it says about Fraser&#039;s:

&lt;typo:code&gt;
FlickrExport:
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 11.0.0)
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
        @executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/Growl.framework/Versions/A/Growl (compatibility version 1.0.0, current version 1.0.0)
        @executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/FlickrKit.framework/Versions/A/FlickrKit (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.2.1)
&lt;/typo:code&gt;

Note how @executable_path needs to be relative to iPhoto, not to the plugin. And note also how even I have the right path for FlickrKit, but not for Growl.

How do I coerce Xcode into doing the right thing here?</description>
		<content:encoded><![CDATA[<p>Guan helped me get to the next step.</p>
<p>Here&#8217;s what otool -L says about mine:</p>
<p>&lt;typo:code&gt;<br />
FlickrExport:<br />
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 11.0.0)<br />
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)<br />
        @executable_path/../Frameworks/Growl.framework/Versions/A/Growl (compatibility version 1.0.0, current version 1.0.0)<br />
        @executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/FlickrKit.framework/Versions/A/FlickrKit (compatibility version 1.0.0, current version 1.0.0)<br />
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.2)<br />
&lt;/typo:code&gt;</p>
<p>And here&#8217;s what it says about Fraser&#8217;s:</p>
<p>&lt;typo:code&gt;<br />
FlickrExport:<br />
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 11.0.0)<br />
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)<br />
        @executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/Growl.framework/Versions/A/Growl (compatibility version 1.0.0, current version 1.0.0)<br />
        @executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/FlickrKit.framework/Versions/A/FlickrKit (compatibility version 1.0.0, current version 1.0.0)<br />
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.2.1)<br />
&lt;/typo:code&gt;</p>
<p>Note how @executable_path needs to be relative to iPhoto, not to the plugin. And note also how even I have the right path for FlickrKit, but not for Growl.</p>
<p>How do I coerce Xcode into doing the right thing here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Aufflick</title>
		<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/comment-page-1/#comment-757</link>
		<dc:creator>Mark Aufflick</dc:creator>
		<pubDate>Tue, 15 Nov 2005 21:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://pinds.com/2007/07/27/how-do-i-compile-mac-software#comment-757</guid>
		<description>grr - sill Ajax posting thingamy crashed my firefox, so here goes again!

I don&#039;t know why the Growl link path doesn&#039;t match the (correct) one for the FlikrKit framework, but you can manually solve the problem like so:

&lt;typo:code&gt;PowerBook-G4$ otool -L FlickrExport
FlickrExport:
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 9.0.0)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
	@executable_path/../Frameworks/Growl.framework/Versions/A/Growl (compatibility version 1.0.0, current version 1.0.0)
	@executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/FlickrKit.framework/Versions/A/FlickrKit (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 47.1.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.1.3)

PowerBook-G4$ install_name_tool -change @executable_path/../Frameworks/Growl.framework/Versions/A/Growl @executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/Growl.framework/Versions/A/Growl FlickrExport

PowerBook-G4$ otool -L FlickrExport
FlickrExport:
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 9.0.0)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
	@executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/Growl.framework/Versions/A/Growl (compatibility version 1.0.0, current version 1.0.0)
	@executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/FlickrKit.framework/Versions/A/FlickrKit (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 47.1.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.1.3)

PowerBook-G4$&lt;/typo:code&gt;

the install_name_tool command is in my path as /usr/bin/install_name_tool.

If you can&#039;t figure out how to make Xcode/gcc link it right in the first place, I don&#039;t see aproblem with adding this command to a script step in the build process.

Hvad skal vi have til frokost?</description>
		<content:encoded><![CDATA[<p>grr &#8211; sill Ajax posting thingamy crashed my firefox, so here goes again!</p>
<p>I don&#8217;t know why the Growl link path doesn&#8217;t match the (correct) one for the FlikrKit framework, but you can manually solve the problem like so:</p>
<p>&lt;typo:code&gt;PowerBook-G4$ otool -L FlickrExport<br />
FlickrExport:<br />
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 9.0.0)<br />
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)<br />
	@executable_path/../Frameworks/Growl.framework/Versions/A/Growl (compatibility version 1.0.0, current version 1.0.0)<br />
	@executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/FlickrKit.framework/Versions/A/FlickrKit (compatibility version 1.0.0, current version 1.0.0)<br />
	/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 47.1.0)<br />
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.1.3)</p>
<p>PowerBook-G4$ install_name_tool -change @executable_path/../Frameworks/Growl.framework/Versions/A/Growl @executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/Growl.framework/Versions/A/Growl FlickrExport</p>
<p>PowerBook-G4$ otool -L FlickrExport<br />
FlickrExport:<br />
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 9.0.0)<br />
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)<br />
	@executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/Growl.framework/Versions/A/Growl (compatibility version 1.0.0, current version 1.0.0)<br />
	@executable_path/../PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/FlickrKit.framework/Versions/A/FlickrKit (compatibility version 1.0.0, current version 1.0.0)<br />
	/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 47.1.0)<br />
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.1.3)</p>
<p>PowerBook-G4$&lt;/typo:code&gt;</p>
<p>the install_name_tool command is in my path as /usr/bin/install_name_tool.</p>
<p>If you can&#8217;t figure out how to make Xcode/gcc link it right in the first place, I don&#8217;t see aproblem with adding this command to a script step in the build process.</p>
<p>Hvad skal vi have til frokost?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Pind</title>
		<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/comment-page-1/#comment-758</link>
		<dc:creator>Lars Pind</dc:creator>
		<pubDate>Tue, 15 Nov 2005 21:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://pinds.com/2007/07/27/how-do-i-compile-mac-software#comment-758</guid>
		<description>You rock! Thanks so much for figuring out how to solve this.

Sorry about crashing your browser.

Vi skal have sild!</description>
		<content:encoded><![CDATA[<p>You rock! Thanks so much for figuring out how to solve this.</p>
<p>Sorry about crashing your browser.</p>
<p>Vi skal have sild!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Pind</title>
		<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/comment-page-1/#comment-759</link>
		<dc:creator>Lars Pind</dc:creator>
		<pubDate>Tue, 15 Nov 2005 21:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://pinds.com/2007/07/27/how-do-i-compile-mac-software#comment-759</guid>
		<description>Here are some instructions I receieved straight from the horse&#039;s mouth (Fraser):

1. .xcodeproj files are only supported in (IIRC) Xcode 2.2 and later.

2. You need to build your own version of Growl - the precompiled one has an incorrect (for our purposes) install path.  You can:

2.1 Check out a particular tag of Growl from svn.  I usually pull the latest release (0.7.4 right now?)

2.2 Open the Growl project and set the value of INSTALL_PATH for the Growl.framework target to:

@executable_path/../Contents/PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/

3.Make sure the FlickrExport project references that framework (and make sure it gets copied into Frameworks/ in the Copy Files build phase.</description>
		<content:encoded><![CDATA[<p>Here are some instructions I receieved straight from the horse&#8217;s mouth (Fraser):</p>
<p>1. .xcodeproj files are only supported in (IIRC) Xcode 2.2 and later.</p>
<p>2. You need to build your own version of Growl &#8211; the precompiled one has an incorrect (for our purposes) install path.  You can:</p>
<p>2.1 Check out a particular tag of Growl from svn.  I usually pull the latest release (0.7.4 right now?)</p>
<p>2.2 Open the Growl project and set the value of INSTALL_PATH for the Growl.framework target to:</p>
<p>@executable_path/../Contents/PlugIns/FlickrExport.iPhotoExporter/Contents/Frameworks/</p>
<p>3.Make sure the FlickrExport project references that framework (and make sure it gets copied into Frameworks/ in the Copy Files build phase.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Perreault</title>
		<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/comment-page-1/#comment-760</link>
		<dc:creator>Matt Perreault</dc:creator>
		<pubDate>Tue, 15 Nov 2005 21:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://pinds.com/2007/07/27/how-do-i-compile-mac-software#comment-760</guid>
		<description>I&#039;ve been trying to compile FlickrExport 1.3.4 and I&#039;m having the same problems with the Growl error thing... I really don&#039;t know much about what I&#039;m doing... Where do I find the Growl source if I need to compile my own version?

Thanks!
-Matt</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to compile FlickrExport 1.3.4 and I&#8217;m having the same problems with the Growl error thing&#8230; I really don&#8217;t know much about what I&#8217;m doing&#8230; Where do I find the Growl source if I need to compile my own version?</p>
<p>Thanks!<br />
-Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Perreault</title>
		<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/comment-page-1/#comment-761</link>
		<dc:creator>Matt Perreault</dc:creator>
		<pubDate>Tue, 15 Nov 2005 21:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://pinds.com/2007/07/27/how-do-i-compile-mac-software#comment-761</guid>
		<description>I found the Growl Source... Now I&#039;m trying to compile it for myself... which file do I change the target in???  I&#039;m referring to what you describe in post #7...</description>
		<content:encoded><![CDATA[<p>I found the Growl Source&#8230; Now I&#8217;m trying to compile it for myself&#8230; which file do I change the target in???  I&#8217;m referring to what you describe in post #7&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Pind</title>
		<link>http://pinds.com/2005/11/15/how-do-i-compile-mac-software/comment-page-1/#comment-762</link>
		<dc:creator>Lars Pind</dc:creator>
		<pubDate>Tue, 15 Nov 2005 21:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://pinds.com/2007/07/27/how-do-i-compile-mac-software#comment-762</guid>
		<description>I never acually got around to compiling this, since right after Fraser told me about it, he released FlickrExport with 23 support himself. I&#039;d switched to a new computer, and getting this all setup for compilation when normally I don&#039;t do any Xcode stuff was just too painful. Sorry.</description>
		<content:encoded><![CDATA[<p>I never acually got around to compiling this, since right after Fraser told me about it, he released FlickrExport with 23 support himself. I&#8217;d switched to a new computer, and getting this all setup for compilation when normally I don&#8217;t do any Xcode stuff was just too painful. Sorry.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
