<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MultiNC &#187; GPL</title>
	<atom:link href="http://multinc.com/tag/gpl/feed/" rel="self" type="application/rss+xml" />
	<link>http://multinc.com</link>
	<description>Explorations in Social Computing</description>
	<lastBuildDate>Wed, 09 Dec 2009 19:05:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Compatibility between the iPhone App Store and the LGPL</title>
		<link>http://multinc.com/2009/08/24/compatibility-between-the-iphone-app-store-and-the-lgpl/</link>
		<comments>http://multinc.com/2009/08/24/compatibility-between-the-iphone-app-store-and-the-lgpl/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 03:54:31 +0000</pubDate>
		<dc:creator>huy</dc:creator>
				<category><![CDATA[Huy dev]]></category>
		<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[App Store]]></category>
		<category><![CDATA[Cydia]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[LGPL]]></category>
		<category><![CDATA[licensing]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://multinc.com/?p=157</guid>
		<description><![CDATA[LGPL Conditions
If you&#8217;re developing an iPhone application that you intend to submit to Apple&#8217;s App Store and you want to make use of a third-party&#8217;s software library that happens to be licensed under the GNU Lesser General Public License (LGPL), you have a couple of choices according to the license requirements:

You can open-source your app.  [...]]]></description>
			<content:encoded><![CDATA[<h2>LGPL Conditions</h2>
<p>If you&#8217;re developing an iPhone application that you intend to submit to Apple&#8217;s App Store and you want to make use of a third-party&#8217;s software library that happens to be licensed under the <a href="http://www.gnu.org/licenses/lgpl.html">GNU Lesser General Public License (LGPL)</a>, you have a couple of choices according to the license requirements:</p>
<ul>
<li>You can open-source your app.  Specifically, you provide to your users the source code of your entire application under the LGPL or GPL.  That means for example all the .h and .m files.</li>
<li><em>You can keep your app closed-source, but you provide to your users all the object code</em> of your  application necessary to re-link your application.  That means for example all the .o and .a files.  Most people forget that this option is in fact available to iPhone app developers.</li>
</ul>
<p>Of course, if you modify the library itself, you have to provide these code changes in source form either way.</p>
<h2>Dynamic/Shared Library</h2>
<p>The above LGPL conditions can be thought to apply to the case when the LGPL library is statically linked.</p>
<p>But outside of the world of Apple&#8217;s App Store, the LGPL would normally give you another way to use LGPL code without releasing the source code or object code for your application: compiling your application with a run-time shared library (hence, allowing users to run your application with an updated library if they choose to).  The problem for us is that the Apple iPhone developer agreement doesn&#8217;t allow the bundling of shared libraries.</p>
<p>If you don&#8217;t care about the App Store and want to release/sell your application <a href="http://iphone.stackswap.net/scummvm-adhoc.html">through Ad Hoc Distribution</a> or to jailbroken devices (e.g. via <a href="http://cydia.saurik.com/">Cydia</a>), you can actually link apps with a run-time shared library and thus satisfy the LGPL without providing source code or object code.</p>
<h2>Static Library Exception</h2>
<p>Some library developers are aware of these iPhone and LGPL incompatibilities and provide a &#8220;static library exception,&#8221; loosening LGPL requirements for the iPhone platform.  For example, the cocos2d author intended to <a href="http://cocos2d-iphone.googlecode.com/svn/trunk/LICENSE">offer such an exception</a>: even though he neglected to distinguish between the source code and object code requirements of the LGPL, it&#8217;s fairly clear he intended to relieve the app developer from having to provide source <em>or</em> object code even if they linked in the LGPL library <em>statically</em>.</p>
<p>It&#8217;s a good idea for you to consider contacting the author of the LGPL library you&#8217;re interested in to offer a similar exception for the iPhone.  That way you don&#8217;t have to worry about having to provide object code for your app.</p>
<h2>Spirit of the LGPL</h2>
<p>Whether you decide to release the object code for your app or take advantage of a &#8220;static library exception,&#8221; the spirit of the LGPL is violated by the iPhone restrictions: it becomes very difficult for your app user to customize your app with a modified or updated version of LGPL library.</p>
<p>Let&#8217;s say you do release all the object code and all the utilities that your app requires to build a new app based on an improved LGPL library.  How can your users install the new binary?  They are faced with the following unhappy options:</p>
<ul>
<li>Jailbreak their iPhone to install any binary that they want</li>
<li>Join the iPhone Developer Program for $99 a year to be able to legally distribute &#8220;Ad Hoc&#8221; the new app to up to 100 devices.</li>
</ul>
<p>In other words, you may end up spending a lot of time distributing object code to satisfy the LGPL and protect the source code of your app, but the object code is very unlikely to get used anyway.</p>
<p>In fact, even if Apple allowed apps to link with dynamic shared libraries, how could users even substitute the libraries without jailbreaking their iPhone?</p>
<p>No wonder the Free Software Foundation <a href="http://www.fsf.org/blogs/community/5-reasons-to-avoid-iphone-3g">hates the iPhone</a>.</p>
<h4>References:</h4>
<ul>
<li><a href="http://www.gnu.org/licenses/lgpl.html">GNU Lesser General Public License</a>, particularly section 4.d)</li>
<li><a href="http://stackoverflow.com/questions/459833/which-open-source-licenses-are-compatible-with-the-iphone-and-app-store/1321681#1321681">StackOverflow &#8211; Which open source licenses are compatible with the iPhone and App Store?</a></li>
<li><a href="http://www.nabble.com/iphone,-and-releasing-object-code-satisfies-LGPL-Re:-Static-building-and-bundling-of-SDL.-td21907721.html">Nabble &#8211; iphone, and releasing object code satisfies LGPL Re: Static building and bundling of SDL.</a></li>
<li><a href="http://www.nabble.com/iPhone-SDK-%3C-%3E-SDL-License-td19983219.html">Nabble &#8211; iPhone SDK &lt;-&gt; SDL License</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://multinc.com/2009/08/24/compatibility-between-the-iphone-app-store-and-the-lgpl/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
