Having followed https://wiki.gimp.org/wiki/Hacking:Building and having set all the envvars I get gegl dependency failure both via meson and autotools.
Here is my env just in case I can't copy and paste.
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
meson _build \ --prefix=${GIMP_PREFIX} \ --buildtype=release \ -Djavascript=always \ -Dlua=always \ -Dpython=alwaysThe Meson build systemVersion: 0.54.0Source dir: /home/ror6ax/devel/gimpBuild dir: /home/ror6ax/devel/gimp/_buildBuild type: native buildUsing 'PKG_CONFIG_PATH' from environment with value: '/home/ror6ax/gimp_prefix/share/pkgconfig:/home/ror6ax/gimp_prefix/lib/pkgconfig'Using 'PKG_CONFIG_PATH' from environment with value: '/home/ror6ax/gimp_prefix/share/pkgconfig:/home/ror6ax/gimp_prefix/lib/pkgconfig'Project name: gimpProject version: 2.99.1C compiler for the host machine: cc (gcc 10.0.1 "cc (GCC) 10.0.1 20200328 (Red Hat 10.0.1-0.11)")C linker for the host machine: cc ld.bfd 2.34-2C++ compiler for the host machine: c++ (gcc 10.0.1 "c++ (GCC) 10.0.1 20200328 (Red Hat 10.0.1-0.11)")C++ linker for the host machine: c++ ld.bfd 2.34-2Host machine cpu family: x86_64Host machine cpu: x86_64Message: Host machine cpu family: x86_64Message: Host os: linuxCompiler for C supports arguments -mfpmath=sse: YES Compiler for C supports arguments -mmmx: YES Compiler for C supports arguments -msse: YES Compiler for C supports arguments -msse2: YES Compiler for C supports arguments -msse4.1: YES Compiler for C supports arguments -fdiagnostics-show-option: YES Compiler for C supports arguments -fno-common: YES Compiler for C supports arguments -Wformat: YES Compiler for C supports arguments -Wformat-security: YES Compiler for C supports arguments -Winit-self: YES Compiler for C supports arguments -Wlogical-op: YES Compiler for C supports arguments -Wmissing-declarations: YES Compiler for C supports arguments -Wmissing-format-attribute: YES Compiler for C supports arguments -Wpointer-arith: YES Compiler for C supports arguments -Wreturn-type: YES Compiler for C supports arguments -Wtype-limits: YES Compiler for C supports arguments -Wabsolute-value: YES Compiler for C supports arguments -Wdeclaration-after-statement: YES Compiler for C supports arguments -Wenum-conversion: YES Compiler for C supports arguments -Wliteral-conversion: NO Compiler for C supports arguments -Wno-strict-prototypes -Wstrict-prototypes: YES Compiler for C supports arguments -Wold-style-definition: YES Compiler for C supports arguments -Wparentheses-equality: NO Compiler for C supports arguments -W#pragma-messages: NO Compiler for C supports arguments -Wsometimes-uninitialized: NO Compiler for C supports arguments -Wtautological-unsigned-enum-zero-compare: NO Compiler for C supports arguments -Wunneeded-internal-declaration: NO Compiler for C supports arguments -Wunused-function: YES Compiler for C supports arguments -Wunused-value: YES Compiler for C supports arguments -Werror=implicit-function-declaration: YES Library m found: YESLibrary dl found: YESFound pkg-config: /usr/bin/pkg-config (1.6.3)Using 'PKG_CONFIG_PATH' from environment with value: '/home/ror6ax/gimp_prefix/share/pkgconfig:/home/ror6ax/gimp_prefix/lib/pkgconfig'Run-time dependency atk found: YES 2.36.0Using 'PKG_CONFIG_PATH' from environment with value: '/home/ror6ax/gimp_prefix/share/pkgconfig:/home/ror6ax/gimp_prefix/lib/pkgconfig'Run-time dependency babl found: YES 0.1.78Using 'PKG_CONFIG_PATH' from environment with value: '/home/ror6ax/gimp_prefix/share/pkgconfig:/home/ror6ax/gimp_prefix/lib/pkgconfig'Run-time dependency cairo found: YES 1.16.0Using 'PKG_CONFIG_PATH' from environment with value: '/home/ror6ax/gimp_prefix/share/pkgconfig:/home/ror6ax/gimp_prefix/lib/pkgconfig'Run-time dependency fontconfig found: YES 2.13.92Using 'PKG_CONFIG_PATH' from environment with value: '/home/ror6ax/gimp_prefix/share/pkgconfig:/home/ror6ax/gimp_prefix/lib/pkgconfig'Run-time dependency freetype2 found: YES 23.1.17Using 'PKG_CONFIG_PATH' from environment with value: '/home/ror6ax/gimp_prefix/share/pkgconfig:/home/ror6ax/gimp_prefix/lib/pkgconfig'Run-time dependency gdk-pixbuf-2.0 found: YES 2.40.0Found CMake: /usr/bin/cmake (3.17.2)Run-time dependency gegl-0.4 found: NO (tried pkgconfig and cmake)meson.build:356:0: ERROR: Dependency "gegl-0.4" not found, tried pkgconfig and cmake
@ror6ax as @Jehan said in another report if you join on IRC (#gimp on irc.gimp.org) or ask on the developer mailing list. you can have mor help than in a bug traker
It looks like your gegl lib is in gimp_prefix/lib64, however that folder is not present in your LD_LIBRARY.
You may have to change your LD_LIBRARY path to include that and maybe also PKG_CONFIG_PATH.
export PKG_CONFIG_PATH="${GIMP_PREFIX}/share/pkgconfig:${GIMP_PREFIX}/lib64/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" fixed the problem. Probably needs to be updated on wiki given how widespread x64 is.
I tried sending an email to developer list but got a "Message body is too big: 68961 bytes with a limit of 40 KB" answer. Given the length of possible meson logs I'm not sure where should such queries be posted.
The fastest way to get answers is usually to ask on Gimp's IRC channel. You can post your text using a pastebin website, e.g. https://paste.gnome.org/.
Yes, I could have also used github gist, it's not some insurmountable obstacle but still takes time to figure this out. Perhaps something that can be considered in future for making onboarding more friendly.
@ror6ax That page is intended for developers, so it contain only general information's since every system need different environment variables or packages name, maybe this can be added here https://wiki.gimp.org/wiki/Hacking:Problems_and_solutions, for wiki account maibe @schumaml can help or you need to ask on irc
My default Fedora 32 also lacked these packages for meson build to succeed:
I've edited the wiki to at least add the link to the INSTALL file (the 2.10 version was already there, but I added the link to the master branch too). This is anyway the real reference. Whatever we put in the wiki is just a copy and will always end up outdated with time.
Apart from this, one of the comment above said that the issue was fixed:
export PKG_CONFIG_PATH="${GIMP_PREFIX}/share/pkgconfig:${GIMP_PREFIX}/lib64/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" fixed the problem. Probably needs to be updated on wiki given how widespread x64 is.
The lib64/ part was added in the wiki to. Indeed meson seems to install there now for 64-bit builds, and since babl/GEGL moved to meson, we must look there too.
Thanks. Closing!
If I misunderstood and there is still a problem somewhere, please feel free to reopen.