gimpusers.com logo
German version English version

Not logged in

Sign up! | Lost password?

Latest discussion

  1. gimp-user | today 08:23 AM
    Error on script-fu
  2. gimp-user | today 06:39 AM
    Crashes in GIMP 2.6.6
  3. gimp-docs | yesterday 11:28 PM
    Can the gimp-help-2 module be maintained using Damned-Lies?
  4. gimp-developer | yesterday 10:55 PM
    Summary: How to submit gimp/gegl bugzilla with GIT patch
  5. gimp-docs | yesterday 10:01 PM
    Where have all my pictures gone?

External news

Poll

Did you ever buy products (books, video dvds) about GIMP?

No, never did

Yes, helped alot (please post)

Yes, helped a little bit (please post)

Yes but I was disappointed (why? please post)

See results

Stats

gimpusers.com RSS feed

GIMP Forums » For GIMP developers

Environment suggestion

Jump to message:

  1. Environment suggestion — Rob Antonishen, 13 Nov 2008 06:28 PM
    1. Environment suggestion — Martin Nordholts, 13 Nov 2008 06:57 PM
      1. Environment suggestion — Sven Neumann, 13 Nov 2008 08:18 PM
        1. Environment suggestion — Martin Nordholts, 13 Nov 2008 08:25 PM
          1. Environment suggestion — Sven Neumann, 13 Nov 2008 10:28 PM
        2. Environment suggestion — Akkana Peck, 14 Nov 2008 07:39 AM
          1. Environment suggestion — Sven Neumann, 14 Nov 2008 08:51 AM
            1. Environment suggestion — Akkana Peck, 17 Nov 2008 03:01 AM
              1. Environment suggestion — Sven Neumann, 17 Nov 2008 08:38 AM

As a registered user, you can subscribe forum threads in order to get notified when replies are posted. Just log in at the right top of the page if you already have an account, otherwise you can register for free.

Permalink:3644709b0811130928j66c53f36waad21797f...
Date:13 Nov 2008 06:28 PM
From:Rob Antonishen
Subject:Environment suggestion
I've decided to try my hand at compiling gimp from source so I can
look at possible development...

I normally use windows, but have used linux in the past as a desktop
(redhat and ubuntu) and use it for my servers.

I have an older PIII notebook I'm willing to blow away and use just
for this purpose...can anyone suggest the shortest path from a blank
hard drive to a working gimp develpment environment?

Thanks in advance-

-Rob A>
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

↑Back to thread overview
Permalink:491C6A88.3040005@gmail.com
Date:13 Nov 2008 06:57 PM
From:Martin Nordholts
Subject:Environment suggestion
Rob Antonishen wrote:
> I've decided to try my hand at compiling gimp from source so I can
> look at possible development...
>
> can anyone suggest the shortest path from a blank
> hard drive to a working gimp develpment environment?
>

Hi and welcome!

Here are my recommendations:

* Use a distro which has packages for reasonably new versions of the
libraries GIMP depend on. Ubuntu 8.10 should work just fine.
* Don't install any dependencies you need to build yourself (typically
babl and GEGL) into /usr/local, that will only create problems. Instead
put those in /opt and refer to the libraries in /opt explicitly when
configuring GIMP/the dependencies.
* Build unoptimized, debbugable versions of GLib and GTK+ so that you
can debug seamlessly through the GIMP/GTK+/GEGL/GLib/babl stack. For
example, this is the autogen command I use to configure a fresh checkout
of GIMP trunk:

export CFLAGS='-g -O0'; ACLOCAL_FLAGS="-I /opt/glib-trunk/share/aclocal
-I /opt/gtk-trunk/share/aclocal"
PKG_CONFIG_PATH=/opt/babl-trunk/lib/pkgconfig:/opt/libexif-0.6.17/lib/pkgconfig:/opt/glib-trunk/lib/pkgconfig:/opt/gtk-trunk/lib/pkgconfig:/opt/gegl-trunk/lib/pkgconfig
LD_LIBRARY_PATH=/opt/babl-trunk/lib:/opt/libexif-0.6.17/lib:/opt/glib-trunk/lib:/opt/gtk-trunk/lib:/opt/gegl-trunk/lib
./autogen.sh --prefix=/opt/gimp-trunk

Note that setting LD_LIBRARY_PATH is only necessary to please
./configure, you don't need that set when running GIMP trunk since
libtool sets up the proper rpaths for the libraries. If you just build
them in the right order you should be fine. That is, when building e.g.
GEGL, use the GLib and GTK+ in /opt.

