• Subscribe

    Subscribe to This Week In Panospace by eMail.
    Subscribe in a reader
  • License

    Creative Commons License
    This work is © 2008-2012
    by Yuval Levy
    and licensed under a
    Creative Commons License.
  • Entries

    May 2009
    M T W T F S S
    « Apr   Jun »
  • Archives

Get Ready to MathMap

MathMap is the GIMP Plug-In used to mathematically transform images. It is particularly useful with panoramas. The following is a quick recipe to a working MathMap installation. It is for Ubuntu 9.04, but you can easily adapt it to any recent system. Start a terminal window and hack on the keyboard. No more skills required than basic reading and typing, promised!


To install GIMP in Ubuntu 9.04 is as simple as

sudo apt-get install gimp

However we need a recent version (>2.6.0) of GIMP, so if an older version is included in your distribution (e.g. 8.04 LTS), you’ll need to build GIMP from source. The following worked on my 8.04 LTS:

sudo apt-get build-dep gimp
mkdir src
cd src
wget ftp://ftp.gimp.org/pub/babl/0.0/babl-0.0.22.tar.bz2
tar -jxvf babl-0.0.22.tar.bz2
cd babl-0.0.22
sudo make install
sudo ldconfig
cd ..
cd src
wget ftp://ftp.gimp.org/pub/gegl/0.0/gegl-0.0.22.tar.bz2
tar -jxvf gegl-0.0.22.tar.bz2
cd gegl-0.0.22
sudo make install
sudo ldconfig
cd ..
wget ftp://ftp.gimp.org/pub/gimp/stable/gimp-2.6.6.tar.bz2
tar -jxvf gimp-2.6.6.tar.bz2
cd gimp-2.6.6
sudo make install
sudo ldconfig

This should replace your current (older) GIMP with a standard GIMP 2.6.6. If you want to keep multiple versions of GIMP side by side, or if you have other special needs, or if the above instructions do not work, you may want to look here for configuration options.


Now that we got GIMP working, it is time to get MathMap. Unfortunately it is not yet part of the Ubuntu distribution, so your computer will have to build it for you. Fortunately, it is a straightforward process. Just type:

sudo apt-get install clisp clisp-dev flex bison gsl-bin libgsl0-dev libgimp2.0-dev libgif-dev libjpeg62-dev libpng12-dev libgtksourceview-dev
wget http://www.complang.tuwien.ac.at/schani/mathmap/files/mathmap-1.3.4.tar.gz
tar xvf mathmap-1.3.4.tar.gz
cd mathmap-1.3.4/
sudo make install

You may have to edit the Makefile before executing make. I did not have to do that in Ubuntu.
You’re set. Have fun MathMapping! There is a whole flick group dedicated to it.

Update June 2011

A reader commented that the above instructions no longer work, so I tried again.  This is with Kubuntu 11.10 and a newer MathMap release.  Note the added and changed dependencies in the first line.  This time I did not build Gimp from source, the version delivered with Kubuntu 11.10 was good enough:

sudo apt-get install clisp clisp-dev flex bison gsl-bin libgsl0-dev libgimp2.0-dev libgif-dev libjpeg62-dev libpng12-dev libgtksourceview2.0-dev doxygen
wget http://www.complang.tuwien.ac.at/schani/mathmap/files/mathmap-1.3.5.tar.gz
tar xvf mathmap-1.3.5.tar.gz
cd mathmap-1.3.5/
sudo make install

5 Responses

  1. If you’re on OS X it’s even easier, no GIMP required, just go to http://www.13thfloor.at/old/MathMap/ and download a MathMap-port with GUI :)

  2. […] droste, gimp, mathmap, quincuncial A few weeks back, Yuv posted a how-to on MathMap, a Gimp plugin that allows distortion of images specified in a simple […]

  3. wow thank you very much for this tutorial!!

  4. uumm, there is a problem. I followd your steps, and there is no error message. but after I open GIMP, it seems there is nothing installed. I mean, I look in filters -> generic -> mathmap, but the list of filters is empty. could you help me? thank you

  5. @hanciong: I have not been on this page for ages. The instructions where outdated and I have updated them. When I follow the updated instructions by the letter, I do get the filters -> generic -> mathmap with everything in place. Please try the updated instructions. If this does not work for you, ask for help on the Mathmap Mailing List.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s