Gimptalk - Premier Gimp Community: Compiling GIMP from CVS (HEAD) with Ubuntu 6.06 - Gimptalk - Premier Gimp Community

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Compiling GIMP from CVS (HEAD) with Ubuntu 6.06

#1 User is offline   redforce 

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 26-August 06

Posted 28 August 2006 - 07:56 PM

Recently, I wrote this tutorial in German for my Web site gimpusers.de. You can view it here:
http://www.gimpusers...untu-linux.html. There are also images illustrating each step and links in a box on the right side. So, please have a look at the original version.

I appreciate any comments here and of course on gimpusers.de

Original tutorial: http://www.gimpusers...untu-linux.html
Translated tutorial:
[line]
In this tutorial, I want to describe how to fetch the newest GIMP version (= HEAD) from
CVS and then compile it. My work environment is Ubuntu Linux 6.06 (Dapper Drake).

    [*:3a35bfn8] The source code of GIMP is managed using CVS (concurrent versioning system).
    CVS makes it possible to manage modules and files in different versions (every change
    is recorded in the Changelog), set access rights etc.

    CVS can be used to save the whole source code at a certain time as a "tag" (milestone,
    release, version). For instance, the GIMP code as it was at the release time of
    GIMP 2.3.9 is accessible by the "GIMP_2_3_9" tag.

    Also, the code can be separated into different "branches" (boughs) which allows developers
    to work in different branches independently of each other. E.g., "gimp-2-2" is
    a branch and "soc-2006-vector-layers" another one. So, developers can work in
    the "gimp-2-2" branch without modifying code in the SoC branch and vice versa.

    To install the CVS client, we use this command:
    sudo apt-get install cvs

    [*:3a35bfn8] Then change the working directory (here: tmp in the home directory of the current
    user) and fetch the newest code from the default branch:

    [t]cd ~/tmp
    cvs -d:pserver:anonymous@anoncvs.gimp.org:/cvs/gnome -z3 co -r HEAD gimp[/t]

    Now the source code of the gimp module should reside in the directory "gimp".

    [*:3a35bfn8] To compile GIMP, we need some tools. We'd like use everything what is supported
    by GIMP:
    autoconf, automake1.9, libtool, make to manage the ./configure scripts and Makefiles
    gettext is needed for the GIMP translations into other languages
    pkg-config references installed libraries
    libgtk2.0-dev provides a GUI (windows, menus, buttons, ...)
    libglib2.0-dev is a helper library (for lists etc.)
    libpango1.0-dev renders text
    libatk1.0-dev provides accessibility tools (screen magnifier etc.)
    libfreetype6-dev allows us to use FreeType fonts
    fontconfig to manage fonts
    libart-2.0-dev is a library for 2D graphics manipulation
    intltool, xsltproc for XML support
    libtiff4-dev, libaa1-dev, libmng-dev, libpoppler-glib-dev, librsvg2-dev, libwmf-dev, libxpm-dev, libexif-dev, libgnomeui-dev, libgnome-keyring-dev, liblcms1-dev for various file formats and services
    gtk-doc-tools, libgtkhtml2-dev for the documentation
    python-dev, python-gtk2-dev for PythonFu

    A lot of other packages are going to be installed as dependencies:

    sudo apt-get install autoconf automake1.9 libtool make gettext pkg-config libgtk2.0-dev libglib2.0-dev libpango1.0-dev libatk1.0-dev libfreetype6-dev fontconfig libart-2.0-dev intltool xsltproc libtiff4-dev libaa1-dev libmng-dev libpoppler-glib-dev librsvg2-dev libwmf-dev libxpm-dev libexif-dev libgnomeui-dev libgnome-keyring-dev liblcms1-dev gtk-doc-tools python-dev python-gtk2-dev

    You can also install these packages using the graphical packet manager Synaptic (System / Administration / Synapic, then select packages and "Apply" changes)

    When using other distributions or older Ubuntu versions, you will have to download some packages
    and compile them manually to match the needs of GIMP. However, it is my opinion that current package
    versions are the great advantage of Ubuntu and everyone can download the newest Ubuntu release.

    [*:3a35bfn8] Now execute the autogen.sh script in the gimp source directory:

    cd gimp
    ./autogen.sh --disable-mmx --enable-sse


    The script creates a ./configure file and then runs it.

    Here, on my testing system (32 bit (d)chroot in Ubuntu 6.06/AMD64) I want the compiler to use
    SSE instructions instead of MMX instructions. Otherwise, I'm getting compiler errors. If your
    processor doesn't support SSE instructions, don't use the "--enable-sse" parameter.

    [*:3a35bfn8]The last steps:

    make
    and
    sudo make install

    Impatient people like me can use [t]nice make -j5[/t] instead of [t]make[/t]. This directs
    make to use up to 5 instances at the same time. "nice" reduces CPU priority so the system
    stays reactive. Are there errors with "make -j5", try again with the pure "make" before
    anything other - not all Makefiles support parallelisation perfectly.

    GIMP is installed to /usr/local - run and enjoy with:
    /usr/local/bin/gimp-2.3

