Re: [Gimp-developer] GIMP looking for babl and GEGL outside the prefix



On 02/23/2015 07:11 AM, Michael Natterer wrote:

A more-or-less complete development
prefix environment looks like this (working example from my disk, with
all the same packages in prefix also installed by the OS in /usr):

PREFIX=/home/elle/code/gimpdefault/run
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

If you also build glib in that prefix, it needs to find
OS-installed modules. On debian unstable 64 bit this looks
like:

export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules

but might be different depending on the distribution.

Mitch, thanks! Following your setup worked perfectly.

glib did complain that $PREFIX/share/aclocal didn't exist, so I created the empty directory and then everything went smoothly, with GIMP and glib both writing ".m4" files to the aclocal directory. From curiosity, why didn't babl and GEGL also write ".m4" files?

In case anyone else is running Gentoo, the path (at least for a pure 64-bit build) is "/usr/lib/gio/modules".

For the next person who encounters this problem, maybe a link to Mitch's post could be added to http://wiki.gimp.org/wiki/Hacking:Problems_and_solutions#GIMP_build_fails_for_missing_BABL_function?

Elle



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]