* Take the time to learn to use an editor! Popular choices are (g)vim
and Emacs. It will take time, but it will be worth it.
* Hang around in #gimp @ irc.gnome.org a lot, that's where the rest of
the GIMP developers hang out. I hereby guarantee you that I will answer
any question you might have when setting up your GIMP build environment
(my nick is Enselic).

Best regards,
Martin Nordholts
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

↑Back to thread overview
Permalink:1226603933.8642.4.camel@bender
Date:13 Nov 2008 08:18 PM
From:Sven Neumann
Subject:Environment suggestion
Hi,

On Thu, 2008-11-13 at 18:57 +0100, Martin Nordholts wrote:

> * Use a distro which has packages for reasonably new versions of the
> libraries GIMP depend on. Ubuntu 8.10 should work just fine.
> * Don't install any dependencies you need to build yourself (typically
> babl and GEGL) into /usr/local, that will only create problems. Instead
> put those in /opt and refer to the libraries in /opt explicitly when
> configuring GIMP/the dependencies.

It doesn't hurt to put babl and GEGL into /usr/local. Just run configure
without any extra arguments and things will just work.

> * Build unoptimized, debbugable versions of GLib and GTK+ so that you
> can debug seamlessly through the GIMP/GTK+/GEGL/GLib/babl stack.

There's no need to do that. You can simply install the debug symbols for
these libraries. The most important packages are libgtk2.0-0-dbg and
libglibglib2.0-0-dbg.

> For
> example, this is the autogen command I use to configure a fresh checkout
> of GIMP trunk:
>
> export CFLAGS='-g -O0'; ACLOCAL_FLAGS="-I /opt/glib-trunk/share/aclocal
> -I /opt/gtk-trunk/share/aclocal"
> PKG_CONFIG_PATH=/opt/babl-trunk/lib/pkgconfig:/opt/libexif-0.6.17/lib/pkgconfig:/opt/glib-trunk/lib/pkgconfig:/opt/gtk-trunk/lib/pkgconfig:/opt/gegl-trunk/lib/pkgconfig
> LD_LIBRARY_PATH=/opt/babl-trunk/lib:/opt/libexif-0.6.17/lib:/opt/glib-trunk/lib:/opt/gtk-trunk/lib:/opt/gegl-trunk/lib
> ./autogen.sh --prefix=/opt/gimp-trunk

If you follow my advice to install babl and GEGL into /usr/local, you
can just run autogen.sh without any extra arguments.


Sven


_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

↑Back to thread overview
Permalink:491C7F1B.7040104@gmail.com
Date:13 Nov 2008 08:25 PM
From:Martin Nordholts
Subject:Environment suggestion
Sven Neumann wrote:
> Hi,
>
> On Thu, 2008-11-13 at 18:57 +0100, Martin Nordholts wrote:
>
>> * Build unoptimized, debbugable versions of GLib and GTK+ so that you
>> can debug seamlessly through the GIMP/GTK+/GEGL/GLib/babl stack.
>>
>
> There's no need to do that. You can simply install the debug symbols for
> these libraries. The most important packages are libgtk2.0-0-dbg and
> libglibglib2.0-0-dbg.
>

Unless I am mistaken these libraries have been compiled with
optimization enabled. Debugging code compiled with optimization doesn't
really work out, there's too much jumping-around going on.

- Martin
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

↑Back to thread overview
Permalink:1226611720.8642.8.camel@bender
Date:13 Nov 2008 10:28 PM
From:Sven Neumann
Subject:Environment suggestion
Hi,

On Thu, 2008-11-13 at 20:25 +0100, Martin Nordholts wrote:

> Unless I am mistaken these libraries have been compiled with
> optimization enabled. Debugging code compiled with optimization doesn't
> really work out, there's too much jumping-around going on.

This might be true in theory. But I have not yet encountered a single
case where this would have caused a problem. And I always compile with
optimization enabled.

So for someone who wants to get a working development environment
quickly, it is perfectly fine to use the packaged libraries.


Sven


_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

↑Back to thread overview
Permalink:20081114063900.GA6190@shallowsky.com
Date:14 Nov 2008 07:39 AM
From:Akkana Peck
Subject:Environment suggestion
Rob Antonishen writes:
> I have an older PIII notebook I'm willing to blow away and use just
> for this purpose ... can anyone suggest the shortest path from a blank
> hard drive to a working gimp develpment environment?

Sven Neumann writes:
> It doesn't hurt to put babl and GEGL into /usr/local. Just run configure
> without any extra arguments and things will just work.

There's one more step you'll need in addition to getting gegl and
babl that I didn't see mentioned (maybe I just missed it): gimp
needs quite a long list of build dependencies that aren't installed
by default, especially on Ubuntu which doesn't even install a
compiler. If you follow Martin's suggestion (which I agree with)
of using Ubuntu 8.10 ("Intrepid Ibex"), you can get the requirements
using one (perhaps very long) line typed in a terminal window.

This command might work, but I haven't tried it myself:
sudo apt-get build-dep gimp

If you try that but still get build errors from missing packages,
try the long version listing all the important packages:

sudo apt-get install build-essential subversion make gcc libglib2.0-dev libgtk2.0-dev intltool automake1.9 libtool gtk-doc-tools g++-3.3 libart-2.0-dev libtiff4-dev libexif-dev libxmu-dev libjpeg62-dev libmng-dev libpng12-dev librsvg2-dev libgutenprintui2-dev libaa1-dev python2.5-dev python-gtk2-dev libaa1-dev libxpm-dev libwmf-bin libwmf-dev libgtkhtml2-dev

By the way, on an older PIII notebook, you may have trouble
with the standard Ubuntu "Live CD" installs. If the Live CD doesn't
boot or locks up partway through the installation, don't give up,
but try downloading one of the "Alternate Installer" CD images.

Unfortunately you may also have performance issues with GIMP 2.7
on a machine like that. With anything earlier, a PIII notebook
should be okay as long as you're patient -- the build will take
quite a while, maybe as long as a few hours -- and you don't need to
work with huge images.

...Akkana
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

↑Back to thread overview
Permalink:1226649088.30482.8.camel@bender
Date:14 Nov 2008 08:51 AM
From:Sven Neumann
Subject:Environment suggestion
Hi,

On Thu, 2008-11-13 at 22:39 -0800, Akkana Peck wrote:


> Unfortunately you may also have performance issues with GIMP 2.7
> on a machine like that.

Are you implying that GIMP trunk is in any way slower than GIMP 2.6
(without enabling the GEGL projection, of course)? If you can show that
this is the case, then we would like to know about it so that we can
attempt to avoid such regressions.


Sven


_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

↑Back to thread overview
Permalink:20081117020117.GA6308@shallowsky.com
Date:17 Nov 2008 03:01 AM
From:Akkana Peck
Subject:Environment suggestion
Sven Neumann writes:
> On Thu, 2008-11-13 at 22:39 -0800, Akkana Peck wrote:
> > Unfortunately you may also have performance issues with GIMP 2.7
> > on a machine like that.
>
> Are you implying that GIMP trunk is in any way slower than GIMP 2.6
> (without enabling the GEGL projection, of course)? If you can show that
> this is the case, then we would like to know about it so that we can
> attempt to avoid such regressions.

No, sorry, I didn't mean to imply that. At least with GEGL disabled,
There's no performance difference I know of between 2.6 and 2.7.

In truth I haven't run 2.6 very much on my slow low-memory PIII laptop,
and 2.7 not at all yet. 2.6 has mostly seemed comparable in speed to
2.4 -- both a bit slower, on that machine, than 2.2 was, a difference
I don't notice on faster desktop machines.

...Akkana
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

↑Back to thread overview
Permalink:1226907531.16880.1.camel@bender
Date:17 Nov 2008 08:38 AM
From:Sven Neumann
Subject:Environment suggestion
Hi,

On Sun, 2008-11-16 at 18:01 -0800, Akkana Peck wrote:

> No, sorry, I didn't mean to imply that. At least with GEGL disabled,
> There's no performance difference I know of between 2.6 and 2.7.

Ok, thanks.

> In truth I haven't run 2.6 very much on my slow low-memory PIII laptop,
> and 2.7 not at all yet. 2.6 has mostly seemed comparable in speed to
> 2.4 -- both a bit slower, on that machine, than 2.2 was, a difference
> I don't notice on faster desktop machines.

That's not surprising. In particular the much higher quality of the
zoomed-out image display in GIMP 2.4, compared to 2.2, costs a few CPU
cycles.


Sven


_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

↑Back to thread overview

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