[/line]
0

#2 User is offline   XyllyX 

  • Newbie
  • Pip
  • Group: Retired Staff
  • Posts: 3
  • Joined: 14-June 05

Posted 28 August 2006 - 08:07 PM

Dumb question, can you do this alongside an existing Gimp stable install? Or will it trash the existing installation. I am using the latest Mepis, which is based on the Ubuntu 6.0.6 release.
0

#3 User is offline   redforce 

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 26-August 06

Posted 28 August 2006 - 08:08 PM

No it will not crash the existing installation, because the self-compiled gimp goes to /usr/local and the packaged version is in /usr
0

#4 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 28 August 2006 - 08:20 PM

Now i have to try.... :h:
0

#5 User is offline   XyllyX 

  • Newbie
  • Pip
  • Group: Retired Staff
  • Posts: 3
  • Joined: 14-June 05

Posted 28 August 2006 - 08:29 PM

Well, got all the deps installed except libart2.0-dev...which apparently isn't in the repository, will do a google.
0

#6 User is offline   redforce 

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 26-August 06

Posted 28 August 2006 - 08:30 PM

Oh sorry it's libart-2.0-dev (with -)!!!
0

#7 User is offline   XyllyX 

  • Newbie
  • Pip
  • Group: Retired Staff
  • Posts: 3
  • Joined: 14-June 05

Posted 28 August 2006 - 08:36 PM

Quote

Oh sorry it's libart-2.0-dev (with -)!!!


See how you are? :w:

Turns out I already had it installed (typing in the correct name), but thanks, wouldn't have known that.
0

#8 User is offline   XyllyX 

  • Newbie
  • Pip
  • Group: Retired Staff
  • Posts: 3
  • Joined: 14-June 05

Posted 28 August 2006 - 08:39 PM

Are there some stray HTML tags or something in the above post?
0

#9 User is offline   XyllyX 

  • Newbie
  • Pip
  • Group: Retired Staff
  • Posts: 3
  • Joined: 14-June 05

Posted 28 August 2006 - 09:50 PM

Works like a Champ! That jitter function on the brushes is just too cool...and a separate Colors menu (YAY!). Looks like it references the scripts and plugins file from the regular gimp install...the couple of the plugins I tried worked, but generate an error.

This is going to be interesting to play with. Thank you for the tutorial!!
0

#10 User is offline   devvv 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 18-August 06

Posted 28 August 2006 - 10:10 PM

A makeshift would would be to deinstall the Ubuntu gimp package... you can reinstall it at any time ;)
0

#11 User is offline   XyllyX 

  • Newbie
  • Pip
  • Group: Retired Staff
  • Posts: 3
  • Joined: 14-June 05

Posted 28 August 2006 - 10:31 PM

Dunno, the error messages look like they are trying to call another module and the developers have changed a name or something. Like I say, they appear to work just fine.
0

#12 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 05 September 2006 - 10:16 PM

Bump

For some reason is not possible find this tut if you don't know exactly where it is...only google could find it
0

#13 User is offline   XyllyX 

  • Newbie
  • Pip
  • Group: Retired Staff
  • Posts: 3
  • Joined: 14-June 05

Posted 05 September 2006 - 10:52 PM

Maybe clip both of them?
0

#14 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 12 September 2006 - 11:45 AM

Quote

Maybe clip both of them?


Clayogre...i was just waiting somebody else to say it...done!
0

#15 User is offline   swmiller6 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 1,161
  • Joined: 25-July 05

Posted 15 September 2006 - 05:26 PM

Quote

Dumb question, can you do this alongside an existing Gimp stable install? Or will it trash the existing installation. I am using the latest Mepis, which is based on the Ubuntu 6.0.6 release.


