gimpusers.com logo
German version English version

Not logged in

Sign up! | Lost password?

Latest discussion

  1. gimp-docs | yesterday 10:55 PM
    a new user perspective
  2. gimp-developer | yesterday 08:04 PM
    scanner support should be File->Acquire
  3. gegl-developer | yesterday 06:24 PM
    babl docs
  4. gimp-docs | yesterday 12:46 PM
    GIMP Manual
  5. gimp-user | yesterday 09:42 AM
    Bug

External news

Poll

How good are you at programming?

OMG, that is nothing for me at all!

I've been coding a little bit but I'm not very fit at it

I'm pretty good at programming and would maybe be able to write a Plug-In for GIMP

I'm very good at programming and I would theoretically be able to hack for the GIMP core

See results

Stats

gimpusers.com RSS feed

RSS feed Retweet this!

14 Oct 2009 01:56 AM, by redforce (Richard H.)

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

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.


# (as non-root user)

cd ~
mkdir -p tmp
cd tmp

# Important! These variables have to be set and
# are required for all further commands. If you close the
# terminal window, you have to give the 3 export commands
# again.
export PATH=$PATH:/opt/gimp-2.7/bin
export PKG_CONFIG_PATH=/opt/gimp-2.7/lib/pkgconfig
export LD_LIBRARY_PATH=/opt/gimp-2.7/lib

# Fetch the most important packages
sudo apt-get build-dep gimp

# Additional packages
sudo aptitude install checkinstall git-core libtool libopenexr-dev libopenraw-dev libspiro-dev

### 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 ..

# 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 ..
### END: ONLY NEEDED FOR UBUNTU 9.04 ###

# 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 ..

# 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 ..

# 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

This article is licensed under the following license: Attribution-Noncommercial 3.0 Austria

Links (pingbacks)

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.

Comments are chronologically arranged.

4 rating(s) with 4.8 of 5 stars in average

  1. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed Oct 14 04:01:10 2009 Luan Almeida, 14 Oct 2009 04:01 AM

    Awesome work! I gotta try it tmr.

  2. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed Oct 14 04:46:02 2009 jim, 14 Oct 2009 04:46 AM

    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

  3. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed Oct 14 05:22:59 2009 Dan, 14 Oct 2009 05:22 AM

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

  4. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed Oct 14 14:21:12 2009 redforce, 14 Oct 2009 02:21 PM

    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.

  5. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed Oct 14 15:48:05 2009 Jim, 14 Oct 2009 03:48 PM

    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.

  6. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Thu Oct 15 05:55:05 2009 Fernando, 15 Oct 2009 05:55 AM

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

    Thanks for the tutorial!

  7. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Sun Oct 18 04:30:21 2009 Dan, 18 Oct 2009 04:30 AM

    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?

  8. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Tue Oct 20 10:51:26 2009 mandrux, 20 Oct 2009 10:51 AM

    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

  9. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Thu Oct 29 21:08:46 2009 Shorny, 29 Oct 2009 09:08 PM

    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

  10. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Tue Nov 3 15:13:40 2009 Brian142, 03 Nov 2009 03:13 PM

    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

  11. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Thu Nov 5 07:48:04 2009 Bob K., 05 Nov 2009 07:48 AM

    When will 2.8 be released?. November or December 2009

  12. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Thu Nov 5 11:23:16 2009 redforce, 05 Nov 2009 11:23 AM

    "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...

  13. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed Jan 6 19:09:47 2010 hamacker, 06 Jan 2010 07:09 PM

    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

  14. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Sat Feb 6 11:51:02 2010 Sslz, 06 Feb 2010 11:51 AM

    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 ?

  15. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Thu Feb 11 19:47:14 2010 Partha, 11 Feb 2010 07:47 PM

    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?

  16. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Tue Mar 2 06:45:49 2010 mik, 02 Mar 2010 06:45 AM

    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.

  17. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Sat Mar 6 00:02:28 2010 Bob63, 06 Mar 2010 12:02 AM

    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.

  18. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed Jun 9 01:50:51 2010 jag, 09 Jun 2010 01:50 AM

    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

  19. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Sat Jun 26 03:02:11 2010 Pete, 26 Jun 2010 03:02 AM

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

  20. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Sat Jun 26 03:12:03 2010 Pete, 26 Jun 2010 03:12 AM

    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

Registered users can log in (top right of the page) to use their profile name to post comments, request email notification on new comments and attach images (e.g. their versions of the effect) to their postings.

Are you human?

Adobe® Photoshop® is a registered trademark of Adobe Systems, Inc. Linux is a trademark of Linus Torvalds. Ubuntu and Canonical are registered trademarks of Canonical Ltd. | Clock times are shown as CET / CEST | Imprint / Privacy policy | powered by bitfire it services | sponsored by Hirners Hotel Guide