<?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 To use Dynamic Libraries in Xcode 3.1 (using FMOD)</title>
	<atom:link href="http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/feed" rel="self" type="application/rss+xml" />
	<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod</link>
	<description></description>
	<lastBuildDate>Thu, 05 Aug 2010 17:47:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Martin Robinson</title>
		<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/comment-page-1#comment-10409</link>
		<dc:creator>Martin Robinson</dc:creator>
		<pubDate>Sat, 27 Feb 2010 16:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://brockwoolf.com/?p=169#comment-10409</guid>
		<description>Just trying to do this where more than one FMOD lib is used... you also need to change the library paths for the additional library linking to libfmodex.dylib. I&#039;m using libfmodevent.dylib for example and the script then needs to be something more like below (BTW I&#039;ve defined FMOD_SDK as a source tree in Xcode which is what that refers to):

&lt;code&gt;
mkdir &quot;$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks&quot;
cp -f $FMOD_SDK/fmod/api/lib/libfmodex.dylib &quot;$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/libfmodex.dylib&quot;
cp -f $FMOD_SDK/fmod/fmoddesignerapi/api/lib/libfmodevent.dylib &quot;$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/libfmodevent.dylib&quot;
install_name_tool -change ./libfmodex.dylib @loader_path/../Frameworks/libfmodex.dylib &quot;$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME&quot;
install_name_tool -change ./libfmodex.dylib @loader_path/../Frameworks/libfmodex.dylib &quot;$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/libfmodevent.dylib&quot;
install_name_tool -change ./libfmodevent.dylib @loader_path/../Frameworks/libfmodevent.dylib &quot;$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME&quot;

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Just trying to do this where more than one FMOD lib is used... you also need to change the library paths for the additional library linking to libfmodex.dylib. I'm using libfmodevent.dylib for example and the script then needs to be something more like below (BTW I've defined FMOD_SDK as a source tree in Xcode which is what that refers to):</p>
<p><code><br />
mkdir "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks"<br />
cp -f $FMOD_SDK/fmod/api/lib/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/libfmodex.dylib"<br />
cp -f $FMOD_SDK/fmod/fmoddesignerapi/api/lib/libfmodevent.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/libfmodevent.dylib"<br />
install_name_tool -change ./libfmodex.dylib @loader_path/../Frameworks/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME"<br />
install_name_tool -change ./libfmodex.dylib @loader_path/../Frameworks/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/libfmodevent.dylib"<br />
install_name_tool -change ./libfmodevent.dylib @loader_path/../Frameworks/libfmodevent.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME"</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#8211; Compile and Use Boost Libraries in Xcode &#38; Visual Studio BrockWoolf.com</title>
		<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/comment-page-1#comment-10368</link>
		<dc:creator>&#8211; Compile and Use Boost Libraries in Xcode &#38; Visual Studio BrockWoolf.com</dc:creator>
		<pubDate>Sun, 20 Sep 2009 04:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://brockwoolf.com/?p=169#comment-10368</guid>
		<description>[...] The actual process of scripting the dylib copy and modifying the darwin executable are already covered in another article I wrote here: How To use Dynamic Libraries in Xcode 3.1 [...]</description>
		<content:encoded><![CDATA[<p>[...] The actual process of scripting the dylib copy and modifying the darwin executable are already covered in another article I wrote here: How To use Dynamic Libraries in Xcode 3.1 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/comment-page-1#comment-10364</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Thu, 03 Sep 2009 15:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://brockwoolf.com/?p=169#comment-10364</guid>
		<description>@Steve

The FMOD package comes with example iPhone XCode projects which show how to set them up without the need of directly importing the dylib or making a run script. Check out the header search path and the xcconfig files.</description>
		<content:encoded><![CDATA[<p>@Steve</p>
<p>The FMOD package comes with example iPhone XCode projects which show how to set them up without the need of directly importing the dylib or making a run script. Check out the header search path and the xcconfig files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FengShuiAvenger</title>
		<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/comment-page-1#comment-10361</link>
		<dc:creator>FengShuiAvenger</dc:creator>
		<pubDate>Sat, 29 Aug 2009 10:44:25 +0000</pubDate>
		<guid isPermaLink="false">http://brockwoolf.com/?p=169#comment-10361</guid>
		<description>After desperately searching Apple&#039;s Mac OS X reference library, and trying numerous google searches, this article came up. Thanks for posting this, I can finally stop screaming at my monitor.</description>
		<content:encoded><![CDATA[<p>After desperately searching Apple's Mac OS X reference library, and trying numerous google searches, this article came up. Thanks for posting this, I can finally stop screaming at my monitor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brock</title>
		<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/comment-page-1#comment-10357</link>
		<dc:creator>Brock</dc:creator>
		<pubDate>Tue, 28 Jul 2009 11:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://brockwoolf.com/?p=169#comment-10357</guid>
		<description>No worries guys! Just glad to help out other Mac users :D</description>
		<content:encoded><![CDATA[<p>No worries guys! Just glad to help out other Mac users <img src='http://brockwoolf.com/blog/wordpress/wp-content/plugins/smilies-themer/MSN-Messenger/msn_laugh.png' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ojaswa</title>
		<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/comment-page-1#comment-10356</link>
		<dc:creator>Ojaswa</dc:creator>
		<pubDate>Tue, 28 Jul 2009 10:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://brockwoolf.com/?p=169#comment-10356</guid>
		<description>Thanks Brock!

Very helpful article indeed. you saved my time :)</description>
		<content:encoded><![CDATA[<p>Thanks Brock!</p>
<p>Very helpful article indeed. you saved my time <img src='http://brockwoolf.com/blog/wordpress/wp-content/plugins/smilies-themer/MSN-Messenger/msn_smiley.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash</title>
		<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/comment-page-1#comment-10249</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Mon, 18 May 2009 08:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://brockwoolf.com/?p=169#comment-10249</guid>
		<description>Thank you very much for the article.. its superb..</description>
		<content:encoded><![CDATA[<p>Thank you very much for the article.. its superb..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brock</title>
		<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/comment-page-1#comment-10241</link>
		<dc:creator>Brock</dc:creator>
		<pubDate>Fri, 15 May 2009 18:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://brockwoolf.com/?p=169#comment-10241</guid>
		<description>@Sean

Hey Sean, sorry for my late reply I have been immensely busy. Yes there are limitations to this technique, I have been told me someone one the interwebs that there is a better way to do this linking (although I have not actually been shown what it is). The advantage that this technique brings is that although it is a pain,  it is a one click build solution which is what we should aim for in our development. 

I am familiar with putting the libraries in the user&#039;s local library directory. I do however think this is an inferior approach because it means you have to touch a part of the system that requires admin privileges. What if another developer did the same thing with a different version of the framework? It&#039;s possible you could break another application if the frameworks are named identically. Also your uninstaller tool needs to remember to remove this directory when the user uninstalls your application. Otherwise it will take up space forever. The user will never even know it was installed there.

Those are the main reasons why I believe the framework should be bundled with the application. It binds with the Apple guidelines of a simplified &quot;Drag and drop&quot; install. And anyways, frameworks are usually pretty small these days.

Cheers,
Brock</description>
		<content:encoded><![CDATA[<p>@Sean</p>
<p>Hey Sean, sorry for my late reply I have been immensely busy. Yes there are limitations to this technique, I have been told me someone one the interwebs that there is a better way to do this linking (although I have not actually been shown what it is). The advantage that this technique brings is that although it is a pain,  it is a one click build solution which is what we should aim for in our development. </p>
<p>I am familiar with putting the libraries in the user's local library directory. I do however think this is an inferior approach because it means you have to touch a part of the system that requires admin privileges. What if another developer did the same thing with a different version of the framework? It's possible you could break another application if the frameworks are named identically. Also your uninstaller tool needs to remember to remove this directory when the user uninstalls your application. Otherwise it will take up space forever. The user will never even know it was installed there.</p>
<p>Those are the main reasons why I believe the framework should be bundled with the application. It binds with the Apple guidelines of a simplified "Drag and drop" install. And anyways, frameworks are usually pretty small these days.</p>
<p>Cheers,<br />
Brock</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/comment-page-1#comment-9375</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Wed, 11 Mar 2009 20:07:05 +0000</pubDate>
		<guid isPermaLink="false">http://brockwoolf.com/?p=169#comment-9375</guid>
		<description>Hi!  Great info.  I was trying to use this advice with Boost and I found out that there are some limitations to this technique (at least for command line tools).  For one thing, if the app is run as a script, the working directory will not (necessarily) be that of the executable, and the library will not be found.

Another option is to put dynamic libraries where they can be found e.g. /usr/local/lib.  Then you can skip the copy step and just drag the libs.  Of course, you would have to take this into account when deploying, but it works great for development!

If interested, I describe the steps in detail 

- Sean</description>
		<content:encoded><![CDATA[<p>Hi!  Great info.  I was trying to use this advice with Boost and I found out that there are some limitations to this technique (at least for command line tools).  For one thing, if the app is run as a script, the working directory will not (necessarily) be that of the executable, and the library will not be found.</p>
<p>Another option is to put dynamic libraries where they can be found e.g. /usr/local/lib.  Then you can skip the copy step and just drag the libs.  Of course, you would have to take this into account when deploying, but it works great for development!</p>
<p>If interested, I describe the steps in detail </p>
<p>- Sean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satyanarayana</title>
		<link>http://brockwoolf.com/blog/how-to-use-dynamic-libraries-in-xcode-31-using-fmod/comment-page-1#comment-9340</link>
		<dc:creator>satyanarayana</dc:creator>
		<pubDate>Thu, 26 Feb 2009 10:57:04 +0000</pubDate>
		<guid isPermaLink="false">http://brockwoolf.com/?p=169#comment-9340</guid>
		<description>Hi,

Thanks a lot for this article. It is really good. Could you please add the following description.
If it is user defined dynamic library then user has to set &quot;install name&quot; property to  ./dynamic library name (like ./libxyz.dylib).</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks a lot for this article. It is really good. Could you please add the following description.<br />
If it is user defined dynamic library then user has to set "install name" property to  ./dynamic library name (like ./libxyz.dylib).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
