[blfs-support] Problems Compiling Gimp, Gegl and Babl

Alan Feuerbacher alanf00 at comcast.net
Sat Nov 16 03:51:33 PST 2013


I'm trying to install Gimp-2.8.8, following BLFS 7.4 Version 2013-11-14.
I've had some trouble with two dependencies, babl and gegl, as
described below.

For all these programs I first installed the required and recommended
dependencies, and many of the optional dependencies.

Below are comments for each problem area.

*===========*===========*===========*===========*===========*
babl-0.1.10 installed without a hitch, but put all of its libraries
and such in "babl-0.1" rather than in "babl". Gimp complained about
that so I had to make a link:

ln -sv /usr/include/babl-0.1/babl /usr/include/babl
*===========*===========*===========*===========*===========*


*===========*===========*===========*===========*===========*
gegl-0.2.0 would not completely compile, so I tried configuring it
with and without the "--without-vala" switch, per the BLFS Command
Explanation:

"--without-vala: Do not create a vala API - use this if vapigen breaks
the build."

I don't know what this means, but I tried it anyway.

In both cases make failed with:
###############
make[3]: Entering directory `/sources/gegl-0.2.0/docs'
GEGL_SWAP=RAM GEGL_PATH=../operations \
../tools/operation_reference --ops-html > operations.html
../tools/create-reference.rb    \
    ../gegl/gegl.h                      \
    ../gegl/gegl-version.h              \
    ../gegl/buffer/gegl-buffer.h        \
            ../gegl/gegl-utils.h \
            ../gegl/property-types/gegl-color.h\
            ../gegl/gegl-matrix.h \
            ../gegl/property-types/gegl-path.h\
            ../gegl/property-types/gegl-curve.h\
    api.html
../gegl/gegl.h
../tools/create-reference.rb:331:in `block (2 levels) in <main>':
invalid byte sequence in US-ASCII (ArgumentError)
        from ../tools/create-reference.rb:325:in `foreach'
        from ../tools/create-reference.rb:325:in `block in <main>'
        from ../tools/create-reference.rb:318:in `times'
        from ../tools/create-reference.rb:318:in `<main>'
make[3]: *** [api.html] Error 1
make[3]: Leaving directory `/sources/gegl-0.2.0/docs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/gegl-0.2.0/docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/gegl-0.2.0'
make: *** [all] Error 2
###############

An online search showed that others have had the same issue when
trying to install on FreeBSD, but I have not found a solution for Linux.

Running "make check" and "make install" mostly worked, I think,
but produced the same errors as above.

Similar to babl-0.1.10, gegl-0.2 put all of its libraries and such
in "gegl-0.2" rather than in "gegl". Gimp complained about that too,
so I made this link:

ln -sv /usr/include/gegl-0.2 /usr/include/gegl

The gimp configure also complained about not finding pkg-config
information on gegl, so I added the appropriate stuff with:

cat > /usr/lib/pkgconfig/gegl-0.2.pc << "EOF"
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: gegl-0.2
Description: GEneric Graphics Library
Version: 0.2.0
Cflags: -I${includedir}/gegl-0.2
Libs: -L${libdir} -lgegl-0.2 -lm
EOF

I'm assuming that the lack of a finished make step in compiling
gegl resulted in failure to create the appropriate pkg-config stuff.
*===========*===========*===========*===========*===========*


*===========*===========*===========*===========*===========*
Trying to install Gimp-2.8.8, following BLFS 7.4 Version 2013-11-14

Installed babl-0.1.10 and then gegl-0.2.0, along with their dependencies.

Used:
./configure --prefix=/usr --sysconfdir=/etc

On my first try, configure complained that it couldn't find babl and gegl,
so I fixed it with:

ln -sv /usr/include/babl-0.1/babl /usr/include/babl
ln -sv /usr/include/gegl-0.2 /usr/include/gegl

Then make failed with this error:
#############
  CCLD     gimp-2.8
/usr/bin/ld: gegl/libappgegl.a(gimp-gegl-utils.o): undefined reference
to symbol 'babl_format'
/usr/bin/ld: note: 'babl_format' is defined in DSO
/usr/lib64/libbabl-0.1.so.0 so try adding it to the linker command line
/usr/lib64/libbabl-0.1.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[4]: *** [gimp-2.8] Error 1
make[4]: Leaving directory `/sources/gimp-2.8.8/app'
#############
*===========*===========*===========*===========*===========*

Any ideas what's going wrong?

Alan



More information about the blfs-support mailing list