Error installing glib-networking

I was following the installation instructions to install GIMP GIT in Building GIMP for artists and photographers ’ My system is Fedora 64 Cinnamon bit.

When I type:
./autogen.sh --prefix=$PREFIX --disable-gtk-doc --with-gimpdir=$HOME/code/gimpdefault/install/config

I get the following error:

configure: error: 

Extra Binaries:
  gimp-console:        yes

Optional Features:
  Language selection:  no (iso-codes package not found)
  Vector icons:        yes
  Dr. Mingw (Win32):   no

Optional Plug-Ins:
  Ascii Art:           no (AA library not found)
  Ghostscript:         no (Ghostscript library not found)
  Help Browser:        no (WebKit not found)
  JPEG 2000:           yes
  MNG:                 no (MNG header file not found)
  OpenEXR:             no (OpenEXR not found)
  WebP:                no (WebP not found)
  PDF (import):        Using PostScript plug-in (libpoppler-glib not found)
  PDF (export):        yes
  Print:               yes
  Python 2:            yes
  Script-Fu:           yes
  TWAIN (Win32):       no
  Webpage:             no (WebKit not found)
  WMF:                 no (libwmf not found)
  X11 Mouse Cursor:    yes
  XPM:                 no (XPM library not found)
  Email:               yes (xdg-email)

Optional Modules:
  ALSA (MIDI Input):   no (libasound not found or unusable)
  Linux Input:         yes (GUdev support: no (libgudev not found))
  DirectInput (Win32): no

Tests:
  Use xvfb-run         no (not found)
  Test appdata         no (appstream-util not found)


Error: GIMP configuration failed.

  - Error: missing dependency glib-networking
      *** Test for glib-networking failed. This is required.

See the file 'INSTALL' for more help.

Configure failed or did not finish!

What should I do to fix this error?

ps: When I do
dnf install glib-networking

I get:
Package glib-networking-2.50.0-2.fc26.x86_64 is already installed, skipping.
Package glib-networking-2.50.0-2.fc26.i686 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
There is no glib-networking-devel as far as I know.

Have you checked the required version of glib-netwirking?

Hi @SheetM – I am on very thin ice here, and I do not have any Fedora installed… However, I have failed quite often trying to compile The Gimp myself the last few days, so at least I hope to be able to point you into the right direction…

a) glib-networking belongs to the gio modules. Thus: check the gio modules path in your prefix. As Elle wrote

> # Correspondingly, in the line that reads "export GIO_EXTRA_MODULES=/usr/lib/gio/modules"
> # the lib subfolder can very from one distribution to the next.
> # "/usr/lib/gio/modules" is correct for 64-bit Gentoo.
> # Use "/usr/lib/x86_64-linux-gnu/gio/modules" for 64-bit Debian.
> # Use "/usr/lib64/gio/modules" for OpenSuse.

b) Check in configure.ac to see what file and version it really looks for.

Good luck!
Claes in Lund, Sweden

Thanks! That worked. For Fedora, the GIO modules path is “/usr/lib64/gio/modules”.

Now “./autogen.sh --prefix=$PREFIX --with-gimpdir=$HOME/code/gimpdefault/install/config --disable-gtk-doc” completes successfuly.

However, I now get the following error in the “make -j3 && make -j3 install” stage:

make  all-recursive
make[1]: Entering directory '/home/xxx/code/gimpdefault/build/gimp'
Making all in m4macros
make[2]: Entering directory '/home/xxx/code/gimpdefault/build/gimp/m4macros'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/xxx/code/gimpdefault/build/gimp/m4macros'
Making all in cursors
make[2]: Entering directory '/home/xxx/code/gimpdefault/build/gimp/cursors'
  GEN      gimp-tool-cursors.c
  GEN      gimp-color-picker-cursors.c
failed to load "./cursor-color-picker.png": Couldn't recognize the image file format for file './cursor-color-picker.png'
failed to load "./cursor-bad.png": Couldn't recognize the image file format for file './cursor-bad.png'
gimp-color-picker-cursors.gresource.xml: Child process exited with code 1.
gimp-tool-cursors.gresource.xml: Child process exited with code 1.
make[2]: *** [Makefile:830: gimp-tool-cursors.c] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:851: gimp-color-picker-cursors.c] Error 1
make[2]: Leaving directory '/home/xxx/code/gimpdefault/build/gimp/cursors'
make[1]: *** [Makefile:815: all-recursive] Error 1
make[1]: Leaving directory '/home/xxx/code/gimpdefault/build/gimp'
make: *** [Makefile:716: all] Error 2

I have checked and these .png files look like normal .png files. Is this an issue with the version libpng installed? I have got version 1.6.28 installed. How do I fix this?

I haven’t as the answer from Claes solved the issue. However I am still getting errors in the make stage, please check my last post. Thanks

Morning!

https://www.wiki.gimp.org/wiki/Hacking:Problems_and_solutions

Good luck!
Claes in Lund, Sweden

Thanks that worked!

However, when I try to run gimp 2.9 it displays the message:

‘GEGL operation missing!
GIMP requires the GEGL operation “gegl:alien-map”. This operation cannot be found. Check your GEGL install and ensure it has been compiled with any dependencies required for GIMP.’

