Sign up now! · Forgot password?
RSS/Atom feed identi.ca Twitter

Compiling GIMP 2.7/git-master with Ubuntu 9.04/9.10

By at 2009-10-14 01:56:50 UTC, last updated over 7 years ago. CC BY-NC License

Instructions to compile the current GIMP source code (master version in GIT repository) with Ubuntu Linux 9.04 + 9.10

Important: The current GIT master version is a snapshot, an intermediate version that can be used to follow current developments (for instance, the single window mode). For production use, always use a stable GIMP version (2.6)!

The procedure is the same for Ubuntu 9.04 and 9.10, but with Ubuntu 9.04 you have to download & compile the newest Gtk version.

  1. (as non-root user)
cd ~
mkdir -p tmp
cd tmp
  1. Important! These variables have to be set and
  2. are required for all further commands. If you close the
  3. terminal window, you have to give the 3 export commands
  4. again.
export PATH=/opt/gimp-2.7/bin:$PATH
export PKG_CONFIG_PATH=/opt/gimp-2.7/lib/pkgconfig
export LD_LIBRARY_PATH=/opt/gimp-2.7/lib
  1. Fetch the most important packages
sudo apt-get build-dep gimp
  1. Additional packages
sudo aptitude install checkinstall git-core libtool libopenexr-dev libopenraw-dev libspiro-dev
  1. BEGIN: ONLY NEEDED FOR UBUNTU 9.04 ###
  • Fetch, compile, install Glib (needed for Gtk)
    wget
    http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.2.tar.bz2
    tar -xjf glib-2.22.2.tar.bz2
    cd glib-2.22.2
    ./configure --prefix=/opt/gimp-2.7
    make -j3
    sudo make install -j3
    cd ..
    1. Fetch, compile, install Gtk
    wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.18/gtk+-2.18.2.tar.bz2
    tar -xjf gtk+-2.18.2.tar.bz2
    cd gtk+-2.18.2
    ./configure --prefix=/opt/gimp-2.7
    make -j3
    sudo make install -j3
    cd ..
    1. END: ONLY NEEDED FOR UBUNTU 9.04 ###
    1. Fetch, compile, install BABL
    git clone --depth 1 git://git.gnome.org/babl
    cd babl
    ./autogen.sh --prefix=/opt/gimp-2.7
    make -j3
    sudo make install -j3
    cd ..
    1. Fetch, compile, install GEGL
    git clone --depth 1 git://git.gnome.org/gegl
    cd gegl
    ./autogen.sh --prefix=/opt/gimp-2.7 --disable-gtk-doc
    make -j3
    sudo make install -j3
    cd ..
    1. Fetch, compile, install GIMP
    git clone --depth 1 git://git.gnome.org/gimp
    cd gimp
    ./autogen.sh --prefix=/opt/gimp-2.7 --disable-gtk-doc
    make -j3
    sudo make install -j3
    cd ..

    Launch GIMP with:

    /opt/gimp-2.7/bin/gimp-2.7
  • Comments

    Post your own comments, questions or hints here. The author and other users will see your posting and can reply to it.

    Of course, you can also ask in the chat.

    Subscription management

    Please log in to manage your subscriptions.

    User rating

    This topic (Compiling GIMP 2.7/git-master with Ubuntu 9.04/9.10) has been rated 4.8/5.0.

    *

    As a registered user, you can rate articles and comments, attach files to comments, subscribe to topics and you don't need to solve CAPTCHAs anymore.

    *…optional

    Pete rated this topic with 5/5
    about 8 years ago

    And also gtk 2.20.0
    http://ftp.gnome.org/pub/gnome/sources/gtk+/2.20/gtk+-2.20.0.tar.bz2

    you might want to attempt configuring GIMP first so that it tells you what versions of things it wants

    Pete rated this topic with 5/5
    about 8 years ago

    you now need glib 2.24
    http://ftp.gnome.org/pub/gnome/sources/glib/2.24/glib-2.24.0.tar.bz2

    jag member for about 9 years jag 1 comment rated this topic with 5/5
    over 8 years ago

    I've followed this tutorial for install gimp devel on ubuntu 10.04. Works normally, but I don't have many export and input formats, as jpeg, tiff, png, etc. When it finishes the ./autogen.sh, all is ok and include all formats. Any idea? Thanks

    Bob63 rated this topic with 4/5
    over 8 years ago

    No matter what I tried, I could not get this to compile on Ubuntu 9.04 x86 (Jaunty).

    However, I had been thinking about upgrading my OS anyhow, so I installed LinuxMint 8 Helena, which is based on Ubuntu 9.10 (Karmic). I still had an issue with GEGL, but thanks to mik and his suggestion of changing the make and make install commands to use -k option, I was able to get this to work.

    I am not a frequent image creator/editor, but when I do this sort of task, I enjoy working with Gimp. It seems like I learn something new all the time. I think I will really like the single-window mode rather than fussing with three separate windows. I'm really looking forward to Gimp 2.8.

    Thanks for the HOW-TO, and all the comments.

    mik
    over 8 years ago

    there is something odd with building gegl as of this post.

    I had to compiel gegl with make -k and then do make install -k to tell it to just keep on going despite the errors.

    Not sure where they cropped up but here is my gegl compile line:

    # Fetch, compile, install GEGL
    git clone --depth 1 git://git.gnome.org/gegl
    cd gegl
    ./autogen.sh --prefix=/home/rtaylor/bin/gimp-2.7 --disable-gtk-doc
    #make -j3
    make -k
    #make install -j3
    make install -k
    cd ..

    Hope it helps you. Note the lack of sudoe on make install -k as i am not installing system wide, adjust as required.

    Partha
    over 8 years ago

    Make sure that you exported the pkgconfig directory properly: Especially make sure that this is correct:
    export PKG_CONFIG_PATH=/opt/gimp-2.7/lib/pkgconfig

    Can you paste the lines after the line you pasted?

    Sslz
    over 8 years ago

    I can't continue with the installation because i compile babl and then i get an error message and i can't continue with gegl..

    Requested 'babl >= 0.1.2' but version of babl is 0.0.22

    What can i do ?

    hamacker
    over 8 years ago

    complementing yout article, create a shortcut running 'gksudo gedit /usr/share/applications/gimp27.desktop' and paste this content :

    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=GIMP Image Editor 2.7
    GenericName=Image Editor 2.7
    Comment=Create images and edit photographs
    Exec="/opt/gimp-2.7/bin/gimp-2.7"
    Icon=gimp
    Terminal=false
    Categories=Graphics;2DGraphics;RasterGraphics;GTK;
    StartupNotify=true
    MimeType=application/postscript;application/pdf;image/bmp;image/g3fax;image/gif;image/x-fits;image/pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/tiff;image/jpeg;image/x-psd;image/png;image/x-icon;image/x-xpixmap;image/svg+xml;image/x-wmf;
    X-Ubuntu-Gettext-Domain=gimp20
    X-Ubuntu-Gettext-Domain=gimp20

    redforce member for about 12 years redforce 230 comments
    almost 9 years ago

    "It will be released when it's finished" - there is no release plan in the way other products have it. I guess it will be released in December or January...

    Bob K.
    almost 9 years ago

    When will 2.8 be released?. November or December 2009

    Brian142
    almost 9 years ago

    Great Tutorial worked as stated on Ubuntu 9.10 x64 version (gnome desktop).
    I followed the tutorial and copied and pasted each code line in the same sequence as instructed and it worked first time.
    Thanks again for an excellent tutorial

    Shorny
    almost 9 years ago

    For JIM's eror(I have same error kubuntu 9.10) you set before install GEGL:
    export PKG_CONFIG_PATH=/opt/gimp-2.7/lib/pkgconfig:$PKG_CONFIG_PATH

    mandrux
    almost 9 years ago

    Thanks a lot for the tutorial!!
    Was the only one that worked running
    LinuxMint 7 (Jaunty based).
    I agree the order: glib> gtk2> babl> gegl> gimp
    You need also Python-dev.(in my case)
    If you have trouble to compile:
    #sudo make uninstall (for every source)
    #sudo rm -rf /opt/gimp-2.7
    #start again in the right order
    Ciao

    Dan
    almost 9 years ago

    i recall that you should FIRST compile Babl as GEGL needs it in order to work, and as posted up there, a common error would appear saying that the dependency is not met. Could someone change that?

    Fernando
    almost 9 years ago

    I just built it, compiling BABL first then GEGL, and am now enjoying single-window mode :D.

    Thanks for the tutorial!

    Jim
    almost 9 years ago

    I did the steps individually and found that "ruby" was not installed so I installed that and then the compliles completed. I started gimp and got a message

    "Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory"

    Gimp started and seem to run ok though.
    Thanks again.

    redforce member for about 12 years redforce 230 comments
    almost 9 years ago

    This was the previous order. I think that it has changed and now GEGL has to be compiled first. Makes not so much sense, but I think it is like this. I'm really confused now ...

    However, don't copy it into a script but copy the commands into the terminal blockwise. If it doesn't work in this oder, just swap the GEGL and BABL compile block.

    Dan
    almost 9 years ago

    there is an error in the order of compiling, you FIRST NEED to compile BALB then GEGL! so Jim, try that first.. =)

    jim
    almost 9 years ago

    Thanks for posting this. I tried doing this earlier and it was too complicated so I gave up.
    I tried copy and pasting the above into a file and then running it. It got to this point and then failed.
    =====================
    checking for BABL... yes
    checking for GEGL... configure: error: Package requirements (gegl >= 0.1.0) were not met:

    Requested 'gegl >= 0.1.0' but version of GEGL is 0.0.22

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables GEGL_CFLAGS
    and GEGL_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    Configure failed or did not finish!
    make: *** No targets specified and no makefile found. Stop.
    [sudo] password for jim:
    make: *** No rule to make target `install'. Stop.

    =====================
    The problem with the "Requested 'gegl >= 0.1.0' but version of GEGL is 0.0.22" is what I ran into previously. I am on UBUNTU 9.04.

    Any suggestions?

    Thanks again for posting this

    Luan Almeida
    almost 9 years ago

    Awesome work! I gotta try it tmr.