Hi folks,
I have successfuly compiled GIMP from GIT source. In order to build GIMP git master I am using a modified version of @Elle Stone’s script to build GIMP:
# Set up some folders
mkdir $HOME/code
mkdir $HOME/code/gimpdefault
mkdir $HOME/code/gimpdefault/build
mkdir $HOME/code/gimpdefault/install
mkdir $HOME/code/gimpdefault/install/share
mkdir $HOME/code/gimpdefault/install/share/aclocal
touch $HOME/code/gimpdefault/install/share/aclocal/gimp-2.0.m4
# Clone the software — add to this list as needed on your system.
cd $HOME/code/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
git clone https://github.com/Jehan/mypaint-brushes.git
# Set up the prefix, modifying the GIO_EXTRA_MODULES and the "lib" path as
#required for your version of GNU/Linux:
PREFIX=$HOME/code/gimpdefault/install
export CC = clang
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 PKG_CONFIG_PATH=$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH
export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules
export SRC_DIR=$HOME/code/gimpdefault/build
# Build and install glib/babl/GEGL/libmypaint/the mypaint brushes/GIMP in the
# prefix — add to this list as needed on your system.
cd $SRC_DIR/glib
./autogen.sh --prefix=$PREFIX
make -j3 && make -j3 install
cd $SRC_DIR/babl
./autogen.sh --prefix=$PREFIX --disable-docs
make -j3 && make -j3 install
cd $SRC_DIR/gegl
git checkout v0.4.1
./autogen.sh --prefix=$PREFIX --enable-gtk-doc-html=no --enable-workshop
make -j3 && make -j3 install
cd $SRC_DIR/libmypaint
git checkout v1.3.0
./autogen.sh --prefix=$PREFIX
./configure --prefix=$PREFIX
make -j3 && make -j3 install
cd $SRC_DIR/mypaint-brushes
git checkout v1.3.0
./autogen.sh --prefix=$PREFIX
./configure --prefix=$PREFIX
make -j3 && make -j3 install
cd $SRC_DIR/gimp
./autogen.sh --prefix=$PREFIX --with-gimpdir=$HOME/code/gimpdefault/install/config --disable-gtk-doc
make -j3 && make -j3 install
However, when I run the binary it display an error and GIMP won’t actually start:
GIMP requires GEGL version 0.4.1 or later.
Installed GEGL version is 0.4.0.
Indeed, gimp/configure.ac has got the following lines:
m4_define([gegl_major_minor_version], [0.4])
m4_define([gegl_micro_version], [1])
m4_define([gegl_required_version],[gegl_major_minor_version.gegl_micro_version])
I have GEGL 0.4.1installed in a diferent folder /code/gimpdefault/build/gegl. In GEGL’s configure.ac it is written:
m4_define([gegl_major_version], [0])
m4_define([gegl_minor_version], [4])
m4_define([gegl_micro_version], [1])
Why did the building process of GIMP recognized GEGL 0.4.1 and when I run GIMP it does not?
Xubuntu 18.04 64 bit