graphical blog 2

françaisIl y a également une version en français de cet article
englishAs MyPaint(painting application), Pencil (animation application) and Sakura (light, GTK tabbed terminal) are missing on Ubuntu 9.04 (test version) and thant only this version can boot in 64 bits on my Atom 330, I’ve installed from sources these three great pieces of software. For older Ubuntu version (32 or 64bits), GetDeb contain packages for them (MyPaint and Pencil)

Deb package I generated for ubunutu-9.04-alpha6 (amd64/x86_64), Pencil is on only a binary, no package for mypaint 0.7.0:
http://popolon.online.fr/deb/jaunty-amd64/
x86 version:
http://popolon.online.fr/deb/jaunty-i386/

Mypaint:
Install dependencies:
sudo apt-get install build-essential g++ scons swig python2.6-dev libglib2.0-dev python-numpy-dev
Get MyPaint sources:
wget http://download.gna.org/mypaint/mypaint-0.6.0.tar.bz2
And compile/install it
tar xf mypaint-0.6.0.tar.bz2 && cd mypaint-0.6.0
# work with all version including
# git version
scons # (scons -j4 to compile using the 4 Atom330 cores in parallel).
sudo scons prefix=/usr install

An entry is added on menu, but there is to search manually its icon.

I just discovered in link on Mypaint site Drawpile another painting tool that allow several painters to work together by network. I don’t why for, but the stylus pressure is not managed on this tool on my computer.

Pencil:
Install dependencies
sudo apt-get install qt4-qmake libqt4-dev libming-dev
Get Pencil sources:
wget http://downloads.sourceforge.net/pencil-planner/pencil-0.4.4b-src.zip
(The SVN version actually krach).
Compile then install :
unzip -x pencil-0.4.4b-src.zip
cd pencil-0.4.4b-source/
qmake
make # (make -j4 to compile using the 4 Atom330 cores in parallel).
cp Pencil /usr/bin
Then add the menu entry by hand (or launch it using terminal) : Pencil

Sakura
sudo apt-get install cmake libgtk2.0-dev libvte-dev
cd /tmp/ wget http://www.pleyades.net/david/projects/sakura/sakura-2.3.3.tar.bz2
In /usr/local
cmake . && sudo make install
Or in /usr
cmake -DCMAKE_INSTALL_PREFIX=/usr . && sudo make install

Filed under: Pencil, Tutorial in french, animation

Sorry, this entry is only available in Français.

Pencil, I alread described here, is a wonderful animation tool.

I created a eeePC-701/Xandros binary of Pencil-0.4.3b (mirror), this piece of software should need preinstalling libming-0 and libqt4:
sudo apt-get install libming-0 libqt4
And have to be uncompressed using:
bunzip2 Pencil-0.4.3b.xandros.eeepc701.bz2
then launch it…

To compile the last SVN version, on Ubuntu-64 (there still isn’t any package), there is to install packeges libqt4-dev, libqt4-opengl-dev libming0 and libming-dev:
sudo apt-get install libming-0 libming-dev libqt4-dev

Then (on ubuntu-64 as on other distrib without pre-existing binary):
svn co https://pencil-planner.svn.sourceforge.net/svnroot/pencil-planner pencil-planner
then in the directory itself:
With ubuntu (and some other distro?):
qmake-qt4
More generaly on my LFS for example):
qmake
then (on any distro):
make
A Pencil binary (with a uppercase P) sould be created, you just have to copy it where you want (bin directory or your home directory) and execute it, no other files needed.

After a try on Xubuntu (the light desktop XFCE version of Ubuntu) of Pencil Gnu GPL licensed animation software (for GNU/Linux, Mac OSX and clone of Wine including MS version called something like ixpi).
,

Pencil is a young but really good application for animation. It’s mainly oriented to traditional drawing animation, but can be used for other things.
Features :
* multilayer (several bitmap layers (on demand), several vector layers (on demand), one(SVN include several) camera layer, SVN include sound layers)
* pan, zoom, rotate of the view (allowing drawing on a rotated canvas) objects and camera
* tablet pen pressure management for drawing (on pencil, brush and dip pen).
* onionskin for the pleasure of animators :)
* import of bitmaps (and SVG vector format as bitmap).
* export as MOV, only on Mac and perhaps wine clones)
* export frame by frame png (with transparency) or opaque jpeg, this should be reopened easily with Gimp Animation Package or assembled in a movie with mencoder (in mplayer project) and transcode.
* export as SWF movie (my test was not really good, only vector part worked perfectly in svn version, with libming version 0.4.0.beta5)
* timeline with keying of layers objects
* interpolation of camera movements
* palette management (GPL gimp/Inkscape/Agave palette format isn’t managed for now)

Update : The following described problem was due to libXi < 1.1.3, you can easily correct this by installing libXi-1.1.3 (lib) and the dependence inputproto >= 1.4 (proto), the last one are on x.org mirrors, go to individual subdir and then the lib or proto subdirs to get these versions. Upgrade only these two libs works with x.org 7.2

I really liked it, then tried to compile it on my main Linux From Scratch production computer, the compilation works perfectly, but sadly, when I tried to launch it on my LFS box, I obtained the following error:

Pencil: xcb_xlib.c:41: xcb_xlib_lock: Assertion `!c->xlib.lock' failed.
Aborted

This is a common problem on xlib coded application, that yet aren’t tested on libxcb_xlib systems. XCB is a replacement of Xlib on X11 graphic interface, that allow faster access to graphical ressources a better way. XlibXcb is a wrapper to Xlib, allowing application coded for xlib to take transparently benefits of the new xcb architectures. But there is still some software that aren’t compatible, due to some light errors on (un)locking.

Some GNU/Linux distro patched libxcb to automatically pass this or doesn’t install xcb_xlib wrapper to avoid errors.
Some other have patched it with an environment variable to set to avoid the bug:

export LIBXCB_ALLOW_SLOPPY_LOCK=1
launch_your_application

Else the main two possible errors, for not corrected applications are:
xcb_xlib.c:41: xcb_xlib_lock: Assertion `!c->xlib.lock' failed.
xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.

More information on this Debian-devel message:
http://lists.debian.org/debian-devel-announce/2006/11/msg00010.html

The libxcb patch proposed in Linux from scratch with LIBXCB_ALLOW_SLOPPY_LOCK settable variable.

I don’t have only the bug only with Pencil, but with few other applications:
xsetwacom (from linuxwacom project) and few other. Searching on Google, at least some release of Sun implementation of Java suffer the same bug.

I hop this will help some people using those application and having bug to find a mean to avoid it until these application are patched.

Powered by WordPress

Switch to our mobile site