Difference between revisions of "Activities/Tux Paint"

From Sugar Labs
Jump to navigation Jump to search
Line 27: Line 27:
 
  wget http://download.sugarlabs.org/sources/external/polyol/polyol-1.2.tar.gz
 
  wget http://download.sugarlabs.org/sources/external/polyol/polyol-1.2.tar.gz
 
  tar xzpvf polyol-1.2.tar.gz
 
  tar xzpvf polyol-1.2.tar.gz
  wget http://download.sugarlabs.org/sources/external/tuxpaint/tuxpaint-0.9.22.tar.gz
+
  git clone https://github.com/DakshShah/sltuxpaint .
tar xzpvf tuxpaint-0.9.22.tar.gz
 
  
 
Build Polyol:
 
Build Polyol:
Line 45: Line 44:
 
  cd ~/Activities/tuxpaint.activity
 
  cd ~/Activities/tuxpaint.activity
 
  ln -s ~/src/tuxpaint/tuxpaint-0.9.22/activity .
 
  ln -s ~/src/tuxpaint/tuxpaint-0.9.22/activity .
 +
 +
Install Run-time Dependencies: (from Sugar's Terminal)
 +
 
 +
sudo yum install libpaper SDL_Pango libgee06
 +
 +
Make .xo:
 +
 +
cd $HOME/Activities && zip -r  ~/tuxpaint-7.xo tuxpaint.activity
  
 
== Getting involved ==
 
== Getting involved ==

Revision as of 13:10, 19 December 2014


Overview

This page is about Sugar support in Tux Paint.

Tux Paint is a drawing app for tiny kids. Most 3-year-old kids and many 2-year-old kids are able to use it, yet 10-year-old kids (and kid-like adults) enjoy it too. Tux Paint features Tux the penguin, like Clippy but not so annoying. Tux Paint uses stereo sound according to where the mouse pointer is. Tux Paint is translated into about 70 different languages, including big-alphabet and right-to-left ones.

Sugar features

The Sugar patch adds the following features:

  • Integrate Tux Paint window into the Sugar Shell.
  • Following the regular Journal paradigm, save the current drawing to the Journal on exit, and load a saved drawing on resuming its Journal object.
  • Use the Journal as a file picker on importing images.

Build from sources

Install dependencies, for Fedora they are:

sudo yum install cmake gperf glib2-devel gtk2-devel libgee-devel GConf2-devel dbus-glib-devel pango-devel librsvg2-devel python-devel pygtk2-devel pycairo-devel libpaper-devel cairo-devel fribidi-devel SDL-devel SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL_Pango-devel 

Fetch sources:

mkdir -p ~/src/tuxpaint
cd ~/src/tuxpaint
wget http://download.sugarlabs.org/sources/external/polyol/polyol-1.2.tar.gz
tar xzpvf polyol-1.2.tar.gz
git clone https://github.com/DakshShah/sltuxpaint .

Build Polyol:

cd ~/src/tuxpaint/polyol-1.2
cmake -DCMAKE_INSTALL_PREFIX=$HOME/Activities/tuxpaint.activity && make && make install

Build TuxPaint:

cd ~/src/tuxpaint/tuxpaint-0.9.22
PKG_CONFIG_PATH=$HOME/Activities/tuxpaint.activity/lib/pkgconfig make PREFIX=$HOME/Activities/tuxpaint.activity SUGAR=1
make PREFIX=$HOME/Activities/tuxpaint.activity SUGAR=1 install

Link activity directory:

cd ~/Activities/tuxpaint.activity
ln -s ~/src/tuxpaint/tuxpaint-0.9.22/activity .

Install Run-time Dependencies: (from Sugar's Terminal)

sudo yum install libpaper SDL_Pango libgee06

Make .xo:

cd $HOME/Activities && zip -r  ~/tuxpaint-7.xo tuxpaint.activity

Getting involved

Resources