Build instructions for Linux needs some love
I tried to build GIMP on Linux (Kubuntu 19.10) using https://wiki.gimp.org/wiki/Hacking:Building and had some issues which I will listen below. Please update the wiki accordingly (I would do it myself but was unable to get an account there).
Building GEGL
Run-time dependency babl found: NO (tried pkgconfig and cmake)
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/gimp_prefix/lib/x86_64-linux-gnu/pkgconfig/
Building GIMP
meson.build:322:0: ERROR: Dependency "dbus-glib-1" not found, tried pkgconfig and cmake
sudo apt install libdbus-glib-1-dev
meson.build:353:0: ERROR: Dependency "libmypaint" not found, tried pkgconfig and cmake
symlink libmypaint-2.0.pc
to libmypaint.pc
in $HOME/gimp_prefix/lib/pkgconfig/
meson.build:365:0: ERROR: Dependency "mypaint-brushes-1.0" not found, tried pkgconfig and cmake
symlink mypaint-brushes-2.0.pc
to mypaint-brushes-1.0.pc
in $HOME/gimp_prefix/share/pkgconfig/
meson.build:561:0: ERROR: Dependency "xmu" not found, tried pkgconfig and cmake
sudo apt install libxmu-dev
Then I also had do work around #4230 (closed)
Run it
Beside the instructions in https://wiki.gimp.org/wiki/Hacking:Building/Linux#Running_Your_Compiled_Version_of_GIMP I also had to add export LD_LIBRARY_PATH=$GIMP_PREFIX/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
and adjust the binary name: $GIMP_PREFIX/bin/gimp-2.99