Yes....
change this line:
./autogen.sh --disable-mmx --enable-sse
to
/autogen.sh --disable-mmx --enable-sse --prefix=/opt/gimp-2.3

Then add this script to /usr/local/bin
#!/bin/sh

PATH=/opt/gimp-2.3/bin:$PATH
export PATH
LD_LIBRARY_PATH=/opt/gimp-2.3/lib
export LD_LIBRARY_PATH

/opt/gimp-2.3/bin/gimp-2.3 "$@"


Posted Image

then create a launcher pointing to /usr/local/bin/gimp-2.3 and your in business... You can find the new gimp icons in /tmp/gimp/desktop of your home directory save them to a permanent home like /usr/share/pixmaps before creating your launcher... I saved the svg one it scales nicely...

swmiller6
Posted Image

Thats right it's a Fencepost original!!! ha ha and it's all mine..
0

#16 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 16 September 2006 - 02:44 AM

Quote

Then change the working directory (here: tmp in the home directory of the current
user)

I am stuck at a very beginning for a very dumb problem...
How i change work directory.? ...
I mean how exactly i have to do it?

(i know only a win user coul make such question..but i'm lost)
0

#17 User is offline   redforce 

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 26-August 06

Posted 16 September 2006 - 09:44 AM

Its the

cd ~/tmp

command.
0

#18 User is offline   XyllyX 

  • Newbie
  • Pip
  • Group: Retired Staff
  • Posts: 3
  • Joined: 14-June 05

Posted 16 September 2006 - 11:01 AM

SW...both of them work fine side by side. I have been using WindowMaker mostly, since for some reason Mepis doesn't like XFCE from the repository and I am too lazy to try and make it work. I added a WM menu entry, and it works just fine.
0

#19 User is offline   swmiller6 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 1,161
  • Joined: 25-July 05

Posted 16 September 2006 - 01:25 PM

The example I posted is the suggested way, from gimp.org to install the dev version... But if your way works great! I love the new icons I have to read up about installing the gap though I would really like to get that working with 2.3..... This release 2.3.11 so far has been very stable IMHO..

BTW What does Mepis/XFCE have that prompts you to use that over Ubuntu/Gnome?

swmiller6
Posted Image

Thats right it's a Fencepost original!!! ha ha and it's all mine..
0

#20 User is offline   XyllyX 

  • Newbie
  • Pip
  • Group: Retired Staff
  • Posts: 3
  • Joined: 14-June 05

Posted 16 September 2006 - 03:00 PM

Quote

BTW What does Mepis/XFCE have that prompts you to use that over Ubuntu/Gnome?



I can't get Ubuntu to install on my system, the install CD's always hang during boot (I have tried Kubuntu, Xubuntu -which would have been nice, since it is Ubuntu with XFCE)...all do the same thing. I can't get to the beginning installation dialog.). I think it doesn't like trying to figure out between the onboard intel 810 graphics chip and the aftermarket nVidia card I have. There are a couple of other distros (anything that uses SAX), that seem to have the same problem. The latest Mepis, in spite of being Ubuntu based, does not seem to have that problem.

As for Gnome...I hate it. Ugly....BUGGY...klunky UI (I hate the fact that Nautilus opens a new window every time I click a folder...very annoying, after a few clicks you are up to your eyeballs in windows...just like...well...Windows!. I imagine there is some way to make it open in the same window or get a two pane file browser, but I haven't figured it out and haven't wanted to waste the time when Konqueror works so much better...AND has a built in console emulator.) On top of that, Gnome likes to take over other desktops. I had it very briefly installed with Slackware (and by the way, all Slack distros after 10.0 don't even come with Gnome, because of the stability issues), anyway, Gnome took over both KDE and XFCE. I had a KDE taskbar with a Gnome desktop...if I right clicked on the desktop, I got the Gnome menu instead of the KDE menu. Ditto for XFCE, had the XFCE taskbar, Gnome desktop. Did a complete re-install without Gnome.

There are only two things I like about Gnome. Gedit and Grip, and that's about it.

I really like XFCE, boots fairly fast (tho not as fast as Fluxbox), nice, clean desktop without all the icons, it is a good compromise between the heavyweights like KDE/Gnome and the lightweights like Fluxbox, OpenBox, etc.. I like being able to right click on the desktop and get the application menu without having to click an icon on the taskbar. I like being able to switch desktops with the mousewheel. One of these days I may break down and try to install it again.
0

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic