building GIMP from git
This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
building GIMP from git | Olivier | 07 Oct 14:10 |
building GIMP from git | Elle Stone | 07 Oct 15:38 |
building GIMP from git | Elle Stone | 07 Oct 15:42 |
building GIMP from git | Olivier | 07 Oct 16:03 |
building GIMP from git | Julien Nabet | 07 Oct 16:34 |
building GIMP from git | Olivier | 07 Oct 16:54 |
building GIMP from git | Elle Stone | 07 Oct 19:23 |
building GIMP from git | Olivier | 08 Oct 06:31 |
building GIMP from git | Sam Gleske | 08 Oct 17:57 |
building GIMP from git | Tobias Ellinghaus | 08 Oct 19:03 |
building GIMP from git | Michael Natterer | 08 Oct 06:18 |
building GIMP from git | Olivier | 08 Oct 06:29 |
building GIMP from git
Hello all.
I'm trying to build GIMP-2.9 as explained on http://www.gimp.org/source/howtos/gimp-git-build.html. I'm using Ubuntu 15.04.
Everything seems to work smootly, but when I try using gimp-2.9 I get the error message:
GEGL operation missing!
GIMP requires the GEGL operation "gegl:maze". This operation cannot be found. Check your GEGL install and ensure it has been compiled with any dependencies required for GIMP.
What am I doing wrong? When I build GEGL, the only warnings I get after configuring it are that the Vala support is missing, as well as avformat amd umfpack.
Thanks for any help.
Olivier Lecarme
building GIMP from git
On 10/07/2015 10:10 AM, Olivier wrote:
Hello all.
I'm trying to build GIMP-2.9 as explained on http://www.gimp.org/source/howtos/gimp-git-build.html. I'm using Ubuntu 15.04.
Everything seems to work smootly, but when I try using gimp-2.9 I get the error message:
GEGL operation missing!
GIMP requires the GEGL operation "gegl:maze". This operation cannot be found. Check your GEGL install and ensure it has been compiled with any dependencies required for GIMP.
What am I doing wrong? When I build GEGL, the only warnings I get after configuring it are that the Vala support is missing, as well as avformat amd umfpack.
Thanks for any help.
It sort of sounds like GIMP isn't finding a recent enough version of GEGL. Did you install babl from git and GEGL from git in the same prefix as GIMP from git?
In case they might be helpful, I put up some articles on building and updating GIMP from git:
Building GIMP for artists and photographers http://ninedegreesbelow.com/photography/build-gimp-in-prefix-for-artists.html
Updating GIMP for artists and photographers http://ninedegreesbelow.com/photography/update-gimp-in-prefix-for-artists.html
The second article also explains how to use the git log to see the latest updates.
building GIMP from git
On 10/07/2015 11:38 AM, Elle Stone wrote:
On 10/07/2015 10:10 AM, Olivier wrote:
Hello all.
I'm trying to build GIMP-2.9 as explained on http://www.gimp.org/source/howtos/gimp-git-build.html. I'm using Ubuntu 15.04.
Everything seems to work smootly, but when I try using gimp-2.9 I get the error message:
GEGL operation missing!
GIMP requires the GEGL operation "gegl:maze". This operation cannot be found. Check your GEGL install and ensure it has been compiled with any dependencies required for GIMP.
What am I doing wrong? When I build GEGL, the only warnings I get after configuring it are that the Vala support is missing, as well as avformat amd umfpack.
Thanks for any help.
It sort of sounds like GIMP isn't finding a recent enough version of GEGL. Did you install babl from git and GEGL from git in the same prefix as GIMP from git?
In case they might be helpful, I put up some articles on building and updating GIMP from git:
Building GIMP for artists and photographers http://ninedegreesbelow.com/photography/build-gimp-in-prefix-for-artists.html
Updating GIMP for artists and photographers http://ninedegreesbelow.com/photography/update-gimp-in-prefix-for-artists.html
The second article also explains how to use the git log to see the latest updates.
Hmm, also, as shown in the first article, based on a discussion on this list awhile back, sometimes even when building in a prefix, GIMP looks in the wrong place unless you add a line about the GIO_EXTRA_MODULES, as per the following (your linux OS might need lib64 instead of lib);
PREFIX=$HOME/code/gimplch/install
export PATH=$PREFIX/bin:$PATH
export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
export XDG_DATA_DIRS=$PREFIX/share:$XDG_DATA_DIRS
export ACLOCAL_FLAGS="-I $PREFIX/share/aclocal"
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
export GIO_EXTRA_MODULES=/usr/lib/gio/modules
export SRC_DIR=$HOME/code/gimplch/build
building GIMP from git
I downloaded GEGL and BABL from the links on page http://www.gimp.org/, i.e. http://gegl.org/ and http://gegl.org/babl/. I compiled and installed them using the normal procedure (sudo ./configure && make && make install).
Thus GEGL and BABL are not built from git, and they are installed in the system directories, not under a special prefix. Your articles seem to suggest that I should have chosen the second solution, but http://www.gimp.org/source/howtos/gimp-git-build.html does not suggest that.
Since GEGL is installed in only one place, i.e. /usr/local/lib/, I don't understand where GIMP could find it in a wrong place.
2015-10-07 17:38 GMT+02:00 Elle Stone :
On 10/07/2015 10:10 AM, Olivier wrote:
Hello all.
I'm trying to build GIMP-2.9 as explained on http://www.gimp.org/source/howtos/gimp-git-build.html. I'm using Ubuntu 15.04.
Everything seems to work smootly, but when I try using gimp-2.9 I get the error message:
GEGL operation missing!
GIMP requires the GEGL operation "gegl:maze". This operation cannot be found. Check your GEGL install and ensure it has been compiled with any dependencies required for GIMP.
What am I doing wrong? When I build GEGL, the only warnings I get after configuring it are that the Vala support is missing, as well as avformat amd umfpack.
Thanks for any help.
It sort of sounds like GIMP isn't finding a recent enough version of GEGL. Did you install babl from git and GEGL from git in the same prefix as GIMP from git?
In case they might be helpful, I put up some articles on building and updating GIMP from git:
Building GIMP for artists and photographers
http://ninedegreesbelow.com/photography/build-gimp-in-prefix-for-artists.html
Updating GIMP for artists and photographers
http://ninedegreesbelow.com/photography/update-gimp-in-prefix-for-artists.html
The second article also explains how to use the git log to see the latest updates.
Olivier Lecarme
building GIMP from git
On 07/10/2015 18:03, Olivier wrote:
I downloaded GEGL and BABL from the links on page http://www.gimp.org/, i.e. http://gegl.org/ and http://gegl.org/babl/. I compiled and installed them using the normal procedure (sudo ./configure && make && make install).
Thus GEGL and BABL are not built from git, and they are installed in the system directories, not under a special prefix. Your articles seem to suggest that I should have chosen the second solution, but http://www.gimp.org/source/howtos/gimp-git-build.html does not suggest that.
Since GEGL is installed in only one place, i.e. /usr/local/lib/, I don't understand where GIMP could find it in a wrong place.
Hello,
I had some surprises when building gimp (with gegl/babl from git too).
First I tried to use babl and gegl provided by Debian testing, but
they're not recent enough.
Then I uninstalled Debian packages and install the babl/gegl builds from
root. I don't remember if it succeeded but anyway, it wasn't ok for Gimp.
Hopefully, this link helped me a lot:
http://wiki.gimp.org/wiki/Hacking:Building/Linux
It seems building process needs some "black magic" to make it easier :-)
Julien
building GIMP from git
Finally I succedded in installing GIMP, by fetching gegl, babl, gdk-pixbuf, and gimp itself from git, and configuring and installing them all under the same prefix. Under Ubuntu 15.04, the GIO extra modules are located in usr/lib/x86_64-linux-gnu/gio/modules.
Thus I used Martin Nordholts' explanation in http://www.gimp.org/source/howtos/gimp-git-build.html, but I added gegl, babl, and gdk-pixbuf tothe packages to be fetched from git, compiled and installed, and I added GIO_EXTRA_MODULES to the exported variables, although I'm not sure that is needed.
Thanks to all!
Olivier Lecarme
building GIMP from git
On 10/07/2015 12:54 PM, Olivier wrote:
Finally I succedded in installing GIMP, by fetching gegl, babl, gdk-pixbuf, and gimp itself from git, and configuring and installing them all under the same prefix. Under Ubuntu 15.04, the GIO extra modules are located in usr/lib/x86_64-linux-gnu/gio/modules.
Thus I used Martin Nordholts' explanation in http://www.gimp.org/source/howtos/gimp-git-build.html, but I added gegl, babl, and gdk-pixbuf tothe packages to be fetched from git, compiled and installed, and I added GIO_EXTRA_MODULES to the exported variables, although I'm not sure that is needed.
Thanks to all!
Olivier Lecarme
Based on comments in https://aur.archlinux.org/packages/gegl-git/, it does look like maybe the original problem was that GIMP was finding a too-outdated version of GEGL.
I never needed to export GIO_EXTRA_MODULES until I tried to run GIMP 2.8 installed from the Gentoo package manager alongside babl/GEGL/GIMP from git installed in a prefix. But here's the reference, fwiw:
https://mail.gnome.org/archives/gimp-developer-list/2015-February/msg00042.html https://mail.gnome.org/archives/gimp-developer-list/2015-February/msg00051.html
Looking at what Mitch said, it seems exporting GIO_EXTRA_MODULES is only be needed if glib is also built in the prefix. So sorry for the noise! if you didn't also build glib in the prefix.
For the next person trying to build GIMP from git who might stumble over this thread, a few other "why it doesn't work and what to do" are documented here:
building GIMP from git
On Wed, 2015-10-07 at 18:03 +0200, Olivier wrote:
I downloaded GEGL and BABL from the links on page http://www.gimp.org /,
i.e. http://gegl.org/ and http://gegl.org/babl/. I compiled and installed
them using the normal procedure (sudo ./configure && make && make install).Thus GEGL and BABL are not built from git
But you must install babl and gegl from git in order to build gimp from git.
Just install them from git too, into the same prefix, using the same environment.
Regards,
--Mitch
building GIMP from git
OK, I did that and everything is OK. Thanks.
Olivier Lecarme
2015-10-08 8:18 GMT+02:00 Michael Natterer :
On Wed, 2015-10-07 at 18:03 +0200, Olivier wrote:
I downloaded GEGL and BABL from the links on page http://www.gimp.org /,
i.e. http://gegl.org/ and http://gegl.org/babl/. I compiled and installed
them using the normal procedure (sudo ./configure && make && make install).Thus GEGL and BABL are not built from git
But you must install babl and gegl from git in order to build gimp from git.
Just install them from git too, into the same prefix, using the same environment.
Regards,
--Mitch
Olivier Lecarme
building GIMP from git
In fact, I also built glib from git, thus maybe GIO_EXTRA_MODULES was also needed. Anyway, I used it and everything is OK now.
Olivier Lecarme
2015-10-07 21:23 GMT+02:00 Elle Stone :
On 10/07/2015 12:54 PM, Olivier wrote:
Finally I succedded in installing GIMP, by fetching gegl, babl, gdk-pixbuf, and gimp itself from git, and configuring and installing them all under the same prefix. Under Ubuntu 15.04, the GIO extra modules are located in usr/lib/x86_64-linux-gnu/gio/modules.
Thus I used Martin Nordholts' explanation in http://www.gimp.org/source/howtos/gimp-git-build.html, but I added gegl, babl, and gdk-pixbuf tothe packages to be fetched from git, compiled and installed, and I added GIO_EXTRA_MODULES to the exported variables, although I'm not sure that is needed.
Thanks to all!
Olivier Lecarme
Based on comments in https://aur.archlinux.org/packages/gegl-git/, it does look like maybe the original problem was that GIMP was finding a too-outdated version of GEGL.
I never needed to export GIO_EXTRA_MODULES until I tried to run GIMP 2.8 installed from the Gentoo package manager alongside babl/GEGL/GIMP from git installed in a prefix. But here's the reference, fwiw:
https://mail.gnome.org/archives/gimp-developer-list/2015-February/msg00042.html
https://mail.gnome.org/archives/gimp-developer-list/2015-February/msg00051.html
Looking at what Mitch said, it seems exporting GIO_EXTRA_MODULES is only be needed if glib is also built in the prefix. So sorry for the noise! if you didn't also build glib in the prefix.
For the next person trying to build GIMP from git who might stumble over this thread, a few other "why it doesn't work and what to do" are documented here:
Olivier Lecarme
building GIMP from git
It's likely that you're missing LD_LIBRARY_PATH when you're loading GIMP. While you're starting GIMP that was compiled from Git it is loading GEGL libraries from other sources. You should do the following (assuming GIMP, GEGL, and BABL were installed under /usr/local prefix by default):
LD_LIBRARY_PATH=/usr/local/lib gimp-2.9
GIMP will then look to /usr/local/lib for its GEGL and BABL libraries instead of /usr/lib (which is where it is typically installed by a package manager).
On Wed, Oct 7, 2015 at 11:31 PM, Olivier wrote:
In fact, I also built glib from git, thus maybe GIO_EXTRA_MODULES was also needed. Anyway, I used it and everything is OK now.
Olivier Lecarme
2015-10-07 21:23 GMT+02:00 Elle Stone :
On 10/07/2015 12:54 PM, Olivier wrote:
Finally I succedded in installing GIMP, by fetching gegl, babl, gdk-pixbuf, and gimp itself from git, and configuring and installing them all under the same prefix. Under Ubuntu 15.04, the GIO extra modules are located in usr/lib/x86_64-linux-gnu/gio/modules.
Thus I used Martin Nordholts' explanation in http://www.gimp.org/source/howtos/gimp-git-build.html, but I added
gegl,
babl, and gdk-pixbuf tothe packages to be fetched from git, compiled and installed, and I added GIO_EXTRA_MODULES to the exported variables, although I'm not sure that is needed.
Thanks to all!
Olivier Lecarme
Based on comments in https://aur.archlinux.org/packages/gegl-git/, it does look like maybe the original problem was that GIMP was finding a too-outdated version of GEGL.
I never needed to export GIO_EXTRA_MODULES until I tried to run GIMP 2.8 installed from the Gentoo package manager alongside babl/GEGL/GIMP from
git
installed in a prefix. But here's the reference, fwiw:
https://mail.gnome.org/archives/gimp-developer-list/2015-February/msg00042.html
https://mail.gnome.org/archives/gimp-developer-list/2015-February/msg00051.html
Looking at what Mitch said, it seems exporting GIO_EXTRA_MODULES is only be needed if glib is also built in the prefix. So sorry for the noise! if you didn't also build glib in the prefix.
For the next person trying to build GIMP from git who might stumble over this thread, a few other "why it doesn't work and what to do" are documented here:
--
Olivier Lecarme
_______________________________________________ gimp-developer-list mailing list
List address: gimp-developer-list@gnome.org List membership:
https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
I prefer to encrypt my email GPG FINGERPRINT 4096 KEY 8D8B F0E2 42D8 A068 572E BF3C E8F7 3234 7257 E65F https://keybase.io/samrocketman Learn how to encrypt your email with the Email Self Defense guide: https://emailselfdefense.fsf.org/en/
building GIMP from git
Am Donnerstag, 8. Oktober 2015, 10:57:49 schrieb Sam Gleske:
It's likely that you're missing LD_LIBRARY_PATH when you're loading GIMP. While you're starting GIMP that was compiled from Git it is loading GEGL libraries from other sources. You should do the following (assuming GIMP, GEGL, and BABL were installed under /usr/local prefix by default):
LD_LIBRARY_PATH=/usr/local/lib gimp-2.9
GIMP will then look to /usr/local/lib for its GEGL and BABL libraries instead of /usr/lib (which is where it is typically installed by a package manager).
With everyone telling how they build GIMP I would like to add how to avoid setting the LD_LIBRARY_PATH: baking the path into the executable.
I am installing everything (babl, gegl and GIMP) to /opt/gimp-GIT/ (which belongs to my user so I don't need root to install). These are my calls to configure the three, afterwards a simple "make -j5 install" is enough.
babl: LDFLAGS="-Wl,-rpath -Wl,/opt/gimp-GIT/lib" CFLAGS="-march=native -O3" CXXFLAGS="$CFLAGS" ./autogen.sh --prefix=/opt/gimp-GIT/
gegl (disabling stuff just because I don't need it): PKG_CONFIG_PATH="/opt/gimp-GIT/lib/pkgconfig" LDFLAGS="-Wl,-rpath - Wl,/opt/gimp-GIT/lib" CFLAGS="-march=native -O3" CXXFLAGS="$CFLAGS" ./autogen.sh --prefix=/opt/gimp-GIT/ --disable-docs --without-libavformat -- without-vala
GIMP (with mypaint being installed in /opt/mypaint/): PKG_CONFIG_PATH="/opt/gimp-GIT/lib/pkgconfig:/opt/mypaint/lib/pkgconfig" LDFLAGS="-Wl,-rpath -Wl,/opt/gimp-GIT/lib" CFLAGS="-march=native -O3" CXXFLAGS="$CFLAGS" ./autogen.sh --prefix=/opt/gimp-GIT --enable-python
Each of them is one line.
HTH Tobias
On Wed, Oct 7, 2015 at 11:31 PM, Olivier wrote:
In fact, I also built glib from git, thus maybe GIO_EXTRA_MODULES was also needed. Anyway, I used it and everything is OK now.
Olivier Lecarme
2015-10-07 21:23 GMT+02:00 Elle Stone :
On 10/07/2015 12:54 PM, Olivier wrote:
Finally I succedded in installing GIMP, by fetching gegl, babl, gdk-pixbuf, and gimp itself from git, and configuring and installing them all under the same prefix. Under Ubuntu 15.04, the GIO extra modules are located in usr/lib/x86_64-linux-gnu/gio/modules.
Thus I used Martin Nordholts' explanation in http://www.gimp.org/source/howtos/gimp-git-build.html, but I added
gegl,
babl, and gdk-pixbuf tothe packages to be fetched from git, compiled and
installed, and I added GIO_EXTRA_MODULES to the exported variables, although I'm not sure that is needed.Thanks to all!
Olivier Lecarme
Based on comments in https://aur.archlinux.org/packages/gegl-git/, it does look like maybe the original problem was that GIMP was finding a too-outdated version of GEGL.
I never needed to export GIO_EXTRA_MODULES until I tried to run GIMP 2.8 installed from the Gentoo package manager alongside babl/GEGL/GIMP from
git
installed in a prefix. But here's the reference, fwiw:
https://mail.gnome.org/archives/gimp-developer-list/2015-February/msg00042 .html
https://mail.gnome.org/archives/gimp-developer-list/2015-February/msg00051 .html>
Looking at what Mitch said, it seems exporting GIO_EXTRA_MODULES is only be needed if glib is also built in the prefix. So sorry for the noise! if
you didn't also build glib in the prefix.For the next person trying to build GIMP from git who might stumble over this thread, a few other "why it doesn't work and what to do" are documented here:
--
Olivier Lecarme
_______________________________________________ gimp-developer-list mailing list
List address: gimp-developer-list@gnome.org List membership:
https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list