Archive for June, 2010

G’Day,
You can get the latest development version from ftp://ftp.gimp.org/pub/gimp/v2.7/

You can read the notes for the release here:

http://mitch.gimp.org/release-notes-2-7-1.txt

If you have ubuntu you can get (easy) build instructions here:

blog.bloke.com: build gimp from source

have fun!

Cameron

We are going to build gimp from the directory $HOME/gimp/2.7.1 and install it into $HOME/gimp-2.7.1 or /opt/gimp-2.7.

Installing to my home directory allows me to have multiple copies of the gimp, and run which ever version that I want. So my tree actually looks something like this:
(my build files)
$HOME/gimp/2.7.1/gimp-2.7.1/
$HOME/gimp/2.7.1/gegl-0.12/
$HOME/gimp/2.7.1/babl-0.12/
(the install area)
$HOME/gimp-2.7.1/

Step 1. Start with a clean install of Ubuntu.

Of course you don’t need to do that, but I thought it was a great place to start. I did this by installing a version of 10.04 LTS Ubuntu 64bit on a Sun VirtualBox VM. If you don’t know what I just said, then just start with Ubuntu 10.04.

Step 2. Download the dependencies.

sudo apt-get install gettext libglib2.0-0 libglib2.0-dev \
    libgtk2.0-dev ruby intltool libtiff4-dev python-gtk2-dev \
    libjasper-dev libexif-dev libmng-dev liblcms1-dev \
    libxpm-dev librsvg2-dev libwmf-dev libasound2-dev \
    libdbus-glib-1-dev libaa1-dev libwebkit-dev libhal-dev \
    libpoppler-glib-dev

Step 3. Download the source files that we need to install.

cd
mkdir -p gimp/2.7.1/
cd gimp/2.7.1
wget ftp://ftp.gimp.org/pub/babl/0.1/babl-0.1.2.tar.bz2
wget ftp://ftp.gimp.org/pub/gegl/0.1/gegl-0.1.2.tar.bz2
wget ftp://ftp.gimp.org/pub/gimp/v2.7/gimp-2.7.1.tar.bz2
tar xf babl-0.1.2.tar.bz2
tar xf gegl-0.1.2.tar.bz2
tar xf gimp-2.7.1.tar.bz2

Step 4. Pick somewhere to install

Now here we can choose where we want to install. The default is /usr/local/. (ie PREFIX=/usr/local), however that is known to cause problems. Personally, I want to have the installations and libraries seperate for each version, so that I can run whatever version of gimp that I want, so I’ll use PREFIX=$HOME/gimp-2.7.1. If you want to install system wide then use PREFIX=/opt/gimp-2.7.

PREFIX=$HOME/gimp-2.7.1

Step 5. Start the build

You need “sudo make install” below if installing to /opt.

export PATH=$PREFIX/bin:$PATH
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig

cd babl-0.1.2
./configure --prefix=$PREFIX
make
make install

cd ../gegl-0.1.2
./configure --prefix=$PREFIX
make
make install

cd ../gimp-2.7.1
./configure --prefix=$PREFIX
make
make install

Step 6. Run the program

Now you can run gimp as:

$PREFIX/bin/gimp-2.7

so if you are encoding characters for use with a URL, you need:

encodeURIComponent()

example:

escape("INGLÉS") ->INGL%C9S
encodeURIComponent("INGLÉS") -> INGL%C3%89S

you will note that %C9 is not a value UTF-8 character.
I’m using this function to encode the values from a form to put into a URL.

Cameron

I was a bit slow to pick up on this, but you can get it from http://www.gimp.org/

Cameron

The documention for /etc/cron.d files says that it’s the same as /etc/crontab. And although this is true, most people are not used to adding the user in as the first argument before the script.

So when you use crontab -e:

10 * * * * /opt/myprog

When you put it in /etc/cron.d/myapp.crontab

10 * * * * root /opt/myprog

It’s a little annoying, and a comment in the documention as such would go a long way.

Cameron