<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
  <title xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić's random unstructured stuff: pencil</title>
  <id xmlns="http://www.w3.org/2005/Atom">https://saturn.ffzg.hr/rot13/</id>
  <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="https://saturn.ffzg.hr/rot13/index.cgi?pencil"/>
  <link xmlns="http://www.w3.org/2005/Atom" type="application/atom+xml" rel="self" href="https://saturn.ffzg.hr%2C%20saturn.ffzg.hr:443/feed/workspace/rot13?page=pencil;type=Atom"/>
  <updated xmlns="http://www.w3.org/2005/Atom">2007-06-17T12:20:49Z</updated>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">pencil</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="https://saturn.ffzg.hr/rot13/index.cgi?pencil"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><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></div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">https://saturn.ffzg.hr/rot13/index.cgi?pencil</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2007-06-17T12:20:49Z</updated>
  </entry>
</feed>
