Re: [Gimp-developer] GIMP build: XDG_DATA_DIRS causing "Unrecognized image file format"

2019-09-08 Thread Liam R. E. Quin
On Tue, 2019-09-03 at 15:10 -0400, Elle Stone wrote:
> 
> What I do know is that building babl/GEGL/GIMP is getting
> increasingly 
> complicated. 

Yes - i think it now depends on whether you'r wearing shoes, and the
colour of your socks. That is, it depends on things most of us eouldn't
think were relevant; we have to learn about the new dependencies.


> In case anyone has an idea what went wrong, here's the terminal
> output for the failed GEGL build:

[...]

> Couldn't find include 'Babl-0.1.gir' (search path: '['gir-1.0', 
> '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
> [223/750] Generating module_common_gpl3.c with a meson_exe.py custom 
> command.

XDG_DATA_DIRS is used to find this. So, i think what matters is having
XDG_DATA_DIRS set, but also the order of the entries within it when it
is set. You need $prefix first i think.

slave ankh


-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Web slave for vintage clipart http://www.fromoldbooks.org/

___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] GIMP build: XDG_DATA_DIRS causing "Unrecognized image file format"

2019-09-03 Thread Elle Stone

On 9/3/19 3:38 PM, Liam R. E. Quin wrote:

On Tue, 2019-09-03 at 15:10 -0400, Elle Stone wrote:

Couldn't find include 'Babl-0.1.gir' (search path: '['gir-1.0',
'/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
[223/750] Generating module_common_gpl3.c with a meson_exe.py custom
command.


XDG_DATA_DIRS is used to find this. So, i think what matters is having
XDG_DATA_DIRS set, but also the order of the entries within it when it
is set. You need $prefix first i think.


Thanks! So for current (as of last week) Debian Sid and current 
babl/GEGL/GIMP-2.99 (as of this morning), XDG_DATA_DIRS really does need 
to be set.


But for Debian Testing, it seems XDG_DATA_DIRS shouldn't be set. I 
wonder what has changed between Debian Testing and Sid.


Anyone know what an XDG_DATA_DIRS actually is? Also, what is this "gir" 
thing that GEGL was looking for?


Elle


___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] GIMP build: XDG_DATA_DIRS causing "Unrecognized image file format"

2019-09-03 Thread Elle Stone

On 9/3/19 11:59 AM, Akkana Peck wrote:

Does setting
XDG_DATA_DIRS="$XDG_DATA_DIRS:$PREFIX/share:/usr/local/share/:/usr/share/"
actually work for you, and you don't see the "Unrecognized image
file format" problem any more?


Well, it did work exactly as I posted. FWIW, just now I tried rebuilding 
GIMP-2.99 from scratch, starting from an empty install folder, but with 
the line 
'XDG_DATA_DIRS="$XDG_DATA_DIRS:$PREFIX/share:/usr/local/share/:/usr/share/"' 
commented out. But the build failed at GEGL (terminal output is below). 
Whether this failure to build with the XDG line commented out is 
coincidence or not, I just don't know, haven't yet taken the time to 
figure it out.


What I do know is that building babl/GEGL/GIMP is getting increasingly 
complicated. It would be nice if the developers who are writing all this 
new code for GIMP-2.99 could provide up-to-date guidelines for building 
all this new code :) but I guess "how to build" varies a lot from one 
system (and day) to the next.


I do vaguely remember the issue you mentioned with not finding the image 
file formats. That was on Debian, but not the current version of Debian 
Sid. There was another issue? The same issue? - sorry, I don't remember 
- that I encountered recently on Debian Sid, where the advice from 
Hacking GIMP was contrary to what actually worked, though the Hacking 
GIMP advice had worked previously.



In case anyone has an idea what went wrong, here's the terminal output 
for the failed GEGL build:


