Building GIMP: Setting some environment variables needs to cover 64bit build path
After compiling babl, gegl, gimp using meson-1.2.3-1.fc39.noarch
and ninja-build-1.11.1-4.fc39.x86_64
,
https://developer.gimp.org/core/setup/build/#running-your-new-gimp states that
You need to keep defined the same environment variables as for the build.
The box in the section https://developer.gimp.org/core/setup/build/#preparing-for-building covers setting a 64bit path for PKG_CONFIG_PATH
.
But it does not cover this need for LD_LIBRARY_PATH
("# Used to find the libraries at runtime") and GI_TYPELIB_PATH
("# Used to find introspection files").
Both is needed (compare unsuccessful lib
versus successful lib64
):
[ak@ac bin]$ export LD_LIBRARY_PATH="${GIMP_PREFIX}/lib:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
[ak@ac bin]$ ./gimp-2.99
./gimp-2.99: error while loading shared libraries: libgimpbase-3.0.so.0: cannot open shared object file: No such file or directory
[ak@ac bin]$ export LD_LIBRARY_PATH="${GIMP_PREFIX}/lib64:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
[ak@ac bin]$ ./gimp-2.99
This is a development version of GIMP. Debug messages may appear here.
You may argue that it's implicit for the vigilant reader but I wasn't one of them today.