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!

23 Apr 2009 12:02 AM, by redforce (Richard H.)

Compile latest GIMP source (developer version) for Ubuntu 9.04

Here you can see how to fetch the current GIMP source code from the Git server and compile it for Ubuntu 9.04:

1. The new files for GIMP 2.7 shall go to /opt/gimp-2.7 so they don't disturb the GIMP version installed by the system (GIMP 2.6.6 in case of Ubuntu 9.04). Both versions shall be usable at the same time. So you need to set these environment variables on the command line (and later use the -prefix parameter):

export PATH=$PATH:/opt/gimp-2.7/bin
export PKG_CONFIG_PATH=/opt/gimp-2.7/lib/pkgconfig


Now switch to a temporary directory and fetch BABL, GEGL and GIMP from the Git server:

mkdir ~/tmp # if not existing yet
cd ~/tmp
git clone git://git.gnome.org/babl
git clone git://git.gnome.org/gegl
git clone git://git.gnome.org/gimp


Some libraries and its development packages (including headers, API definitions etc.) are needed in order to compile BABL, GEGL and GIMP. You can install the most important packages using this command:

sudo apt-get build-dep gimp

This command installs all libraries and packages that are needed to compile the GIMP version shipped with Ubuntu (= GIMP 2.6). Because the dependencies of GIMP 2.6 and 2.7 are mostly identical, the most important libraries are installed now. However, you have to install these additional packages:

sudo aptitude install libtool ruby

Then you can compile and install BABL, GEGL and GIMP:

cd babl
./autogen.sh --prefix=/opt/gimp-2.7
nice make -j3
# 3 instances, suggestion: number of CPUs+1
sudo make install

cd ../gegl
./autogen.sh --prefix=/opt/gimp-2.7
nice make -j3
sudo make install

cd ../gimp
./autogen.sh --prefix=/opt/gimp-2.7
nice make -j3
sudo make install


Now GIMP 2.7 should be installed. You can launch it with /opt/gimp-2.7/bin/gimp - have fun!

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.

  1. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Thu Apr 23 21:19:15 2009 thanks, 23 Apr 2009 09:19 PM

    thank you for keeping us up-to-date with the changes in the gip compilation process!

  2. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Fri Apr 24 16:16:56 2009 git question, 24 Apr 2009 04:16 PM

    why is the source of the master branch so big? doesn't have gimp around 20 mb?

  3. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Sat Apr 25 21:27:56 2009 redforce, 25 Apr 2009 09:27 PM

    Maybe you don't need all the history revisions but only the current soure code. Then you can do

    git clone --depth 1 git://git.gnome.org/gimp

    which should be smaller.

  4. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Tue Apr 28 13:45:38 2009 redforce, 28 Apr 2009 01:45 PM

    You can see the tutorial here: http://www.gimptalk.com/forum/compile-latest-gimp-source-developer-version-for-ubuntu-9--t39598.html
    or here: http://www.flickr.com/groups/gimpusers/discuss/72157617207532628/

    There Martin H. pointed out that it may be useful to use "sudo checkinstall" instead of "sudo make install" so the installed files become registered by the package manager. Good idea, even if you can easily remove GIMP by deleting /opt/gimp-2.7 even without packages

  5. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Sat May 2 05:01:19 2009 rbp, 02 May 2009 05:01 AM

    Is there some way to see the changes in each new release? I don't really know how to use git. The 'changelog' file isn't updated anymore.

    thanks

  6. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Sat May 9 19:32:51 2009 raphi, 09 May 2009 07:32 PM

    rbp: >ou can check it easily when you cd to the ~/tmp/gimp (as mentioned above) and type in 'git log'.

    regards,
    raphi

  7. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Thu Jul 16 13:16:48 2009 Popolon, 16 Jul 2009 01:16 PM

    A dependence is missing, when you try to compile gimp itself (babl & gegl are OK), add the folling line (or packages in previou slines
    sudo apt-get install gtk-doc-tools

  8. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Tue Sep 8 00:40:03 2009 mamboze, 08 Sep 2009 12:40 AM

    While compiling, I got this error message:
    checking for BABL... configure: error: Package requirements (babl >= 0.1.0) were not met:

    Requested 'babl >= 0.1.0' but version of babl 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 BABL_CFLAGS
    and BABL_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    Configure failed or did not finish!

    Is babl 0.1.0 (or higher) available?

  9. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Tue Sep 8 01:03:27 2009 redforce, 08 Sep 2009 01:03 AM

    You have to compile the newest BABL first. Don't forget the exports at the beginning and use the same console (window) for all commands.

  10. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Tue Sep 8 02:21:00 2009 mamboze, 08 Sep 2009 02:21 AM

    Downloading last night was very slow so I used 2 console windows. Mistake!!

    I'll have another go today, thanks

  11. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Fri Sep 11 15:30:39 2009 23dornot23d, 11 Sep 2009 03:30 PM

    7. Popolon ... excellent .... that was the same and only problem mine came up with too ... great work .... good answer ... cheers ...

  12. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Fri Sep 11 16:08:21 2009 23dornot23d, 11 Sep 2009 04:08 PM

    The command to run GIMP 2.7 should be full name ....
    if running more than one version ....

    /opt/gimp-2.7/bin/gimp-2.7

  13. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Sat Sep 12 05:53:05 2009 mamboze, 12 Sep 2009 05:53 AM

    Thanx redforce. I compiled 2.7 a couple of days ago. No problem at all. It looks good.

  14. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Wed Sep 30 03:48:30 2009 gimp_user, 30 Sep 2009 03:48 AM

    checking for _NL_MEASUREMENT_MEASUREMENT... yes
    ./configure: line 23939: syntax error near unexpected token `0.40.1'
    ./configure: line 23939: `IT_PROG_INTLTOOL(0.40.1)'

    Configure failed or did not finish!


    How can this be fixed ?

  15. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Wed Sep 30 09:31:08 2009 Rave[N], 30 Sep 2009 09:31 AM

    I've followed this tutorial a few weeks ago and it worked like a charm. unfortunately I had reinstall my Kubuntu 9.04. When I tried to follow the same installation tutorial again - Gimp is complaining that GTK+ is not installed ant that it requires GTK+ version 2.16.6 and above.
    Gimp INSTALL file states that it only needs GTK+ 2.16.1 to compile, which is what I have installed.
    I've tried replacing all "2.16.6" values with "2.16.1" in the configure file to no avail.
    Any ideas how to go round it?

  16. http://www.gimpusers.com/news/2009-04-23/gimp-master-for-ubuntu-9-04.html Wed Oct 7 18:27:12 2009 dexluther, 07 Oct 2009 06:27 PM

    dexluther@Lucy:~/tmp$ git clone git://git.gnome.org/gimp
    Initialized empty Git repository in /home/dexluther/tmp/gimp/.git/
    remote: Counting objects: 310268, done.
    remote: Compressing objects: 100% (46689/46689), done.
    remote: Total 310268 (delta 268524), reused 304021 (delta 263012)
    Receiving objects: 100% (310268/310268), 163.27 MiB | 651 KiB/s, done.
    fatal: index-pack failed80478/268524)

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