elle@debian:~/code-build/gimp299/build/gegl/build$ ninja install
[214/750] Generating Gegl-0.4.gir with a custom command.
FAILED: gegl/Gegl-0.4.gir
/usr/bin/g-ir-scanner -pthread -I/usr/include/gobject-introspection-1.0 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
--no-libtool --namespace=Gegl --nsversion=0.4 --warn-all --output 
gegl/Gegl-0.4.gir --c-include=gegl.h 
-I/media/data1/code-build/gimp299/build/gegl/gegl 
-I/media/data1/code-build/gimp299/build/gegl/build/gegl -I./. -I../. 
-I./gegl/. -I../gegl/. -I./gegl/buffer -I../gegl/buffer -I./gegl/graph 
-I../gegl/graph -I./gegl/module -I../gegl/module -I./gegl/opencl 
-I../gegl/opencl -I./gegl/operation -I../gegl/operation -I./gegl/process 
-I../gegl/process -I./gegl/property-types -I../gegl/property-types 
--filelist=/media/data1/code-build/gimp299/build/gegl/build/gegl/2cd4258@@gegl-0.4@sha/Gegl_0.4_gir_filelist 
--include=GLib-2.0 --include=GObject-2.0 --include=Babl-0.1 
--symbol-prefix=gegl --identifier-prefix=Gegl --cflags-begin 
-DHAVE_CONFIG_H -Winit-self -Wmissing-declarations -Wmissing-prototypes 
-Wold-style-definition -Wpointer-arith -Wno-deprecated-declarations 
-mfpmath=sse -mmmx -msse -msse2 -msse4.1 -I./. -I../. -I./gegl/. 
-I../gegl/. -I./gegl/buffer -I../gegl/buffer -I./gegl/graph 
-I../gegl/graph -I./gegl/module -I../gegl/module -I./gegl/opencl 
-I../gegl/opencl -I./gegl/operation -I../gegl/operation -I./gegl/process 
-I../gegl/process -I./gegl/property-types -I../gegl/property-types 
-I/home/elle/code-install/gimp299/install/include/babl-0.1 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
-I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 
--cflags-end --library gegl-0.4 
-L/media/data1/code-build/gimp299/build/gegl/build/gegl 
-L/home/elle/code-install/gimp299/install/lib/x86_64-linux-gnu 
-L/home/elle/code-install/gimp299/install/lib/x86_64-linux-gnu 
--extra-library=babl-0.1 --extra-library=glib-2.0 
--extra-library=gio-2.0 --extra-library=gobject-2.0 --extra-library=m 
--extra-library=gmodule-2.0
Couldn't find include 'Babl-0.1.gir' (search path: '['gir-1.0', 
'/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
[223/750] Generating module_common_gpl3.c with a meson_exe.py custom 
command.

ninja: build stopped: subcommand failed.
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] GIMP build: XDG_DATA_DIRS causing "Unrecognized image file format"

2019-09-03 Thread Akkana Peck
Elle, we traded notes about a week ago about environment variables
needed for GIMP's build, and you gave this example that worked for
you on Debian Sid:

Elle Stone writes:
> PREFIX=$HOME/code-install/gimp210/install
> export SRC_DIR=/home/elle/code-build/gimp210/build
> export PATH=$PREFIX/bin:$PATH
> export ACLOCAL_FLAGS="-I $PREFIX/share/aclocal"
> export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
> export LD_LIBRARY_PATH=$PREFIX/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
> export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
> export PKG_CONFIG_PATH=$PREFIX/lib/x86_64-linux-gnu:$PKG_CONFIG_PATH
> export PKG_CONFIG_PATH=$PREFIX/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
> export PKG_CONFIG_PATH=$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH
> export 
> XDG_DATA_DIRS="$XDG_DATA_DIRS:$PREFIX/share:/usr/local/share/:/usr/share/"

plus a similar stanza for Gentoo.

I've been struggling with my build lately because of gdk-pixbuf
problems: I kept running into problems like:

gtk-encode-symbolic-svg -o 64 scalable/dialog-warning-symbolic.svg 64x64

Can't load file: Unrecognized image file format

I finally came across a note you posted at the beginning of this year:
http://gimp.1065349.n5.nabble.com/Unable-to-build-GIMP-2-99-on-Debian-Sid-td55023.html
where you tracked this down to setting XDG_DATA_DIRS, covered in
the Hacking:Problems_and_solutions page (a wonderful page I hadn't known
about which wasn't showing up in any of my searches):
https://www.wiki.gimp.org/wiki/Hacking:Problems_and_solutions#GIMP_build_fails_with_message_.27Couldn.27t_recognize_the_image_file_format_for_file_..2Fcursor-bad.png.27

and the solution was not to set XDG_DATA_DIRS for the build.
I tried unsetting XDG_DATA_DIRS and indeed, the problem went away.

Does setting
XDG_DATA_DIRS="$XDG_DATA_DIRS:$PREFIX/share:/usr/local/share/:/usr/share/"
actually work for you, and you don't see the "Unrecognized image
file format" problem any more?

I've been updating the various wiki Hacking: pages with some issues
I've hit recently, and I changed the example for the variables I
used to omit XDG_DATA_DIRS and added a warning that it can cause
problems, but I left it in to the two examples you provided in case
they're actually needed on your system. I'm curious why this seems
to vary so much. Maybe in your case, XDG_DATA_DIRS is already set,
and since you set it to add the system version before the $PREFIX
directories, it uses that? In my case, it wasn't set before I run
the GIMP build; I had
XDG_DATA_DIRS=$GIMP_PREFIX/share:$XDG_DATA_DIRS
so it was set to "$GIMP_PREFIX/share:", and that broke the build.

I've added links to Hacking:Problems_and_solutions from the
Hacking:Building pages hoping to make it easier to find, because
there are a lot of great solutions there.

...Akkana
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list