I tried the suggested solution:

export GEGL_PATH=${INSTALL_PREFIX}/lib/gegl-0.3
./gimp-2.9

But I am unsure what is my install prefix. How do I find it?

Hi again!

Well, that depends on how closely you followed the instructions that Elle gave :grinning:
Here is what she used:
PREFIX=$HOME/code/gimpdefault/install

Good luck!
Claes in Lund, Sweden

Thanks

I tried now with

INSTALL_PREFIX=HOME/code/gimpdefault/install export GEGL_PATH={INSTALL_PREFIX}/lib/gegl-0.3
./gimp-2.9

But now get the error:
"
GEGL operation missing!

GIMP requires the GEGL operation “gegl:npd”.
This operation cannot be found. Check your
GEGL install and ensure it has been compiled
with any dependencies required for GIMP.
"
Any idea on what should be done?

Hmmmmm…
Did you compile gegl yourself, according to the instructions on ninedegreesbelow?
Did that compilation run OK, or did you receive any error msg?

Good Lund,
Claes in Lund, Sweden

Thanks! Success! I compiled GIMP! :smile:

I just had to restart the terminal.

Just for future reference INSTALL_PREFIX is the same as PREFIX:
PREFIX = $HOME/code/gimpdefault/install

1 Like

Hi @SheetM ,

If you have suggestions for improving my “how to compile GIMP” pages I will try to update the pages. I’m impressed that you stuck with it through all the errors and got the code to compile and run - a lot of people would have just given up (these days probably including me, sometimes one does get tired of solving compile problems).

Best regards,
Elle

Thanks very much Elle! And thanks to the GIMPers that helped me out in this and other forums!

I also want to get rigsofrods working on Fedora, that is my next adventure! :wink:

I am building a script that should automatically build GIMP-git on Fedora 26. So next time I format the pc, I won’t have any trouble installing GIMP from git source.

I will upload it when it is ready and tested.

Here we go, this script seems to work for me in Fedora 26:

# This script should get the GIT version of GIMP installed and running on your Fedora system.
# It was tested using Fedora 26 Cinnamon 64bit.
# Copy paste this instructions into your terminal.
# It will install GIMP GIT in your $HOME/code2/gimpdefault/build/gimp/app folder.

# Set up some folders
mkdir $HOME/code3
mkdir $HOME/code3/gimpdefault
mkdir $HOME/code3/gimpdefault/build
mkdir $HOME/code3/gimpdefault/install
mkdir $HOME/code3/gimpdefault/install/share
mkdir $HOME/code3/gimpdefault/install/share/aclocal
touch $HOME/code3/gimpdefault/install/share/aclocal/gimp-2.0.m4

# Clone the software — add to this list as needed on your system.
cd $HOME/code3/gimpdefault/build
git clone git://git.gnome.org/glib
git clone git://git.gnome.org/babl
git clone git://git.gnome.org/gegl
git clone git://github.com/mypaint/libmypaint.git
git clone git://git.gnome.org/gimp

# Set up the prefix
PREFIX=$HOME/code3/gimpdefault/install
export PATH=$PREFIX/bin:$PATH
export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
# I have commented "export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH" to avoid a gegl error.
export ACLOCAL_FLAGS="-I $PREFIX/share/aclocal"
export XDG_DATA_DIRS=$PREFIX/share:$XDG_DATA_DIRS
# the path /usr/lib64/gio/modules works for Fedora. Other Systems have a different path
export GIO_EXTRA_MODULES=/usr/lib64/gio/modules
export SRC_DIR=$HOME/code3/gimpdefault/build

# Build and install glib/babl/GEGL/libmypaint/GIMP in the
# prefix — add to this list as needed on your system.

cd $SRC_DIR/glib
./autogen.sh --prefix=$PREFIX
make -j4 && make -j4 install

cd $SRC_DIR/babl
./autogen.sh --prefix=$PREFIX --disable-docs
make -j4 && make -j4 install

cd $SRC_DIR/gegl
./autogen.sh --prefix=$PREFIX --enable-gtk-doc-html=no --enable-workshop
make -j4 && make -j4 install

cd $SRC_DIR/libmypaint
./autogen.sh --prefix=$PREFIX
./configure --prefix=$PREFIX
make -j4 && make -j4 install

cd $SRC_DIR/gimp
./autogen.sh --prefix=$PREFIX --with-gimpdir=$HOME/code3/gimpdefault/install/config --disable-gtk-doc
make -j4 && make -j4 install

export GEGL_PATH=${PREFIX}/lib/gegl-0.3
cd $HOME/code3/gimpdefault/build/gimp/app
./gimp-2.9

The main differences are in the export commands and in the last three lines:
export GEGL_PATH=${PREFIX}/lib/gegl-0.3
cd $HOME/code3/gimpdefault/build/gimp/app
./gimp-2.9

I have yet to test it with a fresh install of Fedora 26 (or better when the 27 comes out). The reason why I put the path /code3/ is because I am super lazy and running this script by replacing the number (code4, code5, …) let’s me build an updated version of GIMP-git. Probably inneficient thought… but it seems to work!