<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: pencil]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?pencil</link>
<description></description>
<pubDate>Sun, 17 Jun 2007 12:20:49 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[pencil]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?pencil</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div class="wiki">
<blockquote>
<a target="_blank" title="(external link)" href="http://www.les-stooges.org/pascal/pencil/">Pencil<!-- wiki-renamed-hyperlink "Pencil"<http://www.les=-stooges.org/pascal/pencil/> --></a> is an animation/drawing software for Mac OS X and Windows. It lets you create traditional hand-drawn animation (cartoon) using both bitmap and vector graphics. Pencil is free and open source.</blockquote>
<br /><p>
I wanted to run it under Linux (without <a target="_blank" title="(external link)" href="http://winehq.org">wine<!-- wiki-renamed-hyperlink "wine"<http://winehq.org> --></a>) so I tried to compile:</p>
<h1 id="get_mac_version_of_source">Get mac version of source</h1>
<pre>
wget http://www.les-stooges.org/pascal/pencil/contents/Download/pencil-0.4.2b-mac-src.tgz
tar xvfz pencil-0.4.2b-mac-src.tgz
cd pencil-0.4.2b-mac-src
</pre>
<br /><h1 id="use_local_version_of_ming_library">Use local version of ming library</h1>
<p>
Edit <tt>pencil.pro</tt> and change <tt>LIBS</tt> to:</p>
<pre>
LIBS += -lming
</pre>
<br /><p>
and remove binary verison of <tt>libming.a</tt> with:</p>
<pre>
rm lib/libming.a
</pre>
<br /><p>
You will also have to comment out one line in <tt>src/interface/editor.cpp</tt></p>
<pre>
		updateMaxFrame();
//		object-&gt;exportMovie(1, maxFrame, view, exportSize, filePath, fps);
		return true;
</pre>
<br /><h1 id="build_it">Build it</h1>
<p>
Create <tt>Makefile</tt> and build project:</p>
<pre>
qmake-qt4
make
</pre>
<br /><p>
All required changes to source are also available as single diff file: <span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/pencil-0.4.2b-linux.diff?action=attachments_download;page_name=pencil;id=20070617121835-2-28529">pencil-0.4.2b-linux.diff</a><!-- wiki: {file: pencil-=0.4.2b-=linux.diff} --></span></p>
<span class="nlw_phrase"><img alt="pencil-linux.png" src="https://saturn.ffzg.hr/rot13/index.cgi/pencil-linux.png?action=attachments_download;page_name=pencil;id=20070617121903-0-15429" /><!-- wiki: {image: pencil-=linux.png} --></span><br /><br /><h1 id="related">Related</h1>
<p>
After compiling it, I went to Google and searched for <tt>exportMovie</tt> (it's easy once you <strong>know</strong> what to do :-) and found <a target="_blank" title="(external link)" href="http://www.blendernation.com/2007/06/03/pencil-2d-animation-software/">following blog post<!-- wiki-renamed-hyperlink "following blog post"<http://www.blendernation.com/2007/06/03/pencil=-2d=-animation=-software/> --></a> which had reference to same fix for compilation (I didn't need <tt>-lungif</tt> to make it work)</p>
</div>
<hr/><div>Attachments: pencil-0.4.2b-linux.diff, pencil-linux.png</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category></category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?pencil</guid>
<pubDate>Sun, 17 Jun 2007 12:20:49 -0000</pubDate>
</item>
</channel>
</rss>